Граф коммитов

2806 Коммитов

Автор SHA1 Сообщение Дата
Nicholas Nethercote 5eb694dc49 Bug 1164374 - Use StaticMutex in BrowserProcessSubThread. r=froydnj.
This removes a static constructor.

--HG--
extra : rebase_source : 4ed2f222517263616ffd15719f254b9715887681
2015-05-13 01:59:52 -07:00
Birunthan Mohanathas 180b572edb Bug 968520 - Add mozilla::fallible to FallibleTArray::AppendElement calls. r=froydnj 2015-05-28 11:07:44 -07:00
Birunthan Mohanathas 470bd9148f Bug 968520 - Add mozilla::fallible to FallibleTArray::AppendElements calls. r=froydnj 2015-05-28 11:07:43 -07:00
Ryan VanderMeulen 683b08ae37 Merge m-c to inbound. a=merge 2015-05-28 10:20:38 -04:00
Ryan VanderMeulen a232cd6cae Merge inbound to m-c. a=merge 2015-05-28 10:03:07 -04:00
Wes Kocher 0801283501 Merge m-c to b2ginbound, a=merge CLOSED TREE 2015-05-27 17:23:19 -07:00
Thomas Zimmermann 621428ac80 Bug 1167210: Replace |union sockaddr_any| with |struct sockaddr_storage|, r=kmachulis
Both types, |union sockaddr_any| and |struct sockaddr_storage|, provide
a sockaddr type that can hold any address. The latter is standardized by
POSIX, so we prefer it.
2015-05-27 13:49:07 +02:00
Thomas Zimmermann f6aa576d06 Bug 1167207: Remove |BluetoothDaemonChannel|, r=shuang
This patch integrates the functionality of |BluetoothDaemonChannel|
into |BluetoothDaemonConnection|. All users are adapted, the former
class is removed.
2015-05-26 18:29:02 +02:00
Thomas Zimmermann 3d2eac5a25 Bug 1167207: Add |BluetoothDaemonConnectionConsumer|, r=shuang
Instances of |BluetoothDaemonConnectionConsumer| handle socket events
for |BluetoothDaemonConnection|.
2015-05-26 18:29:01 +02:00
Wes Kocher fd401f9e9b Merge m-c to inbound, a=merge CLOSED TREE 2015-05-26 16:25:11 -07:00
Botond Ballo 2e2a504271 Bug 1119980 - Use 'snprintf' instead of 'sprintf' to avoid a warning on Lollipop-based builds. r=froydnj
--HG--
extra : source : 7468f9a3aa03520a29e138d4df431f0b5d90967c
2015-05-26 14:33:55 -04:00
Thomas Zimmermann f9ce4741fd 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 636ed53a74 Bug 1166638: Add |ListenSocketConsumer|, r=kmachulis
|ListenSocketConsumer| receives events from a listening socket. It
unifies all existing consumer and listener classes of the socket I/O
users.
2015-05-26 13:24:20 +02:00
Thomas Zimmermann d24dddee86 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 5a8451674e Bug 1166638: Add |StreamSocketConsumer|, r=kmachulis
|StreamSocketConsumer| receives events and data from a stream
socket. It unifies all existing consumer and listener classes
of the socket I/O users.
2015-05-26 13:24:19 +02:00
Lee Salzman 98b5eb1f42 Bug 1168843 - use thread-safe refcounting for shared memory surfaces to avoid shutdown crashes. r=jmuizelaar
--HG--
extra : rebase_source : d12172cf16ee64e72882cae2f72a1bbf74ff464f
2015-05-27 11:20:26 -04:00
Michael Layzell 4dc87f0a9b Bug 1167396 - Make ProtocolCloneContext::mContentParent a smart pointer. r=bent 2015-05-22 10:10:00 -04:00
Phil Ringnalda 198fda1fe8 Back out 7842a044a183 (bug 1167431) for widespread bustage
CLOSED TREE
2015-05-22 18:53:41 -07:00
Ben Turner a53a3243ec Bug 1167431 - 'Properly clean up actors whose RecvFooConstructor method returns false', r=billm. 2015-05-22 16:10:02 -07:00
Nathan Froyd eac3452d78 Bug 1170656 - remove tabs from moz.build files; r=me
DONTBUILD because whitespace-only fix.
2015-05-04 08:20:33 -04:00
Cervantes Yu 686678cef7 Bug 1151672 - Part 2: Block PHal::Msg_NotifyNetworkChange__ID to the Nuwa process after it is ready. r=khuey 2015-05-22 15:08:20 +08:00
Thomas Zimmermann 70a7cf2bf2 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 38232bed0f Bug 1164417: Store PDU consumer in |BluetoothDaemonConnection|, r=kmachulis 2015-05-21 13:34:37 +02:00
Thomas Zimmermann 5689bc8e15 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
Carsten "Tomcat" Book 12f69af823 merge mozilla-inbound to mozilla-central a=merge 2015-05-20 15:52:31 +02:00
Carsten "Tomcat" Book f778f94014 merge b2g-inbound to mozilla-central a=merge
--HG--
extra : rebase_source : ff7d4c568ac183205e8a1180489f87e40521922b
2015-05-20 15:31:22 +02:00
Thomas Zimmermann 2ef09c7cbf Bug 1164425: Cleanup interfaces of |BluetoothDaemonConnection|, r=shuang
Bluetooth never actively opens a connection to the daemon, so this
patch removes the connect functionality.
2015-05-20 10:50:43 +02:00
Thomas Zimmermann 840f154d6b Bug 1164425: Cleanup interfaces of |ListenSocket|, r=kmachulis
This patch removes |ListenSocket::GetSocketAddr|, which is unused
and not thread-safe. The |Listen| methods now return error codes.
2015-05-20 10:50:43 +02:00
Thomas Zimmermann d21bc736cb Bug 1164425: Cleanup interfaces of |StreamSocket|, r=kmachulis
This patch cleans up the interface of |StreamSocket|. All arguments
that contain protocol parameters are removed from |Connect|. They are
stored in the connector class. |Connect| now returns error codes. The
method |GetSocketAddr| is unused and not thread-safe and therefore
removed. The method |SendSocketData| for strings is unused and removed.
2015-05-20 10:50:43 +02:00
Thomas Zimmermann 1237cad18c Bug 1164425: Rename |SocketBase::CloseSocket| to |SocketBase::Close|, r=kmachulis 2015-05-20 10:50:43 +02:00
Carsten "Tomcat" Book 1aa07d706a Backed out changeset 1e93024c9fec (bug 1164425) for bustage 2015-05-20 10:31:55 +02:00
Carsten "Tomcat" Book f0d911f0ec Backed out changeset 2fd186d1a288 (bug 1164425) 2015-05-20 10:31:09 +02:00
Carsten "Tomcat" Book 1a15bd1430 Backed out changeset 17bd0777339a (bug 1164425) 2015-05-20 10:30:55 +02:00
Carsten "Tomcat" Book d61d111555 Backed out changeset 97ccb9e0cefb (bug 1164425) 2015-05-20 10:30:41 +02:00
Thomas Zimmermann 63fb13df1f Bug 1164425: Cleanup interfaces of |BluetoothDaemonConnection|, r=shuang
Bluetooth never actively opens a connection to the daemon, so this
patch removes the connect functionality.
2015-05-20 09:54:27 +02:00
Thomas Zimmermann 6a46c5c7cf Bug 1164425: Cleanup interfaces of |ListenSocket|, r=kmachulis
This patch removes |ListenSocket::GetSocketAddr|, which is unused
and not thread-safe. The |Listen| methods now return error codes.
2015-05-20 09:54:27 +02:00
Thomas Zimmermann a3afbdf88b Bug 1164425: Cleanup interfaces of |StreamSocket|, r=kmachulis
This patch cleans up the interface of |StreamSocket|. All arguments
that contain protocol parameters are removed from |Connect|. They are
stored in the connector class. |Connect| now returns error codes. The
method |GetSocketAddr| is unused and not thread-safe and therefore
removed. The method |SendSocketData| for strings is unused and removed.
2015-05-20 09:54:27 +02:00
Thomas Zimmermann 533d048a4b Bug 1164425: Rename |SocketBase::CloseSocket| to |SocketBase::Close|, r=kmachulis 2015-05-20 09:54:27 +02:00
Wes Kocher 53d1e1a9e5 Merge b2ginbound to central, a=merge 2015-05-19 16:42:57 -07:00
Thomas Zimmermann a4face3b55 Bug 1161020: Remove old interface and implementation from socket-connector classes, r=kmachulis 2015-05-19 13:28:46 +02:00
Thomas Zimmermann cd0d102a9b Bug 1161020: Use new socket-connector interface in socket classes, r=kmachulis
This patch converts the socket I/O classes to use the new interface
of the socket-connector classes. All sockets are now created and set
up by a socket connector.
2015-05-19 13:28:46 +02:00
Thomas Zimmermann a611698da4 Bug 1161020: Implement new socket-connector interface for key store, r=chucklee
This patch moves |KeyStoreConnector| into its own file and implements
the new socket-connector interface.
2015-05-19 13:28:46 +02:00
Thomas Zimmermann 19225eac97 Bug 1161020: Implement new socket-connector interface for RIL, r=htsai
This patch moves |RilConnector| into its own file and implements
the new socket-connector interface.
2015-05-19 13:28:46 +02:00
Thomas Zimmermann 62b1926054 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
Thomas Zimmermann 874110779f Bug 1161020: Added clean interface to |UnixSocketConnector|, r=kmachulis
The current interface of |UnixSocketConnector| doesn't follow any design
and is not easily understandable.

