Commit Graph

75 Commits

Author SHA1 Message Date
Bill McCloskey
5aec5bf1e9 Bug 1365101 - Convert NS_GetCurrentThread uses in netwerk/ (r=meyhemer)
MozReview-Commit-ID: IHBt6XAG8em
2017-06-12 20:21:43 -07:00
Junior Hsu
a101a075a9 Bug 1359951 - Ensure that the WebSocket not sending constructor when shutting down, r=nwgh 2017-05-02 19:50:00 +02:00
Shih-Chiang Chien
3888d1d0a4 Bug 1320744 - Part 2, Allow ChannelEventQueue to perform flush on multiple threads. r=mayhemer
MozReview-Commit-ID: Egu2mvwFTUF
2017-03-18 11:36:08 +08:00
Andrea Marchesini
502e440cf3 Bug 1339713 - Use IPCStream everywhere - part 4 - PWebSocket, r=smaug 2017-03-09 14:10:24 +01:00
Tom Tromey
a4b717ab39 Bug 1060419 - make log_print use Printf.h, r=froydnj
MozReview-Commit-ID: BIZ1GQEZ1vs
2016-12-15 20:16:31 -07:00
Wei-Cheng Pan
2af5e12dfa Bug 1323949 - Use MOZ_MUST_USE in netwerk/protocol/websocket r=valentin
MozReview-Commit-ID: 6lNrHbDIUez
2016-11-23 18:00:42 +08:00
Kan-Ru Chen
1b9dd22e2d Bug 1314254 - Add mozilla::ipc::IPCResult type and convert IPDL handlers to use new return type. r=billm
We will use the new type for the generated IPDL message handler
prototype to make sure correct error handling method is called.

MozReview-Commit-ID: AzVbApxFGZ0
2016-11-15 04:26:00 +01:00
Nicholas Nethercote
1f65390cc9 Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.

