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
6a849db621
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
ec14e9c7e4
Bug 1168843 - use thread-safe refcounting for shared memory surfaces to avoid shutdown crashes. r=jmuizelaar
2015-05-27 11:20:26 -04:00
Michael Layzell
c66efc42e2
Bug 1167396 - Make ProtocolCloneContext::mContentParent a smart pointer. r=bent
2015-05-22 10:10:00 -04:00
Phil Ringnalda
ef9b6bff2c
Back out 7842a044a183 (bug 1167431) for widespread bustage
...
CLOSED TREE
2015-05-22 18:53:41 -07:00
Ben Turner
9e9e48237c
Bug 1167431 - 'Properly clean up actors whose RecvFooConstructor method returns false', r=billm.
2015-05-22 16:10:02 -07:00
Nathan Froyd
e84beb9971
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
3da662e4d2
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
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
0bd48eef5c
Bug 1164417: Store PDU consumer in |BluetoothDaemonConnection|, r=kmachulis
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
Carsten "Tomcat" Book
128f78a151
merge mozilla-inbound to mozilla-central a=merge
2015-05-20 15:52:31 +02:00
Carsten "Tomcat" Book
481ed3214e
merge b2g-inbound to mozilla-central a=merge
2015-05-20 15:31:22 +02:00
Thomas Zimmermann
c2bc947898
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
07f4d250ef
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
c3e0afb1a6
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
c983ccdc82
Bug 1164425: Rename |SocketBase::CloseSocket| to |SocketBase::Close|, r=kmachulis
2015-05-20 10:50:43 +02:00
Carsten "Tomcat" Book
5504c0ac35
Backed out changeset 1e93024c9fec (bug 1164425) for bustage
2015-05-20 10:31:55 +02:00
Carsten "Tomcat" Book
f9318abe9b
Backed out changeset 2fd186d1a288 (bug 1164425)
2015-05-20 10:31:09 +02:00
Carsten "Tomcat" Book
9729509b11
Backed out changeset 17bd0777339a (bug 1164425)
2015-05-20 10:30:55 +02:00
Carsten "Tomcat" Book
adee24e3ca
Backed out changeset 97ccb9e0cefb (bug 1164425)
2015-05-20 10:30:41 +02:00
Thomas Zimmermann
41eeff7646
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
bc22aa14e9
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
67d5249f3b
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
b7f2673e7e
Bug 1164425: Rename |SocketBase::CloseSocket| to |SocketBase::Close|, r=kmachulis
2015-05-20 09:54:27 +02:00
Wes Kocher
8b0ff121cf
Merge b2ginbound to central, a=merge
2015-05-19 16:42:57 -07: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
2cb18d9f0a
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
def674747e
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
e4f9093f6a
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
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
Thomas Zimmermann
991a2ddf77
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
a5b2d5a35a
Bug 968520 - Add mozilla::fallible to Fallible{Auto,}TArray::SetLength calls. r=froydnj
2015-05-18 13:50:35 -07:00
Birunthan Mohanathas
df18f9f837
Bug 968520 - Add mozilla::fallible to Fallible{Auto,}TArray::SetCapacity calls. r=froydnj
2015-05-18 13:50:34 -07:00
Carsten "Tomcat" Book
89becff57d
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)
2015-06-02 13:05:56 +02:00
David Anderson
fb219f8256
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
e2b97ef62c
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
5c7d8ad16b
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
0f20b67fe0
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
f2af0b9f44
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
2a7ed059f1
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
f4126920d7
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
17cb0f45a8
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
c9cb4d66f8
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
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
57a827c095
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
c68ef7f5ea
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
23d9d16594
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
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