This patch adds a new interface to the class. The new interface provides
a method for each of the following operations:

  * converting an address to a human-readable string,
  * creating a listening socket,
  * creating a stream socket, and
  * accepting a stream socket from a listening socket.

All arguments are stored in the connector class, so that connect and
listen methods of the socket classes don't require protocol-specific
arguments. All socket parameters are set within the connector class,
so each connector class can now select parameters individually.
2015-05-19 13:28:46 +02:00
Birunthan Mohanathas 735ccdd101 Bug 968520 - Add mozilla::fallible to Fallible{Auto,}TArray::SetLength calls. r=froydnj 2015-05-18 13:50:35 -07:00
Birunthan Mohanathas 1f8d7454e3 Bug 968520 - Add mozilla::fallible to Fallible{Auto,}TArray::SetCapacity calls. r=froydnj 2015-05-18 13:50:34 -07:00
Carsten "Tomcat" Book 5471309381 Backed out 14 changesets (bug 1165515) for linux x64 e10s m2 test failures
Backed out changeset d68dcf2ef372 (bug 1165515)
Backed out changeset 7c3b45a47811 (bug 1165515)
Backed out changeset b668b617bef2 (bug 1165515)
Backed out changeset d0916e1283a2 (bug 1165515)
Backed out changeset ac4dc7489942 (bug 1165515)
Backed out changeset e9632ce8bc65 (bug 1165515)
Backed out changeset c16d215cc7e4 (bug 1165515)
Backed out changeset e4d474f3c51a (bug 1165515)
Backed out changeset d87680bf9f7c (bug 1165515)
Backed out changeset b3c0a45ba99e (bug 1165515)
Backed out changeset 9370fa197674 (bug 1165515)
Backed out changeset 50970d668ca1 (bug 1165515)
Backed out changeset ffa4eb6d24b9 (bug 1165515)
Backed out changeset 5fcf1203cc1d (bug 1165515)

