Kyle Huey
4b25f94dc9
Bug 991812: Remove uses of RefCounted<T> that live in Gecko. r=ehsan
...
--HG--
extra : rebase_source : 239ff77ec3765a3f190ed75b1645c6011e5d1dbd
2014-04-14 12:04:24 -07:00
Ryan VanderMeulen
601b02224e
Backed out changesets ddbac34527fe and fa82f32d0c39 (bug 991812) for B2G bustage.
...
CLOSED TREE
2014-04-14 16:16:18 -04:00
Kyle Huey
acd8c16b76
Bug 991812: Remove uses of AtomicRefCounted<T> that live in Gecko. r=ehsan
2014-04-14 12:04:25 -07:00
Kyle Huey
d7199fa836
Bug 991812: Remove uses of RefCounted<T> that live in Gecko. r=ehsan
2014-04-14 12:04:24 -07:00
Benoit Jacob
5ffda8542b
Bug 987305 - Refactor EnumSerializer - r=nfroyd
2014-04-14 10:17:40 -04:00
Aaron Klotz
0fe393e140
Bug 913653: Remove lock from IOInterposer and add IOInterposer thread registration; r=froydnj
2014-04-08 22:57:52 -06:00
Thomas Zimmermann
cab5fcb4dd
Bug 990984: Explicitly close socket file descriptor, r=kyle
...
Closing the socket explicitly will make UnixSocket fail
if we're trying to read or write afterwards; indicating
potential bugs.
2014-04-08 09:30:58 +02:00
Thomas Zimmermann
88cf1c0e54
Bug 981239: Use atomic ref-counting for |UnixSocketConsumer|, r=kyle
...
|SocketSendTask| acquires a reference to |UnixSocketConsumer| on
the main thread and releases this reference on the I/O thread;
leading to race-conditions. This patch adds
- atomicity for ref-counting of |UnixSocketConsumer|, and
- stricter tests in the destructor of this class.
2014-04-08 09:27:47 +02:00
Phil Ringnalda
811409cf29
Merge b-i to a CLOSED TREE m-c
2014-04-06 10:05:10 -07:00
Ben Turner
459f767993
Bug 988878, r=bsmedberg.
2014-04-04 19:45:20 -07:00
Dave Hylands
f93caa5984
Bug 988410 - Move directory service calls onto MainThread. r=bent
2014-04-04 12:16:16 -07:00
Bill McCloskey
f38a7de260
Bug 986317 - Stop exposing urgent semantics in IPDL files (r=bent)
2014-04-03 13:29:11 -07:00
Jon Coppeard
3e811f8ee0
Bug 959787 - Handlify remaining JS APIs r=sfink r=bholley r=smaug
2014-04-02 15:28:03 +01:00
snigdha
90f0f64d5b
Bug 798033 - Headers should generally not do "using namespace" at file scope. r=jib, r=jmathies, r=rjesup, r=ekr, r=ncameron, r=blassey
2014-04-01 08:29:25 -04:00
Jon Coppeard
bb2e7cbea1
Bug 959787 - Handlify JS_ExecuteScript and JS::Evaluate APIs r=terrence r=bz
2014-04-01 11:34:39 +01:00
Ben Turner
26b0254877
Bug 977819 - 'Allow PBackgroundChild implementors to hook into the threadlocal space'. r=mrbkap.
2014-03-31 19:55:36 -07:00
Ben Turner
1bbe5c1e81
Bug 977762 - 'Provide a mechanism to get the PContentParent associated with a PBackgroundParent'. r=mrbkap.
2014-02-27 11:59:12 -08:00
Viktor Stanchev
8e97dc768e
Bug 963158 - Profiler shouldn't sample sleeping threads multiple times. r=bgirard,roc,bent,froydnj
...
--HG--
extra : rebase_source : 75789c4359a2cb02b2588cfbc9b6b3cbd1e79c78
2014-03-28 16:08:22 -04:00
Ehsan Akhgari
5b9f45a1a5
Bug 798158 - Part 1: Use a pointer-sized type to store refcounts internally; r=bsmedberg
2014-03-27 16:38:33 -04:00
Josh Aas
b72a98810f
Bug 987923: Add autorelease pool locally in GetTempDir on OS X, and also to non-main-thread event loop. r=smichaud,bent
2014-03-25 15:27:12 -05:00
Birunthan Mohanathas
1e1672e622
Bug 845478 - Part 8: Use JS::CallArgs instead of JS_{ARGV,SET_RVAL,...} in remaining instances. r=Waldo
2014-03-25 14:42:33 -04:00
Andrea Marchesini
78d2c5e587
Bug 910010 - Implementation of PFileDescriptorSet - part 2, r=bent
2014-03-25 18:37:28 +00:00
Andrea Marchesini
4fad1489fb
Bug 910010 - Implementation of PFileDescriptorSet - part 1, r=khuey
2014-03-25 18:37:13 +00:00
Birunthan Mohanathas
2917f1b9c7
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
Jed Davis
f290cbcf2b
Bug 943174 - Avoid waitpid on already-reaped content processes. r=bsmedberg
2014-03-21 08:50:07 -04:00
Blake Kaplan
e3347f1305
Bug 984708 - Make sure we clear out the shutdown timer no matter what. r=bent
2014-03-19 10:36:28 -04:00
Chris Peterson
19d23b5724
Bug 984080 - Fix clang and gcc warnings in ipc/chromium/. r=bsmedberg
2014-03-17 22:28:03 -07:00
Neil Rashbrook
c3b2f90f39
Bug 514280 Stop using nsCOMPtr for concrete types r=bsmedberg
...
--HG--
extra : rebase_source : f8fb50de9292320eb7589dd28dc566d0f5044da6
2014-03-18 00:23:03 +00:00
Wes Kocher
c0dba87922
Backed out 2 changesets (bug 514280) for OSX build bustage on a CLOSED TREE
...
Backed out changeset 2a015b45d808 (bug 514280)
Backed out changeset a01f97c1ed02 (bug 514280)
2014-03-17 15:19:53 -07:00
Neil Rashbrook
b07eaa1644
Bug 514280 Stop using nsCOMPtr for concrete types r=bsmedberg
...
--HG--
extra : rebase_source : eaca8b2925eaffb49e29a617cd72c0d6686e6d9e
2014-03-17 19:07:09 +00:00
Jon Coppeard
6ca748883c
Bug 959787 - Handlify JS_ExecuteScript, JS_EvaluateScript and other JS APIs r=sfink r=bz
2014-03-17 16:17:58 +00:00
Kyle Huey
84360900b0
Bug 967364: Pass already_AddRefed by reference instead of by value. r=bsmedberg
2014-03-15 12:00:17 -07:00
Kyle Huey
e78b977cbc
Bug 967364: Use every already_AddRefed. r=bsmedberg
2014-03-15 12:00:16 -07:00
Kyle Huey
510a49016d
Bug 967364: Rename already_AddRefed::get to take. r=bsmedberg
2014-03-15 12:00:15 -07:00
Jed Davis
b756489606
Bug 976398 - Check camera permissions directly instead of using Unix groups. r=mwu r=bent
...
Loosely based on the code used to check PRemoteOpenFile.
2014-03-12 15:48:15 -07:00
Ben Tian
506a83d68c
Bug 979668 - [Bluetooth] Sender name is not shown in transfer requests, f=tzimmermann, r=kyle
2014-03-10 10:11:27 +08:00
Ehsan Akhgari
3c8081d35a
Bug 976363 follow-up: Remove the useless comment
2014-03-09 14:34:48 -04:00
Ehsan Akhgari
d8498c6e62
Bug 976363 - Assert that the work queue is empty when a MessageLoop goes away, and delete the tasks in the deferred queue; r=bsmedberg
2014-03-09 14:33:25 -04:00
Carsten "Tomcat" Book
c346b6e437
merge b2g-inbound to mozilla-central
2014-03-07 12:49:50 +01:00
Luke Wagner
731533e709
Bug 980180 - remove principals as an argument to compilation, part 1 (r=terrence)
...
--HG--
extra : rebase_source : 8bf0ff6974870d6772021aafa88dd8fd5132fc70
2014-03-06 16:28:05 -06:00
Dave Hylands
75ba3b6ca3
Bug 977372 - Remove main thread assert so CloseFileRunnable can be used on non-main threads. r=bent
2014-03-05 20:18:06 -08:00
Thomas Zimmermann
fd69fcf96e
Bug 979858: Add include guards to headers in ipc/unixfd, r=kyle
2014-03-06 09:32:25 +01:00
Carsten "Tomcat" Book
46b08de4db
Backed out changeset 1314168b5271 (bug 977372)
2014-03-06 09:16:01 +01:00
Dave Hylands
7779f52fed
Bug 977372 - Remove main thread assert so CloseFileRunnable can be used on non-main threads. r=bent
2014-03-05 20:18:06 -08:00
Honza Bambas
02010883fb
Bug 977339 - Do GECKO_SEPARATE_NSPR_LOGS=1 by default, r=jduell
2014-03-05 14:01:09 +01:00
Benjamin Smedberg
fc175da9d1
Bug 778866 - Abort from the I/O thread on abnormal shutdown of a plugin-process, in case the main thread is wedged and the Firefox process has already been killed, r=cjones
2014-03-04 12:17:01 -05:00
Carsten "Tomcat" Book
65bc6fd7b5
merge b2g-inbound to mozilla-central
2014-03-04 14:31:59 +01:00
Kyle Machulis
ff14895221
Bug 979088 - Add padding to pickling in ipc so valgrind doesn't complain; r=bent
2014-03-03 20:05:14 -08:00
Ehsan Akhgari
f4686ac699
Bug 976258 - Undo the damage of including windows.h in IPCMessageUtils.h; r=bent
2014-03-03 21:35:51 -05:00
Thomas Zimmermann
b8da10ea47
Bug 977672: Cleanup includes and defines in UnixSocket.cpp, r=kyle
...
The patch removes unnecessary includes and define statements from
UnixSocket.cpp.
2014-02-28 10:16:53 +01:00
Thomas Zimmermann
aeb9f13274
Bug 977672: Cleanup runnables and tasks in UnixSocket.cpp, r=kyle
...
This patch cleans up runnables and tasks in UnixSocket.cpp. Every
runnable's name now ends in Runnable. There are a base classes for
runnables and tasks that hold reference to UnixSocketImpl and from
which all runnables and tasks inherit.
2014-02-28 10:16:53 +01:00
Thomas Zimmermann
a3e0c85af9
Bug 977672: Assert O_NONBLOCK for watched file descriptors, r=kyle
...
We cannot use blocking file-descriptor I/O on the I/O thread. This
patch adds an assertion to UnixFdWatcher the tests for the O_NONBLOCK
flag, when installing a file descriptor. In UnixFileWatcher, the
Open method tests for the O_NONBLOCK flag for the opened file.
File-descriptor flags for UnixSocketImpl et al are currently set by
UnixSocketImpl itself. Later patches should move this into the
methods of connector classes.
2014-02-28 10:16:52 +01:00
Carsten "Tomcat" Book
236427f5bf
Merge mozilla-central to b2g-inbound
2014-02-27 15:59:39 +01:00
Douglas Crosher
2c5801cedd
Bug 976537 - Guard against crashing in NFC shutdown when sNfcConsumer is NULL. r=allstars.chh
2014-02-26 00:54:54 +11:00
Wes Kocher
e41db1a003
Merge inbound to m-c
2014-02-26 18:20:47 -08:00
Benoit Jacob
e0a96c9060
Bug 974353 - In OpenExisting, check that the IPC-passed Shmem size matches the size stored in the SharedMemory header. And don't leak the segment on error. - r=bent
2014-02-26 14:10:55 -05:00
Thomas Zimmermann
ceb3f29bcc
Bug 974410: Cleanup UnixSocketImpl, r=kyle
...
This patch cleans up the implementation of UnixSocketImpl by
- inlining all calls to SetUpIO,
- removing the unsued constant SOCKET_RETRY_TIME_MS, and
- separating logging from Bluetooth.
2014-02-26 17:52:18 +01:00
Thomas Zimmermann
928bfd8605
Bug 974410: Inherit UnixSocketImpl from UnixSocketWatcher, r=kyle
...
The base class UnixSocketWatcher handles the connection state of
the socket. UnixSocketImpl overrides UnixSocketWatcher's callback
methods for implementing it's functionality.
2014-02-26 17:52:09 +01:00
Thomas Zimmermann
aaab8a6062
Bug 974410: Inherit UnixSocketImpl from UnixFdWatcher, r=kyle
...
With this patch UnixSocketImpl inherits from UnixFdWatcher. The
new base class implements general file-descriptor handling and
I/O watchers.
2014-02-26 17:52:00 +01:00
Thomas Zimmermann
51ec78121a
Bug 974410: Added watcher classes for Unix file descriptors, r=kyle
...
These new classes encasulate file-descriptor watchers, basic file
descriptors, and socket connections. Each class contains callback
methods for it's implemented functionality. Users should inherit
from the classes and overload the callback with their own code.
2014-02-26 17:51:52 +01:00
Benoit Jacob
22890b1636
Bug 968244 - Make IPDL-generated code not crash on bad shmems - r=bent
2014-02-25 08:57:10 -05:00
Benoit Jacob
740bf1682d
Bug 974356 - 1/4 - Initialize mOtherProcess to an invalid handle value - r=bent
2014-02-25 08:12:49 -05:00
Benoit Jacob
72803b78cd
Bug 968823 - Make Shmem gracefully handle errors instead of just aborting - r=bent
2014-02-24 22:21:48 -05:00
Steve Workman
d852516aa5
Bug 956218 - Make sure that all callbacks are called, r=bent.
2014-02-06 10:42:29 +01:00
Ben Turner
4891b5f251
Bug 956218 - '(PBackground) Add a mechanism for communicating with
...
a non-main I/O thread via thread and process links'. r=mrbkap+khuey+bsmedberg.
2013-11-26 23:59:41 -08:00
Ehsan Akhgari
b1a90fa13b
Bug 975736 - Port the remaining LDFLAGS variable in ipc/app/Makefile.in to moz.build; r=mshal
2014-02-26 21:42:21 -05:00
Ehsan Akhgari
f830a45d96
Bug 975733 - Move some LDFLAGS for building executables on Windows to moz.build; r=mshal
2014-02-26 21:38:29 -05:00
Ben Turner
29606aa5aa
Bug 976790 - Fix assertion failure, r=mrbkap.
2014-02-26 15:53:43 -08:00
Ryan VanderMeulen
5a3ac082f6
Backed out changeset 3d4a094ac17e (bug 976790) for bustage on a CLOSED TREE.
2014-02-26 16:52:29 -05:00
Ryan VanderMeulen
a088c05d9a
Merge m-c to inbound.
2014-02-26 16:42:16 -05:00
L. David Baron
4f04bcdc57
Bug 976350 patch 1: Move the contents of nsTraceRefcnt.h into nsISupportsImpl.h. r=bsmedberg
...
This makes sense since the file no longer contains anything with the
nsTraceRefcnt name in it, and it will allow renaming nsTraceRefcntImpl
back to nsTraceRefcnt.
2014-02-26 13:36:35 -08:00
Ben Turner
a65b3ef785
Bug 976790 - Fix assertion failure, r=mrbkap.
2014-02-26 13:31:32 -08:00
Benoit Jacob
8c0957dffc
Bug 974353 - Add MOZ_COUNT_[CD]TOR to SharedMemory - r=bent
2014-02-26 16:23:51 -05:00
Ben Turner
8962e6363c
Bug 974054, Use monotonic timers on POSIX. Fix from chromium repository. r=bsmedberg.
2014-02-24 13:17:31 -08:00
Ehsan Akhgari
f594359272
Bug 975740 - Port WIN32_EXE_LDFLAGS to moz.build; r=mshal
2014-02-24 08:30:25 -05:00
Ehsan Akhgari
f1e844fd62
Bug 935778 - Part 0.4: Spray even more MOZ_DECLARE_REFCOUNTED_TYPENAME across the tree
2014-02-21 09:11:33 -05:00
Ehsan Akhgari
8212be10db
Bug 935778 - Part 0.2: Spray some MOZ_DECLARE_REFCOUNTED_TYPENAME across the tree
2014-02-20 21:33:49 -05:00
Oleg Romashin
e5c33da3e3
Bug 974335 - Refactor Qt Widget Backend implementation. Qt Only changes NPDB. r=romaxa
...
--HG--
rename : dom/system/unix/Makefile.in => dom/system/qt/Makefile.in
rename : dom/system/unix/QTMLocationProvider.cpp => dom/system/qt/QTMLocationProvider.cpp
rename : dom/system/unix/QTMLocationProvider.h => dom/system/qt/QTMLocationProvider.h
rename : dom/system/unix/nsHapticFeedback.cpp => dom/system/qt/QtHapticFeedback.cpp
rename : dom/system/unix/nsHapticFeedback.h => dom/system/qt/QtHapticFeedback.h
rename : dom/system/unix/moz.build => dom/system/qt/moz.build
2014-02-20 18:09:02 -08:00
Oleg Romashin
f13b8416c2
Bug 974335 - Refactor Qt Widget Backend implementation. Build changes . r=glandium
2014-02-20 18:08:58 -08:00
Thomas Zimmermann
5d3324a832
Bug 972253: Remove DBusThread.{cpp,h}, r=kyle
...
These files are obsolete and not used any longer.
2014-02-20 12:56:24 +01:00
Jan Beich
63fcbbc46d
Bug 968432 - Implement mozilla::ipc::SetThisProcessName() on BSDs. r=dhylands
2014-02-18 15:41:23 -05:00
Ryan VanderMeulen
e8f009e46c
Backed out changeset 0f7f99d0a2f5 (bug 968432) for bustage.
2014-02-18 09:26:09 -05:00
Jan Beich
2093e2402a
Bug 968432 - Implement mozilla::ipc::SetThisProcessName() on BSDs. r=dhylands
2014-02-18 08:59:33 -05:00
Ehsan Akhgari
7ae519f00f
Bug 973393 - Move the LOCAL_INCLUDES in ipc to moz.build; r=glandium
2014-02-18 02:12:54 -05:00
Vicamo Yang
aef8dda771
Bug 960894 - 1/4: allow representing multiple clients in one RIL worker. r=bz
2014-02-17 19:35:01 +08:00
Ms2ger
6e066deaea
Bug 968856 - Move unconditional LOCAL_INCLUDES into moz.build; r=mshal
2014-02-15 21:24:59 +01:00
Ryan VanderMeulen
512d78f365
Merge m-c to b2g-inbound
2014-02-14 15:32:34 -05:00
Brian R. Bondy
368c4f8375
Bug 972459 - Windows sandbox buildingbroke after porting some LOCAL_INCLUDES variables to moz.build. r=ehsan
2014-02-14 11:07:24 -05:00
Brian R. Bondy
c4e16b9b50
Bug 969559 - Set delayed restricted integrity in child process to block off pipe and file access after LowerToken call. r=aklotz
2014-02-14 11:07:16 -05:00
Thomas Zimmermann
2c4a2c55f4
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
Thomas Zimmermann
c8723c39f0
Bug 972265: Use connect delay in RIL IPC code, r=vyang
...
When trying to re-connect a socket, the RIL IPC code now respects
the delay that is suggested by the UnixSocketConsumer.
2014-02-14 08:03:15 +01:00
Thomas Zimmermann
6d2e9a37cb
Bug 972265: Maintain connect delay in UnixSocketConsumer, r=kyle
...
UnixSocketConsumer now maintains a delay for re-establishing closed
connection. The initial delay is zero, so that the first connect call
is processed immediately. At the first failed attempt to connect, the
delay is set to ~1 second, and is increased by a factor of 2 on each
successive error until it reaches ~1 minute.
The UnixSocketConsumer code resets the delay to zero if it is lower
than the time that the connection was open. This heuristics protects
against cases where the peer establishes a connection, and closes it
shortly afterwards. Incompatible versions of rild show this behavior.
2014-02-14 08:03:05 +01:00
Jon Coppeard
8136579d75
Bug 959787 - Handlify arguments for Call APIs r=terrence r=bz
2014-02-13 15:33:04 +00:00
Marcin Juszkiewicz
123bc240c1
Bug 963023 - AArch64 support for libevent. r=froydnj
2014-02-12 10:07:48 -05:00
Benjamin Smedberg
7af51c65ca
Bug 897870 - Add diagnostic OOM size to Pickle::Pickle crashes. r=dmajor
2014-02-11 13:40:42 -05:00
Jan Beich
9cead6a174
Bug 969932 - Remove unnecessary moz.build conditional for sendfile(2) on BSDs. r=glandium
2014-02-11 09:22:46 -05:00
Jon Coppeard
60baf94ae8
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
Jeff Walden
04d5ca8c4e
Bug 969165 - Convert Atomic<T> where T != bool but is used as a bool over to Atomic<bool>, now that it's supported, in ipc/. r=bent
...
--HG--
extra : rebase_source : 9cf056a966c804e3253814aa1fc2d8fa43a5f633
2014-02-06 22:17:07 -08:00
Ehsan Akhgari
5a96208edf
Bug 968631 - Port some LOCAL_INCLUDES variables to moz.build; r=mshal
2014-02-10 13:41:02 -05:00
Thomas Zimmermann
2b89bd61c1
Bug 968868: Move DBusWatcher to RawDBusConnection, r=qdot
...
DBusWatcher is a helper for RawDBusConnection. This patch moves
both classes into the same file. Calling RawDBusConnection::Watch
installs a DBusWatcher for the connection.
2014-02-07 12:01:27 +01:00