Commit Graph

63 Commits

Author SHA1 Message Date
Sebastian Hengst
0f952f34dd Bug 1306397 - Remove B2G event 'network-active-changed' and consumers from non-B2G/Gonk files: dom/presentation. r=schien
MozReview-Commit-ID: 1tTdMntEo54

--HG--
extra : rebase_source : 6337b60928644891cd7f4e6fe3018c7eda5fa978
2016-09-29 19:53:44 +02:00
Nicholas Nethercote
34dcc7b852 Bug 1299384 - Use MOZ_MUST_USE with NS_warn_if_impl(). r=erahm.
This change avoids lots of false positives for Coverity's CHECKED_RETURN
warning, caused by NS_WARN_IF's current use in both statement-style and
expression-style.

In the case where the code within the NS_WARN_IF has side-effects, I made the
following change.

> NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
> -->
> Unused << NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));

In the case where the code within the NS_WARN_IF lacks side-effects, I made the
following change.

> NS_WARN_IF(!condWithoutSideEffects);
> -->
> NS_WARNING_ASSERTION(condWithoutSideEffects, "msg");

This has two improvements.
- The condition is not evaluated in non-debug builds.
- The sense of the condition is inverted to the familiar "this condition should
  be true" sense used in assertions.

A common variation on the side-effect-free case is the following.

> nsresult rv = Fn();
> NS_WARN_IF_(NS_FAILED(rv));
> -->
> DebugOnly<nsresult rv> = Fn();
> NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "Fn failed");

--HG--
extra : rebase_source : 58788245021096efa8372a9dc1d597a611d45611
2016-09-02 17:12:24 +10:00
Shih-Chiang Chien
a2a2c152ab Bug 1228526 - Part 1, support device filtering by requested presentation URL. r=smaug
MozReview-Commit-ID: JrqeavLGub1

--HG--
extra : rebase_source : fc2eca80d59dc36e97a7af8ed3de6597faf38703
2016-08-26 10:59:27 +08:00
Kan-Ru Chen
b6d880aca1 Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
The patch is generated from following command:

  rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,

MozReview-Commit-ID: AtLcWApZfES


--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Shih-Chiang Chien
d0642b046a Bug 1153134 - Part 3, retry startServer after timeout. r=junior.
MozReview-Commit-ID: 94cyXVPf5FN
2016-08-02 10:48:22 +08:00
Shih-Chiang Chien
555b9e27e8 Bug 1153134 - Part 2, support TLS control server. r=junior.
MozReview-Commit-ID: 2jVShMuEzTi
2016-07-26 10:59:52 +08:00
Shih-Chiang Chien
2bfa235595 Bug 1153134 - Part 1, establish TLS socket to encrypted control server. r=junior.
MozReview-Commit-ID: BamVPUoQP1r
2016-07-18 18:45:07 +08:00
Kershaw Chang
165708a330 Bug 1197690 - Part1: Support reconnect command, r=junior
--HG--
extra : rebase_source : 4ccac7c28201562848c18b60b18614f450bdd19f
2016-08-02 19:10:00 +02:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Shih-Chiang Chien
c8b67767f3 Bug 1276378 - Part 1: Add terminate command in control protocol. r=junior
MozReview-Commit-ID: BwfJKcXmN07

--HG--
extra : rebase_source : 7df8c968def5fa9640499257ce8b8814fe884388
2016-05-26 16:22:27 -07:00
Shih-Chiang Chien
387368f47d Bug 1272197 - Part 5, rename callback functions in nsIPresentationControlChannel.idl. r=junior
MozReview-Commit-ID: cvavmuUxeX
2016-07-12 10:16:46 +08:00
Shih-Chiang Chien
004be13dbc Bug 1272197 - Part 3, backward compatibility for connecting TV 2.5 devices. r=junior
MozReview-Commit-ID: 1znjwuoO27b

--HG--
rename : dom/presentation/provider/MulticastDNSDeviceProvider.cpp => dom/presentation/provider/LegacyMDNSDeviceProvider.cpp
rename : dom/presentation/provider/MulticastDNSDeviceProvider.h => dom/presentation/provider/LegacyMDNSDeviceProvider.h
2016-07-04 18:27:09 +08:00
Shih-Chiang Chien
0357c84f74 Bug 1272197 - Part 2, implement start presentation procedure. r=junior
MozReview-Commit-ID: 6RwrwfPpCuR
2016-07-04 18:12:04 +08:00
Shih-Chiang Chien
a4ba4d12cf Bug 1272197 - Part 1 - broadcast new service type and protocol version on mDNS. r=junior
MozReview-Commit-ID: LIQmwVAz7gJ
2016-05-26 16:22:27 -07:00
Shih-Chiang Chien
91436f625e Bug 1272197 - Part 0 - introduce jshint in PresentationControlService. r=junior
MozReview-Commit-ID: IGobNOtSL3Z
2016-07-04 17:58:51 +08:00
Jonathan Watt
b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Nicholas Nethercote
ec7b5a5b2b No bug. Fix typo in name of mDiscveryTimeoutMs. r=me. 2016-06-01 11:45:16 +10:00
Shih-Chiang Chien
c6b56100ad Bug 1228266 - rename TCPPresentationServer to PresentationControlService. r=junior.
MozReview-Commit-ID: 2kHZ0XUG2ew