--HG--
extra : rebase_source : 6fb850d063cbabe738f97f0380302153e3eae97a
2015-06-02 13:05:56 +02:00
David Anderson bb8d53f35f Move the APZ scroll frame clip onto FrameMetrics. (bug 1148582 part 3, r=mstange,tn) 2015-05-26 12:40:24 -07:00
Thomas Zimmermann 6cb8084eb0 Bug 1170466: Implement accept and connect in |ConnectionOrientedSocketIO|, r=kmachulis
|ConnectionOrientedSocketIO| now handles accepting and connecting
sockets. All sub-classes have been changed accordingly.
2015-06-03 11:53:50 +02:00
Thomas Zimmermann 7eb46d9e39 Bug 1170466: Share socket I/O methods in |ConnectionOrientedSocketIO|, r=kmachulis
With this patch, |ConnectionOrientedSocketIO| implements methods
for sending and receiving data. All sub-classes have been changed
accordingly.
2015-06-03 11:53:50 +02:00
Thomas Zimmermann bc636a00f4 Bug 1170466: Inherit |ConnectionOrientedSocketIO| from |UnixSocketWatcher|, r=kmachulis
Inheriting |ConncetionOrientedSocketIO| from |UnixSocketWatcher| will
allow for sharing common I/O code of the sub-class.
2015-06-03 11:53:50 +02:00
Eric Rahm 38901afce4 Bug 1165515 - Part 14: Undef PR_LOG macros when using mozilla/Logging.h. r=froydnj
Make it harder for users to accidentally reintroduce usage of the PR_LOG macros
when using 'mozilla/Logging.h'. This can still be worked around by directly
including 'prlog.h' (and not 'mozilla/Logging.h') if absolutely necessary.
2015-06-01 22:17:34 -07:00
Wes Kocher 4e9f80ed2e Backed out 14 changesets (bug 1165515) for b2g mochitest-6 permafail CLOSED TREE
Backed out changeset 9b97e2aa2ed9 (bug 1165515)
Backed out changeset 150606c022a2 (bug 1165515)
Backed out changeset 4e875a488349 (bug 1165515)
Backed out changeset 467e7feeb546 (bug 1165515)
Backed out changeset d6b6cc373197 (bug 1165515)
Backed out changeset 0615265b593c (bug 1165515)
Backed out changeset fafd1dce9f08 (bug 1165515)
Backed out changeset d1df869245f9 (bug 1165515)
Backed out changeset 6876a7c63611 (bug 1165515)
Backed out changeset b7841c94a9a3 (bug 1165515)
Backed out changeset e5e3617f7c73 (bug 1165515)
Backed out changeset 39be3db95978 (bug 1165515)
Backed out changeset 0ec74176f8de (bug 1165515)
Backed out changeset 5b928dd10d71 (bug 1165515)
2015-06-01 17:57:58 -07:00
Eric Rahm e8a5eb8d6e Bug 1165515 - Part 14: Undef PR_LOG macros when using mozilla/Logging.h. r=froydnj
Make it harder for users to accidentally reintroduce usage of the PR_LOG macros
when using 'mozilla/Logging.h'. This can still be worked around by directly
including 'prlog.h' (and not 'mozilla/Logging.h') if absolutely necessary.
2015-06-01 14:31:01 -07:00
Ting-Yu Chou 14f0c4dbfb Bug 1050122 - Part 2: Disable preallocate when proc loader is not initialized. r=khuey 2014-11-01 13:28:33 +08:00
Ting-Yu Chou 89eee8c371 Bug 1050122 - Part 1: Enable Nuwa on debug builds, and kill it if the preference is false. r=khuey 2014-10-31 15:07:43 +08:00
Carsten "Tomcat" Book 643b4d8cd2 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 2b68c73b1e Bug 1161020: Remove old interface and implementation from socket-connector classes, r=kmachulis 2015-05-18 11:28:30 +02:00
Thomas Zimmermann 553d9c5e14 Bug 1161020: Use new socket-connector interface in socket classes, r=kmachulis
This patch converts the socket I/O classes to use the new interface
of the socket-connector classes. All sockets are now created and set
up by a socket connector.
2015-05-18 11:28:30 +02:00
Thomas Zimmermann e6c35a9ff4 Bug 1161020: Implement new socket-connector interface for key store, r=chucklee
This patch moves |KeyStoreConnector| into its own file and implements
the new socket-connector interface.
2015-05-18 11:28:30 +02:00
Thomas Zimmermann 859df18543 Bug 1161020: Implement new socket-connector interface for RIL, r=htsai
This patch moves |RilConnector| into its own file and implements
the new socket-connector interface.
2015-05-18 11:28:30 +02:00
Thomas Zimmermann 0936f09ecd 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 d9ca2a993a Bug 1161020: Added clean interface to |UnixSocketConnector|, r=kmachulis
The current interface of |UnixSocketConnector| doesn't follow any design
and is not easily understandable.

