Chris Peterson
752223fd52
Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium
2015-09-22 21:39:03 -07:00
Nicholas Nethercote
12fec02dfb
Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
...
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Thomas Zimmermann
af69a2f294
Bug 1185478: Add leak checks to socket I/O classes
2015-07-21 08:06:29 +02:00
Thomas Zimmermann
d6df25a326
Bug 1173334: Open nfcd connections with socket type SOCK_SEQPACKET, allstars.chh
...
NFC requires sequential transfer of individual messages. Using the
socket type SOCK_SEQPACKET guarantees these properties.
2015-06-25 08:29:04 -07:00
Thomas Zimmermann
aec4ceeb9f
Bug 1166638: Use |ListenSocketConsumer| in |ListenSocket|, r=kmachulis, dlee, chucklee, shuang
...
This patch converts |ListenSocket| to forward events to an instance
of |ListenSocketConsumer|. All users are converted and the related
listener and consumer classes are removed.
2015-05-26 13:24:20 +02:00
Thomas Zimmermann
39ee0a87c1
Bug 1166638: Use |StreamSocketConsumer| in |StreamSocket|, r=kmachulis, dlee, chucklee, htsai
...
This patch converts |StreamSocket| to forward events and data to an
instance of |StreamSocketConsumer|. All users are converted and the
related listener and consumer classes are removed.
2015-05-26 13:24:20 +02:00
Thomas Zimmermann
523f0a6208
Bug 1164417: Add |ConnectionOrientedSocket::PrepareAccept| for accepting socket connections, r=kmachulis
...
With this patch, stream and listening sockets handle the setup of
accepted sockets internally. Sub-classes of |StreamSocket| don't
have to overload StreamSocket's |GetIO| any longer.
2015-05-21 13:34:37 +02:00
Thomas Zimmermann
a8292d1ae6
Bug 1164417: Add |UnixSocketConnector::Duplicate|, r=kmachulis
...
The new method |UnixSocketConnector::Duplicate| allows a socket
connector to duplicate itself. Listening sockets will used this
feature to create socket connectors for accepted connections.
2015-05-21 13:34:37 +02:00
Thomas Zimmermann
936b5dcb55
Bug 1161020: Remove old interface and implementation from socket-connector classes, r=kmachulis
2015-05-19 13:28:46 +02:00
Thomas Zimmermann
3aab291a78
Bug 1161020: Implement new socket-connector interface for NFC, r=allstars.chh
...
This patch moves |NfcConnector| into its own file and implements
the new socket-connector interface.
2015-05-19 13:28:46 +02:00
Carsten "Tomcat" Book
35ddcbe0b8
Backed out 8 changesets (bug 1161020) for b2g ics emulator debug mochitest memory leaks on a CLOSED TREE
...
Backed out changeset 976e19eac8b5 (bug 1161020)
Backed out changeset 4f782be31f87 (bug 1161020)
Backed out changeset 384de663084c (bug 1161020)
Backed out changeset a8f42d85ce3f (bug 1161020)
Backed out changeset ac23206e80bd (bug 1161020)
Backed out changeset 34a20b05af6c (bug 1161020)
Backed out changeset 13753f9043f7 (bug 1161020)
Backed out changeset f90b8d3d6b70 (bug 1161020)
2015-05-18 15:01:27 +02:00
Thomas Zimmermann
ac1165836b
Bug 1161020: Remove old interface and implementation from socket-connector classes, r=kmachulis
2015-05-18 11:28:30 +02:00
Thomas Zimmermann
a26f59538d
Bug 1161020: Implement new socket-connector interface for NFC, r=allstars.chh
...
This patch moves |NfcConnector| into its own file and implements
the new socket-connector interface.
2015-05-18 11:28:30 +02:00
Thomas Zimmermann
70c0070f14
Bug 1156352: Remove |UnixSocketRawData| from socket I/O interfaces, r=kmachulis
2015-04-23 13:48:48 +02:00
Thomas Zimmermann
9515c832be
Bug 1156352: Remove |UnixSocketRawData| from NFC interfaces, r=allstars.chh
2015-04-23 13:48:48 +02:00
Ehsan Akhgari
ea41d8de48
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Thomas Zimmermann
97866e9db3
Bug 1109592 - Cleanup unused variables and fields from NFC's IPC code. r=allstars.chh
2015-03-06 05:54:00 -05:00
Thomas Zimmermann
c5ad20476f
Bug 1109592 - Listen for connections from NFC daemon. r=allstars.chh
...
This patch inverses the connection setup procedure between Gecko
and nfcd. Gecko now installs a listen socket and starts nfcd from
the init scripts. Nfcd establishes the connection by connecting
to Gecko's socket.
As a side effect of this patch, nfcd only runs while NFC is switched
on. This saves ~1.6 MiB os memory with contemporary NFC drivers on
flame-kk.
2015-03-11 03:38:00 -04:00
Thomas Zimmermann
0b0eba6b21
Bug 1109592 - Add |NfcListenSocket|. r=allstars.chh
...
The class |NfcListenSocket| is a socket that listens for connections
from nfcd.
2015-03-11 03:34:00 -04:00
Thomas Zimmermann
ed3fd111ee
Bug 1109592 - Move |NfcConnector| to a more public place. r=allstars.chh
...
|NfcConnector| is required to listen for connections from within
|NfcService|. This patch makes it available.
2015-03-11 03:33:00 -04:00
Thomas Zimmermann
740c3ae2c5
Bug 1109592 - Forward socket state from |NfcSocketListener|. r=allstars.chh
...
This patch allows to handle changes to the socket state at a higher
level than |NfcSocketListener|.
2015-03-09 03:27:00 -04:00
Thomas Zimmermann
93444383e2
Bug 1123651: Inherit |NfcConsumer| from |StreamSocket|, r=allstars.chh
...
With this patch, |NfcConsumer| inherits from |StreamSocket| instead
of |UnixSocketConsumer|. Some methods have been renamed. |NfcConsumer|
now contains the method |GetIO|, which is required by |StreamSocket|
for integration with |ListenSocket|.
2015-01-21 10:59:21 +01:00
Thomas Zimmermann
5c872125f0
Bug 1123651: Improve correctness of |NfcConsumer| and its helpers, r=allstars.chh
...
This patch changes several small details to make |NfcConsumer| more
correct. This includes
- MOZ_FINAL for classes,
- MOZ_OVERRIDE for virtual methods,
- static global variables, and
- nsAutoPtr around explicitly deleted data.
2015-01-21 10:59:21 +01:00
Thomas Zimmermann
352764cf12
Bug 1123651: Fix coding style in Nfc.cpp, r=allstars.chh
2015-01-21 10:59:21 +01:00
Yoshi Huang
bedae28513
Bug 933588 - Part 1: NFC service. r=khuey
2014-02-19 15:14:22 +08:00
Mike Hommey
2d0876a533
Bug 1036864 - Remove EXPORT_LIBRARY. r=mshal
2014-07-11 19:06:55 +09:00
Brian Hackett
9bad7c72e1
Bug 1021790 - "Cleanup naming for scalar and typed array types", r=sfink
2014-06-06 09:36:00 -07:00
Ehsan Akhgari
5292a10a42
Bug 1013663 - Fix some bad implicit conversion constructors in the JS engine; r=jorendorff,jandem
2014-05-25 21:46:24 -04:00
Chris Peterson
fc7f70e14c
Bug 1007741 - Fix -Wunused-function warning in ipc/glue/ and mark ipc/ subdirectories as FAIL_ON_WARNINGS. r=bsmedberg
2014-05-07 23:55:30 -07:00
Nicholas Nethercote
22241fec6d
Bug 952650 (part 13) - Remove JSVAL_IS_PRIMITIVE. r=till.
2014-04-27 20:27:54 -07:00
Nicholas Nethercote
2aae5772c2
Bug 952650 (part 12) - Remove JSVAL_TO_OBJECT. r=till.
2014-04-27 19:58:52 -07:00
Rodrigo Rodriguez Jr.
cf436f0880
Bug 952650 (part 6) - Remove JSVAL_IS_STRING. r=njn.
2014-04-27 19:41:01 -07:00
Jon Coppeard
fe19032029
Bug 959787 - Handlify remaining JS APIs r=sfink r=bholley r=smaug
2014-04-02 15:28:03 +01:00
Birunthan Mohanathas
1101424e84
Bug 845478 - Part 7: Use JS::CallArgs instead of JS_ARGV, argc in ipc/{ril,nfc}/. r=vicamo
2014-03-24 08:50:10 -04:00
Douglas Crosher
773a87a7b3
Bug 976537 - Guard against crashing in NFC shutdown when sNfcConsumer is NULL. r=allstars.chh
2014-02-26 00:54:54 +11:00
Thomas Zimmermann
267693cc63
Bug 972265: Use connect delay in NFC IPC code, r=allstars.chh
...
When trying to re-connect a socket, the NFC IPC code now respects
the delay that is suggested by the UnixSocketConsumer.
2014-02-14 08:03:27 +01:00
Jon Coppeard
a449f1f033
Bug 959787 - Handlify arguments for Call APIs r=terrence r=bz
2014-02-13 15:33:04 +00:00
Jon Coppeard
aa8fe2dffe
Bug 965830 - Convert use of JS_CallFunction and related APIs uses to HandleValueArray r=terrence r=smaug
2014-02-11 10:59:16 +00:00
Birunthan Mohanathas
08efb5ff8c
Bug 828300 - Replace NS_ARRAY_LENGTH with mozilla::ArrayLength/MOZ_ARRAY_LENGTH. r=ehsan
2014-01-30 13:26:54 -05:00
Terrence Cole
368d3facb6
Bug 959787 - Handlify several JSAPI interfaces that can GC, Part 6; r=jonco
2014-01-17 10:10:17 -08:00
Thomas Zimmermann
15e7aa0737
Bug 958444: Fix address setup in NFC connector, r=allstars.chh
...
The use of htons on the network address truncates its value. Using
htonl instead fixes this problem. The change also makes Nfc.cpp
build without warnings.
2014-01-10 12:40:51 +01:00
Ehsan Akhgari
b900d74d59
Bug 951207 - Rename the chromium LOG macro to CHROMIUM_LOG; r=bent
2013-12-17 13:26:45 -05:00
Yoshi Huang
0b7883363b
Bug 939052 - B2G NFC: NFC socket callback prints too much log. r=vicamo
2013-11-21 12:23:36 +08:00
Mike Hommey
97a38484da
Bug 939632 - Remove LIBRARY_NAME for leaf libraries. r=gps
...
Landing on a CLOSED TREE.
2013-11-19 11:50:54 +09:00
Mike Hommey
06e3b30661
Bug 939074 - Remove most LIBXUL_LIBRARY. rs=gps
2013-11-19 11:48:10 +09:00
Mike Hommey
7f7e4faac1
Bug 939044 - Remove most definitions of MODULE. r=mshal
2013-11-19 11:47:39 +09:00
Mike Hommey
656e86914a
Bug 935881 - Use FINAL_LIBRARY for all (fake) libraries that end up linked in a single other library. r=gps
2013-11-19 11:47:14 +09:00
Garner Lee
c8d368e50d
Bug 933635 - Part 3: NFC IPC Sources. r=yoshi
2013-11-01 17:45:46 +08:00
Garner Lee
428c06b7e1
Bug 933635 - Part 1: NFC IPC Makefiles. r=khuey
2013-11-01 14:52:59 +08:00
Chuck Lee
f3813df219
Bug 928223 - 0001. Add function to perform setup for listen socket. r=qDot echou vicamo yoshi
2013-10-25 10:00:22 +08:00