--HG--
rename : dom/presentation/interfaces/nsITCPPresentationServer.idl => dom/presentation/interfaces/nsIPresentationControlService.idl
rename : dom/presentation/provider/TCPPresentationServer.js => dom/presentation/provider/PresentationControlService.js
extra : rebase_source : adc621d185c91e74c1abbef8cc2d519f5bbaed3a
2016-05-20 14:53:30 +08:00
Chris Peterson
8a9e2d2bd4 Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
Kyle Huey
941ab1f522 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
ba3fe0975c Backed out changeset 85ce8cb0639a (bug 1268313)
--HG--
extra : rebase_source : 56d1cf41a2dc4959b67f834e07192a5c772176a8
2016-04-29 14:21:16 +02:00
Kyle Huey
48a594a09e Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-04-28 14:08:25 -07:00
KuoE0
924d24f058 Bug 1208417 - Part 3 - Leverage socket-based session transport to establish presentation connection, r=schien, r=smaug 2016-04-28 15:05:53 +08:00
KuoE0
f6da5068fb Bug 1208417 - Part 2 - Add DisplayDeviceProvider to Presentation API, r=schien, r=smaug 2016-04-28 15:05:25 +08:00
KuoE0
c96544e832 Bug 1208417 - Part 1 - Add disconnect to nsIPresentationDevice & add a new nsIPresentationLocalDevice interface for 1-UA device, r=smaug 2016-04-28 15:05:16 +08:00
Junior Hsu
926d8aa917 Bug 1148307 - Part 3, implement session transport with DataChannel. r=jib.
--HG--
extra : rebase_source : 821a3fae4c6146d77d2e714e14e5eb9316f39e67
2016-04-11 11:20:55 +08:00
Sebastian Hengst
c8b30f409e Backed out changeset 820f92f08f69 (bug 1148307) 2016-04-11 13:12:20 +02:00
Junior Hsu
fee05caf8c Bug 1148307 - Part 3 - implement session transport with DataChannel. r=jib. 2016-04-11 11:20:55 +08:00
Mantaroh Yoshinaga
3f7a5888a9 Bug 1253181 - Fix the variable name in TCPPresentationServer.js. r=schien 2016-03-03 07:10:00 -05:00
Nicholas Nethercote
ec89bbf7f2 Bug 1237151 (part 3) - Remove ignored qualifiers in all remaining code. r=froydnj. 2016-01-05 17:08:45 -08:00
Bogdan Postelnicu
9cf016e410 Bug 1231677 - verify the return of mDiscoveryTimer->Init, if it faild exit function with error code. r=jst 2015-12-10 07:56:00 +01:00
Shih-Chiang Chien
215c71de0b Bug 1225726 - enable nsDNSServiceDiscovery on OS X. r=mcmanus. 2015-11-18 14:02:31 +08:00
Birunthan Mohanathas
399934f259 Bug 1217307 - Remove some unnecessary null checks in rest of dom/. r=njn 2015-11-19 09:13:49 +02:00
Liang-Heng Chen
f644955620 Bug 1217807 - Part 2: Handle network online/offline event in TCPPresentationServer; r=junior
--HG--
extra : rebase_source : ca37f6102d65a7820d502f71d998eb33cf68f47c
2015-11-03 01:04:00 +01:00
Birunthan Mohanathas
9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Junior Hsu
a647752f7e Bug 1217683 - Add sendIceCandidate and implement |close(aReason)| in TCPControlChannel. r=fabrice 2015-05-25 15:23:26 +08:00
Shih-Chiang Chien
f2b18d2885 Bug 1216398 - support non-discoverable controlling device. r=junior,xeonchen.
--HG--
extra : rebase_source : 7f840bba8e86746a372dd429c3cf4358ad86cb23
2015-10-20 16:47:56 +08:00
Shih-Chiang Chien
c57dc9bed7 Bug 1214179 - Provide device Id for non-discoverable controller. r=xeonchen 2015-10-21 01:09:00 -04:00
Kershaw Chang
dbc1c386c9 Bug 1200132 - Use adderss to create socketTransport, r=schien, junior 2015-10-21 02:54:00 +02:00
Shih-Chiang Chien
990453f6e9 Bug 1136565 - report session request from device provider. r=xeonchen,junior,seanlin. 2015-10-19 10:44:59 +08:00
Nathan Froyd
01583602a9 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

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Shih-Chiang Chien
c281dbf704 Bug 1214176 - fix typo in _onOffer. r=junior.
--HG--
extra : rebase_source : 170c791f0b16fcc4dd49faea4301813c51c834d3
2015-10-13 05:23:00 +02:00
Liang-Heng Chen
6e929f6435 Bug 1194049 - Part 4: clear discovered devices when re-discover; r=schien 2015-09-30 01:48:00 +02:00
Liang-Heng Chen
84640eeee7 Bug 1194049 - Part 3: support device update; r=fabrice 2015-09-17 00:43:00 +02:00
Liang-Heng Chen
63cdeef8d2 Bug 1194049 - Part 2: add discovery timeout support; r=schien 2015-09-30 23:55:00 +02:00
Liang-Heng Chen
2437eeb9b2 Bug 1194049 - Part 1: add thread assertion; r=schien 2015-09-08 23:42:00 +02:00
Chris Peterson
71920a9550 Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium 2015-09-22 21:39:03 -07:00
Phil Ringnalda
b164dfe263 Merge m-c to f-t 2015-09-11 22:10:22 -07:00
Sean Lin
61577abd58 Bug 1201805 - [Presentation WebAPI] Fix collaboration issues with control channel. Part 1 - String mismatch in channel description. r=fabrice 2015-09-01 16:52:51 +08:00
Liang-Heng Chen
2d608f8465 Bug 1193605 - Part 1: enable mdns on Fennec. r=mcmanus r=rnewman 2015-08-25 06:58:00 +02:00