This patch adds a new interface to the class. The new interface provides
a method for each of the following operations:

  * converting an address to a human-readable string,
  * creating a listening socket,
  * creating a stream socket, and
  * accepting a stream socket from a listening socket.

All arguments are stored in the connector class, so that connect and
listen methods of the socket classes don't require protocol-specific
arguments. All socket parameters are set within the connector class,
so each connector class can now select parameters individually.
2015-05-18 11:28:30 +02:00
James Willcox 571da64d75 Backout fb6329699801 for x86 breakage on a CLOSED TREE 2015-05-14 15:40:00 -05:00
James Willcox 0e358a231a Bug 1141693 - Build and use a PIE plugin-container on Android 5.0+. Based on a patch by Mike Hommey. r=me,glandium 2015-05-14 14:52:10 -05:00
Andrea Marchesini f4538bb921 Bug 1163387 - Rename FileImpl to BlobImpl, r=ehsan
--HG--
rename : dom/base/MultipartFileImpl.cpp => dom/base/MultipartBlobImpl.cpp
rename : dom/base/MultipartFileImpl.h => dom/base/MultipartBlobImpl.h
2015-05-12 13:11:03 +01:00
Andrea Marchesini 368a198972 Bug 1159401 - Split Blob and File classes, r=bz 2015-05-12 13:09:51 +01:00
Eric Rahm 4879ae86f4 Bug 1165518 - Part 2: Replace prlog.h with Logging.h. rs=froydnj 2015-05-19 11:15:34 -07:00
Wes Kocher 22483cbf35 Merge m-c to inbound, a=merge 2015-05-19 16:44:10 -07:00
Andrea Marchesini 61b9bd0496 Bug 1166231 - Make nsIDOMBlob an empty interface, r=ehsan 2015-05-19 15:36:37 +01:00
Mike Hommey 806e0220a2 Bug 991983 - Use objdir-relative SOURCES instead of GENERATED_SOURCES. r=gps 2015-05-28 07:34:16 +09:00
Bill McCloskey 751027c648 Bug 803783 - Send message manager results via structured clone (r=bent) 2015-05-11 17:19:10 -07:00
Phil Ringnalda 49dd872168 Back out 3 changesets (bug 1119980) for emulator-l bustage
CLOSED TREE