As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.
2016-08-08 12:18:10 +10:00
Jarda Snajdr
1e776ef875 Bug 1286281 - Part 1: Make the nsITransportProvider interface scriptable r=sicking
MozReview-Commit-ID: LCNmwWKTiJt
2016-07-27 08:46:00 -07:00
Jonas Sicking
68ffc7579e Bug 1263991 part 6: Add e10s support for incoming websocket connections to FlyWebPublishedServer. r=baku,michal 2016-06-07 02:46:03 -07:00
Carsten "Tomcat" Book
8a4fcbeea8 Backed out changeset 64fb728c174a (bug 1263991) 2016-06-07 12:10:23 +02:00
Jonas Sicking
67b7663b81 Bug 1263991 part 6: Add e10s support for incoming websocket connections to FlyWebPublishedServer. r=baku,michal 2016-06-07 02:46:03 -07:00
Kyle Huey
b972c94d0f Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-05-05 01:45:00 -07:00
Carsten "Tomcat" Book
aadd508ffe Backed out changeset 85ce8cb0639a (bug 1268313) 2016-04-29 14:21:16 +02:00
Kyle Huey
e62a0823c9 Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-04-28 14:08:25 -07:00
Kyle Huey
a9cf047227 Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Kyle Huey
20d0dc7286 Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj 2016-03-28 10:28:15 -07:00
Andrea Marchesini
d82cb13961 Bug 1254730 - ChannelEventQueue must be thread-safe, r=michal 2016-03-14 17:10:26 +01:00
Andrea Marchesini
a98c89a748 Bug 1215092 - WebSocketEventService and WebSocket discovering - part 2 - Unique Serial number for WebSocketChannel in IPC, r=michal 2015-10-28 19:10:42 +00:00
Carsten "Tomcat" Book
457126dc02 Backed out changeset 2284c3e8c336 (bug 1215092) 2015-10-28 14:28:37 +01:00
Andrea Marchesini
ffa5134a4e Bug 1215092 - WebSocketEventService and WebSocket discovering - part 2 - Unique Serial number for WebSocketChannel in IPC, r=michal 2015-10-28 11:42:00 +00:00
Andrea Marchesini
dd33dac0cc Bug 1203802 - Websocket Frame Listener API for devtool Network Inspector - part 1 - WindowID added into WebSocketChannel, r=michal 2015-10-26 15:29:28 +00:00
Nathan Froyd
4e6d8f6705 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Wes Kocher
24d88d4d4a Backed out changeset 2bdaed564656 (bug 1125961) for b2g emulator mochitest-21 failures starting in test_fetch_event_client_postmessage.html 2015-07-30 14:53:38 -07:00
Josh Matthews
fdd75a544a Bug 1125961 - Allow sending null PBrowser actors when there's a triggering principal which can be used for security checks. r=bkelly,ddamjano 2015-06-03 15:07:42 -04:00
Christoph Kerschbaumer
69f83c785b Bug 1179505 - Make LoadInfo arguments optional in ipdl (r=bent,sicking) 2015-07-13 22:43:13 -07:00
Christoph Kerschbaumer
5944f99279 Bug 1175352 - Refactor LoadInfo arguments to be more self contained (r=bent) 2015-06-18 15:37:20 -07:00
Ryan VanderMeulen
94137249a4 Backed out changeset 068df0223a6c (bug 1125961) for e10s crashes.
CLOSED TREE
2015-06-15 15:27:53 -04:00
Josh Matthews
fbea66b003 Bug 1125961 - Allow sending null PBrowser actors when there's a triggering principal which can be used for security checks; r=dragana 2015-06-15 14:35:06 -04:00
Bill McCloskey
15dd2ea7cf Bug 1163861 - Pass window IDs in nsILoadInfo (r=ckerschb) 2015-06-09 21:04:50 -07:00
Christoph Kerschbaumer
32a6d0de6b Bug 1099296 - Attach LoadInfo to remaining callers of ioService and ProtocolHandlers - websocket changes (r=jduell) 2015-02-17 10:09:58 -08:00
Nicholas Nethercote
0247de46d8 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo. 2015-02-09 14:34:50 -08:00
Andrew McCreight
e048a7df33 Back out Bug 1127201 (part 2) for various problems. 2015-02-06 15:04:32 -08:00
Nicholas Nethercote
40ab0270d5 Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo. 2015-02-04 20:05:36 -08:00
Andrea Marchesini
095a94a0ac Bug 1123021 - Better life-time management for WebSocketChannelChild, r=smaug 2015-01-19 17:21:20 +00:00
Andrea Marchesini
81c032a7f2 Bug 1111971 - A better life-time management of aListener and aContext in WebSocketChannel. r=smaug
CLOSED TREE
2015-01-13 14:03:56 -05:00
Andrea Marchesini
f6b3251699 Bug 1091962 - AutoEventEnqueuer must keep alive ChannelEventQueue, r=smaug, r=jduell 2014-12-04 13:23:33 -08:00
Andrea Marchesini
0876910823 Bug 1090142 - WebSocketChannelChild should respect the order of the runnable to be dispatched. r=jduell 2014-11-07 09:35:54 -05:00
Steve Workman
b5e87b7edb Bug 504553 - Patch 1 - WebSockets in Workers: Dispatch WebSocketChannel::StartWebsocketConnect to target thread, r=jduell 2014-04-17 11:53:58 -07:00
Ehsan Akhgari
cae4fa66a8 Bug 1048271 - Fix more bad implicit constructors in netwerk; r=mcmanus 2014-08-05 09:20:24 -04:00
Andrea Marchesini
9462aea424 Bug 1016352 - WebSocketChannelChild must be thread-safe. r=jduell 2014-06-23 22:43:00 -04:00
Kyle Huey
643d853aa4 Bug 996133: Remove unnecessary NS_DISPATCH_NORMAL arguments to NS_DispatchToMainThread. r=ehsan 2014-05-23 12:53:17 -07:00
Steve Workman
03596e3798 Bug 925623 - Support delivery of WebSocket events off-main-thread in WebSocketChannel r=jduell 2014-03-27 13:58:19 -07:00
Ehsan Akhgari
7ce1aa5eb8 Bug 798158 - Part 1: Use a pointer-sized type to store refcounts internally; r=bsmedberg 2014-03-27 16:38:33 -04:00
Andrea Marchesini
95913f6157 Bug 910010 - Implementation of PFileDescriptorSet - part 1, r=khuey 2014-03-25 18:37:13 +00:00
Nathan Froyd
d3d40de64f Bug 918651 - part 7a - fix source files bootlegging things from IPDL headers; rs=ehsan 2013-10-18 16:57:55 -04:00
Ehsan Akhgari
deb5a6a21b Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
Jason Duell
21f901be6f Bug 870564 - Youtube video freezes after a long time r=jdm 2013-06-04 16:10:55 -07:00
Jason Duell
765b359bfa Bug 849364 - Provide per-websocket way to enable keepalive pings. r=mcmanus 2013-03-28 15:52:16 -07:00
Masatoshi Kimura
a4c60c47da Bug 827032 - Enable FAIL_ON_WARNINGS on MSVC in netwerk/. r=jduell 2013-02-08 20:49:30 +09:00