Backed out changeset 12ce98475c6e (bug 1119980)
Backed out changeset bdb8d05f8870 (bug 1119980)
Backed out changeset a68a18840492 (bug 1119980)
2015-05-25 18:48:51 -07:00
Botond Ballo 9934d127c1 Bug 1119980 - Use 'snprintf' instead of 'sprintf' to avoid a warning on Lollipop-based builds. r=froydnj
--HG--
extra : rebase_source : 4e915a12ba662ed45788238a5f0a45533888bd92
2015-05-25 20:45:17 -04:00
Mike Hommey 1d59644f14 Bug 1162846 - Don't use str.find in moz.build. r=mshal 2015-05-12 07:27:35 +09:00
Wes Kocher 983fcabeef Backed out 2 changesets (bug 1159401) for b2g build bustage
Backed out changeset adfee1efb1e1 (bug 1159401)
Backed out changeset 70c63c8546e3 (bug 1159401)
2015-05-11 14:54:02 -07:00
Wes Kocher 6b003ab737 Backed out changeset 56e4c68dc3da (bug 1163387) for build bustage CLOSED TREE
--HG--
rename : dom/base/MultipartBlobImpl.cpp => dom/base/MultipartFileImpl.cpp
rename : dom/base/MultipartBlobImpl.h => dom/base/MultipartFileImpl.h
2015-05-11 13:17:58 -07:00
Andrea Marchesini 49a0ee6938 Bug 1163387 - Rename FileImpl to BlobImpl, r=ehsan
--HG--
rename : dom/base/MultipartFileImpl.cpp => dom/base/MultipartBlobImpl.cpp
rename : dom/base/MultipartFileImpl.h => dom/base/MultipartBlobImpl.h
2015-05-11 18:50:54 +01:00
Andrea Marchesini 91a8a35606 Bug 1159401 - patch 1 - Split Blob and File in 2 classes, r=bz 2015-05-11 18:50:50 +01:00
Ryan VanderMeulen 2390c704f8 Backout revisions 4287533203fb and 96a3ebfe09d8 (bug 1159401) for bustage.
CLOSED TREE

--HG--
extra : histedit_source : a6c24f88b9c5a0cbcf2d44189fd359ddb20757b4%2C46613cfc309a9f0531e8c2475ac17877f606f231
2015-05-11 11:43:59 -04:00
Andrea Marchesini 48ecacaa74 Bug 1159401 - patch 1 - Split Blob and File in 2 classes, r=bz 2015-05-11 15:20:06 +01:00
Thomas Zimmermann 63a3cb989e Bug 1162585: Set socket flags after socket has been created, r=kmachulis
This patch moves the code for setting socket flags in the socket I/O
classes to the few locations were sockets are created. Any other socket
setup is redundant and has been removed.
2015-05-08 09:45:42 +02:00
Thomas Zimmermann e5ff47d14f Bug 1162524: Move |accept| out of |UnixSocketWatcher|, r=kmachulis
Calls to |accept| are now handled by the corresponding socket I/O
class. This makes the code more flexible. All callers have been
adapted.
2015-05-08 09:43:01 +02:00
Thomas Zimmermann 7f93be6ced Bug 1162524: Fix error handling |UnixSocketWatcher::Connect|, r=kmachulis
With this patch, it's not an error if the connection operations
stalls on a non-blocking socket; so don't return an error code.

The patch also makes |connect| restart if it was aborted by a
signal.
2015-05-08 09:42:46 +02:00
Andrea Marchesini a8db0ddfbb Bug 1161507 - BroadcastChannel should use origin+appId+IsInBrowserElement as key in b2g, r=sicking 2015-05-06 11:07:06 +01:00
Blake Kaplan 25d39ad698 Bug 1155494 - Add a 'compressall' message flag. f=handyman r=billm (parts of this patch were written by handyman with r=billm) 2015-05-05 16:20:42 -07:00
Mike Conley 91457c2516 Bug 1146955 - Unify pluginID for GMP and runID for NPAPI plugins to use the same internal incrementor. r=jesup, mrbkap.
--HG--
extra : rebase_source : bd7989a043f0b36f23ffc8d35a55a6110b09b163
extra : source : 175040b5d347dcbb31cf63f124f88ba1f53fda61
2015-04-27 15:09:45 -04:00
Thomas Zimmermann c77d10209c Bug 1159709: Cleanup inherited methods of |ListenSocket|, r=kmachulis
This patch cleans up the inherited methods of |ListenSocket|. Methods
of the same base class are grouped within the file, and each method is
labeled with 'override'.
2015-04-30 12:55:37 +02:00
Thomas Zimmermann 74910a62cf Bug 1159709: Cleanup inherited methods of |StreamSocket|, r=kmachulis
This patch cleans up the inherited methods of |StreamSocket|. Methods
of the same base class are grouped within the file, and each method
is labeled with 'override'.
2015-04-30 12:55:37 +02:00
Thomas Zimmermann df4d5c2489 Bug 1159709: Integrate |ConnectionOrientedSocket| into socket I/O class hierarchy, r=kmachulis
This patch integrates |ConnectionOrientedSocket| into the hierarchy
of socket I/O classes. In future patches, the class can provide
common interfaces and functionality for all connection-oriented
sockets.
2015-04-30 12:55:37 +02:00
Thomas Zimmermann 92706b5790 Bug 1159709: Inherit |BluetoothDaemonConnection| from |DataSocket|, r=kmachulis
|BluetoothDaemonConnection| sends and receives data. With this patch
it inherits from |DataSocket|, which provides the respective abstract
interfaces.
2015-04-30 12:55:37 +02:00
Thomas Zimmermann 79b0cc601a Bug 1158818: Only store Bluetooth result runnable after command has been sent successfully, r=shuang
With the current code, the Bluetooth result runnable is saved for
receiving before a command has been sent successfully. If sending
fails afterwards, the saved result runnable will still sit in the
result queue, and interfere with later, successful commands.

With this patch, the result runnable is saved only if the sending
was successful.
2015-04-30 11:29:25 +02:00
Thomas Zimmermann 625ab90911 Bug 1159209: Remove template parameters from |DataSocketIO|, r=kmachulis
This patch removes the template parameters from |DataSocketIO| and
moves its methods into the C++ source file. All users have been
adapted.
2015-04-29 11:19:28 +02:00
Thomas Zimmermann 9cdb8ad654 Bug 1159209: Remove template parameters from |SocketIOShutdownTask|, r=kmachulis
This patch removes the template parameters from |SocketIOShutdownTask|
and moves its methods into the C++ source file. All users have been
adapted.
2015-04-29 11:19:28 +02:00
Thomas Zimmermann bc3ec66d73 Bug 1159209: Remove template parameters from |SocketIODeleteInstanceRunnable|, r=kmachulis
This patch removes the template parameters from
|SocketIODeleteInstanceRunnable| and moves its methods into the
C++ source file. All users have been adapted.
2015-04-29 11:19:28 +02:00
Thomas Zimmermann f1e1ede770 Bug 1159209: Remove template parameters from |SocketIORequestClosingRunnable|, r=kmachulis
This patch removes the template parameters from
|SocketIORequestClosingRunnable| and moves its methods into
the C++ source file. All users have been adapted.
2015-04-29 11:19:28 +02:00
Thomas Zimmermann 6999dd655b Bug 1159209: Remove template parameters from |SocketIOEventRunnable|, r=kmachulis
This patch removes the template parameters from |SocketIOEventRunnable|
and moves its methods into the C++ source file. All users have been
adapted.
2015-04-29 11:19:28 +02:00
Ryan VanderMeulen dc34386c9f Merge inbound to m-c. a=merge 2015-04-28 15:27:26 -04:00
Carsten "Tomcat" Book c0f0b148a5 Merge mozilla-central to b2g-inbound 2015-04-28 14:05:17 +02:00
Thomas Zimmermann a8a6ff751e Bug 1158876: Move |DataSocket::ReceiveSocketData| into sub classes, r=kmachulis
|ReceiveSocketData| receives socket data on the main thread. This
is a specific detail of the current socket classes, which should not
be required by future implementations.

This patch moves the receive method and the corresponding runnable
into socket classes.
2015-04-28 10:18:13 +02:00
Thomas Zimmermann 10488d5115 Bug 1158876: Move management of socket I/O buffers into socket I/O classes, r=kmachulis
This patch moves management of received socket I/O buffers from
|DataSocketIO| into the I/O classes. Each I/O class is responsible
for (de-)allocating buffers, and consuming them once data has been
received.

All current I/O classes forward their buffers to the main thread,
but other operations are possible. For example, received data can
be parsed and processed directly in the I/O thread.
2015-04-28 10:18:13 +02:00
Thomas Zimmermann ed4b4e63be Bug 1158876: Rename |SocketConsumerBase| to |DataSocket|, r=kmachulis
This patch renames |SocketConsumerBase| to |DataSocket|, and for the
I/O classes |SocketConsumerIO| to |DataSocketIO|. |DataSocketIO| also
contains send and receive functionality from |SocketBaseIO|.

|DataSocket| is a virtual base class that represents a socket that
transfers data, without a particular constraints to what the data
represents. |DataSocketIO| is the corresponding helper class on the
I/O thread.
2015-04-28 10:18:12 +02:00
Jim Chen 23ba47d9f1 Bug 1157908 - Give Gecko thread Looper low priority; r=snorp 2015-04-27 20:52:52 -04:00
Aaron Klotz 28a06e03b9 Bug 1159037: Ensure correct parent and child message are passed to MessageListener::MediateInterruptRace; r=dvander
--HG--
extra : rebase_source : d0c50c69b8124ea1993b823ceadccf28ac91fd6b
2015-04-27 17:24:07 -06:00
Nathan Froyd b73bbd3af0 Bug 1158896 - prevent dead code from being generated in lower.py; r=bent
Coverity was complaining that we have things like:

    if ((!(actor))) {
        return false;
    }

    if ((!(actor))) {
        return false;
    }

in the generated code, as the second return will clearly never be hit.  To
address this, let's remove a redundant call to dtorPrologue.
2015-04-27 13:08:12 -04:00
Ryan VanderMeulen b350674885 Backed out changesets a486dcc9c233 and 7164a2488b28 (bug 1157908) for various Android test failures.
CLOSED TREE
2015-04-24 16:01:17 -04:00
Jim Chen 5864b21201 Bug 1157908 - Give Gecko thread Looper low priority; r=snorp 2015-04-24 14:40:55 -04:00
Andrew McCreight 0c176ddcff Bug 1062479 - Use static strings for WeakReference type names. r=ehsan 2015-04-24 09:43:01 -07:00
Ryan VanderMeulen e18cc407f2 Merge m-c to inbound. a=merge
CLOSED TREE

--HG--
extra : amend_source : 523a4f398be8a298db1a25bf0d4a892773efef82
2015-04-23 17:22:50 -04:00
Ryan VanderMeulen c39b31d3fd Merge inbound to m-c. a=merge 2015-04-23 17:10:28 -04:00
Carsten "Tomcat" Book 4139723dce Merge mozilla-central to b2g-inbound 2015-04-23 16:00:35 +02:00
Thomas Zimmermann 417a91f162 Bug 1156352: Remove |UnixSocketRawData| from socket I/O interfaces, r=kmachulis 2015-04-23 13:48:48 +02:00
Thomas Zimmermann be8cf398be Bug 1156352: Remove |UnixSocketRawData| from RIL interfaces, r=htsai 2015-04-23 13:48:48 +02:00
Thomas Zimmermann 7f554d1a7f Bug 1156352: Remove |UnixSocketRawData| from NFC interfaces, r=allstars.chh 2015-04-23 13:48:48 +02:00
Thomas Zimmermann 0d4de1ac5b Bug 1156352: Remove |UnixSocketRawData| from key store interfaces, r=chucklee 2015-04-23 13:48:47 +02:00
Thomas Zimmermann ab71ff982e Bug 1156352: Refactor |UnixSocketIOBuffer|, r=kmachulis
This patch moves memory management of |UnixSocketIOBuffer| into
|UnixSocketBuffer| and extends |UnixSocketIOBuffer| with send and
receive interfaces. The class is now the base for all socket-buffer
classes, such as |UnixSocketRawData| and |BluetoothDaemonPDU|.
2015-04-23 13:48:47 +02:00
Wes Kocher b43e5283da Merge m-c to fx-team a=merge 2015-04-22 17:27:15 -07:00
Kartikaya Gupta cd5b55f8d6 Bug 1039866 - Rip out a bunch of metro-only code. r=jimm,gavin,rstrong 2015-04-23 15:10:30 -04:00
Felix Janda b0f3fb1e2a Bug 1139173 - ipc/chromium: Remove unused functions from file_util. r=froydnj
CLOSED TREE

--HG--
extra : amend_source : b2e5963ece60e1a4e51bafd8b5abfa838e18b189
2015-04-15 23:59:44 +02:00
Felix Janda 6cfa6bfc6b Bug 1139173 - ipc/chromium: Remove ScopedTempDir. r=froydnj 2015-04-15 23:57:40 +02:00
Felix Janda 6cf009e520 Bug 1139173 - ipc/chromium: Use <errno.h> instead of non-standard <sys/errno.h>. r=froydnj 2015-04-15 23:48:46 +02:00
Carsten "Tomcat" Book e02a605417 Merge mozilla-central to b2g-inbound 2015-04-21 15:37:22 +02:00
Bill McCloskey 86e65c20f2 Bug 1154990 - Better error messages when IPC send fails (r=bent) 2015-04-20 23:32:59 -07:00
Jim Blandy ebd83c9a61 Bug 1152577: Add 'aReason' argument to AutoEntryScript constructor, and provide plausible names for its instantiations. r=bholley
--HG--
extra : rebase_source : 8ab7a3628a5b4d94b957f24e23e4c5c7871db97c
2015-04-08 21:23:48 -04:00
Thomas Zimmermann 16d35dbec0 Bug 1154281: Remove |UnixSocketConsumer| and its helpers, r=kmachulis 2015-04-21 10:33:06 +02:00
Carsten "Tomcat" Book 8c20d6ac92 Merge mozilla-central to mozilla-inbound 2015-04-23 15:55:19 +02:00
Bob Owen 9f25ef01ff Bug 1087565: Verify the child process with a secret hello on Windows. r=dvander 2015-04-23 11:09:04 +01:00
Nathan Froyd 91108f0f63 Bug 1158905 - remove dead code from protocol Transition functions; r=bent
PFoo::Transition currently looks something like:

bool
Transition(
        State from,
        mozilla::ipc::Trigger trigger,
        State* next)
{
    switch (from) {
    ...
    default:
        NS_RUNTIMEABORT("corrupted actor state");
        return false;
    }
    (*(next)) = __Error;
    return false;
}

Coverity complains that the assignment (*(next)) = __Error will never be
reached, and rightfully so.  We can remove this fallthrough block when
there are no states declared in the individual protocol.
2015-04-27 13:29:37 -04:00
Jim Blandy 6afdd6c96b Bug 1145051: Use MOZ_WARN_UNUSED_RESULT instead of NS_WARN_UNUSED_RESULT. r=glandium
--HG--
extra : rebase_source : d210822225d307f3e3685cb5f95b461c48c0be7e
2015-03-19 00:46:40 -07:00
Jacek Caban fee7ccc6d7 Bug 1153901 - Disable PlatformThread::SetName functions on builds with no SEH support. r=nfroyd 2015-04-14 18:10:19 +02:00
Kartikaya Gupta 19ef59aa9f Bug 1146349 - Wire up native event synthesization in child processes. r=smaug 2015-04-14 11:36:36 -04:00
Bill McCloskey 79abd6e01a Bug 1128457 - Change handling of urgent messages during timeout (r=dvander) 2015-04-13 18:11:49 -07:00
Jed Davis 9596875de6 Bug 1142693 - Recognize EMSGSIZE as non-fatal on OS X for IPC sendmsg(). r=bent
Loosely based on Chromium git commit 86c3d9ef4fdf, but redone to insert a
sched_yield(), because treating EMSGSIZE as if it were EAGAIN/EWOULDBLOCK
is (as the Chromium developers note) likely to act as a busy-wait for the
receiver to make progress.
2015-04-10 22:47:05 -07:00
Jed Davis 32cb9ee32d Bug 1151607 - Step 1: Add Linux sandboxing hook for when child processes are still single-threaded. r=kang r=bent
This means that B2G plugin-container must (dynamically) link against
libmozsandbox in order to call into it before initializing Binder.
(Desktop Linux plugin-container already contains the sandbox code.)
2015-04-10 18:05:19 -07:00
Ben Turner 51ec0b56dc Bug 1135344 - Don't let IPDL use names that are reserved for compilers, r=froydnj. 2015-04-09 11:35:18 -07:00
Andrea Marchesini 74817d0620 Bug 1151480 - Correct check of the BroadcastChannel origin in b2g, r=ehsan 2015-04-08 09:27:31 +01:00
Andrea Marchesini cb54385682 Bug 1156632 - Remove unused forward class declarations - patch 4 - netwerk image and dom, r=ehsan 2015-04-22 08:29:20 +02:00
Bill McCloskey a6a01e04db Bug 1121676 - Use static mutex to protect top-level protocols (r=bent) 2015-04-07 13:53:50 -07:00
Bill McCloskey 6611263e69 Bug 1146471 - Release thread asserts for IPC (r=dvander) 2015-04-07 13:46:25 -07:00
L. David Baron eef8e4b904 Back out changeset ad743e667004 (bug 950401) for Mac OS X 10.6 browser-chrome orange, mostly but not entirely on mochitest-e10s, on a CLOSED TREE. 2015-04-06 16:07:13 -07:00
Christoph Kerschbaumer 7a668f84df Bug 1133189 - Extend PrincipalInfo to handle expanded principals. r=bent, r=sicking 2015-04-06 18:44:04 -04:00
Ryan VanderMeulen 5e7ab18537 Backed out changeset 8bd316ad33c6 (bug 1133189) for suspicion of causing frequent OSX browser_frameworker_sandbox.js timeouts.
CLOSED TREE
2015-04-06 15:45:50 -04:00
Christoph Kerschbaumer f90c7ffe44 Bug 1133189 - Extend PrincipalInfo to handle expanded principals (r=bent,sicking) 2015-02-26 12:14:27 -08:00
Bill McCloskey cff3ed70bc bug 950401 - Log child process spawning on Mac/BSD. r=bsmedberg
--HG--
extra : rebase_source : 6d6842d9fead85a12b17715fb447ab53a815e5b2
extra : amend_source : 644921e61135d7c7a9e4b0858ead5b7c8f691f79
2015-03-25 07:10:36 -04:00
Steven Michaud 33228918ed Bug 1110911 - Move Mac sandboxing code into plugin-container. r=cpearce,areinald,jld 2015-04-03 11:51:41 -05:00
Nathan Froyd 7561c4089c Bug 1150266 - fix IPDL thinko for never-inline method declarations; r=bent 2015-04-01 20:40:16 -04:00
Bob Owen 283c8df550 Bug 1149971 Part 2: Cet rid of kCurrentProcessId as it makes lots of static initializers. r=dvander 2015-04-01 13:59:20 +01:00
Bob Owen 967713e4e9 Bug 1149971 Part 1: Follow-up to bug 1119878 to fix broken IPDL tests. r=dvander 2015-04-01 16:44:48 +01:00
Bill McCloskey e55b3abff3 Bug 1128457 - Make sure received messages are dispatched during timeouts (r=dvander) 2015-04-01 17:37:14 -07:00