Commit Graph

43 Commits

Author SHA1 Message Date
Bevis Tseng
59627df038 Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm 2017-07-27 02:18:20 +08:00
Kershaw Chang
fedb43540b Bug 1301259 - Part2: Close the connected/connecting connection before starting reconnecting, r=smaug 2016-09-28 23:35:00 +02:00
Kershaw Chang
85815f337e Bug 1228474 - Support sending blob/arraybuffer for data channel. r=smaug 2016-09-17 19:42:00 -04:00
Kershaw Chang
b6c3ca6e76 Bug 1299040 - Implement transport builder constructor. r=smaug 2016-09-16 08:59:00 -04:00
Phil Ringnalda
2f505ce078 Backed out changeset e684bf18e5d9 (bug 1299040) for bad implicit conversion constructor bustage
CLOSED TREE
2016-09-15 19:31:32 -07:00
Kershaw Chang
c9efa4f714 Bug 1299040 - Implement transport builder constructor. r=smaug 2016-09-15 07:09:00 -04:00
Shih-Chiang Chien
b883ae155c Bug 1264110 - fix timing issue in test cases. r=kershaw.
MozReview-Commit-ID: 2Ia4L7EizrA
2016-09-05 18:18:11 +08:00
Nicholas Nethercote
b5810a1eb4 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");
2016-09-02 17:12:24 +10:00
Kershaw Chang
fa7cd59cea Bug 1295063 - Send reconnect command when NotifyConnected. r=smaug 2016-08-16 19:32:00 -04:00
Shih-Chiang Chien
a7a1a7d679 Bug 1284188 - use nsINetworkInfoService to obtain self IP address. r=smaug.
MozReview-Commit-ID: 1QwjrkV9cEk
2016-08-12 15:27:33 +08:00
Shih-Chiang Chien
c161a12bc0 Bug 1287717 - Part 2, close receiver page while loading fail. r=smaug.
MozReview-Commit-ID: Dogham2LmHG
2016-08-04 09:46:14 +08:00
Kershaw Chang
4f6cef49d3 Bug 1197690 - Part2: Implement reconnect, r=smaug 2016-08-02 19:11:00 +02:00
Shih-Chiang Chien
d1736335bc Bug 1276378 - Part 2: Implement PresentationConnection.terminate(). r=smaug
MozReview-Commit-ID: 7GqgIdsuM3f
2016-06-14 08:15:07 +01:00
Junior Hsu
b21fb63142 Bug 1264513 - Part 2: PPresentationBuilder.ipdl changes - OOP handling for builder, r=smaug 2016-06-03 14:48:26 +08:00
Junior Hsu
73e04640f5 Bug 1264513 - Part 1: IPresentationSessionTransportBuilder.idl changes - necessary refactory in in-proc data channel handling, r=smaug 2016-06-03 14:48:26 +08:00
Kershaw Chang
817ba01559 Bug 1258600 - Part2: Implement onconnect, onclose and onterminate event handlers, r=smaug 2016-05-30 08:48:00 +02:00
Kershaw Chang
a248d5b53e Bug 1258602 - Part3: Changes for making the initial state to “connecting”, r=smaug 2016-05-29 23:01:00 +02:00
Kershaw Chang
2cc8871570 Bug 1258602 - Part1: Add PresentationConnectionList, r=smaug 2016-05-29 19:59:00 +02:00
KuoE0
8434496296 Bug 1234492 - Part 1 - Add direction in PresentationService, r=smaug
Conflicts:
	dom/presentation/PresentationConnection.cpp
	dom/presentation/PresentationService.cpp
	dom/presentation/interfaces/nsIPresentationService.idl
	dom/presentation/ipc/PPresentation.ipdl
	dom/presentation/ipc/PresentationIPCService.cpp
	dom/presentation/ipc/PresentationParent.cpp
2016-04-18 02:19:00 +02:00
Ryan VanderMeulen
e6e0857e41 Backed out 3 changesets (bug 1234492) for frequent OSX test_presentation_dc_receiver.html failures.
Backed out changeset 94ec70bf8c22 (bug 1234492)
Backed out changeset ac0e65743b5d (bug 1234492)
Backed out changeset 801cac365dd9 (bug 1234492)
2016-04-24 18:50:55 -04:00
KuoE0
6a84e01e73 Bug 1234492 - Part 1: Add direction in PresentationService. r=smaug 2015-11-27 16:06:32 +08:00
Junior Hsu
a0e7fcd75d Bug 1148307 - Part 4, use data channel in substitution for TCP session transport (in-process), r=smaug 2016-04-11 11:20:55 +08:00
Junior Hsu
168111d292 Bug 1148307 - Part 2, let session transport send DOM string. r=smaug 2016-04-11 11:20:55 +08:00
Junior Hsu
72698cae59 Bug 1148307 - Part1, separate object bruilder from nsIPresentationSessionTransport, r=smaug 2015-09-24 16:16:47 +08:00
Sebastian Hengst
d4cf5b0fe9 Backed out changeset 17dfb6404d37 (bug 1148307) for OS X build bustage. r=backout on a CLOSED TREE 2016-04-11 13:12:34 +02:00
Sebastian Hengst
cd7dbf8185 Backed out changeset dfe4cc7062d1 (bug 1148307) 2016-04-11 13:12:26 +02:00
Sebastian Hengst
3f59d3b216 Backed out changeset 3cb658c3e3f9 (bug 1148307) 2016-04-11 13:12:13 +02:00
Junior Hsu
75501f4251 Bug 1148307 - Part 4 - use data channel in substitution for TCP session transport (in-process), r=smaug 2016-04-11 11:20:55 +08:00
Junior Hsu
62649df93f Bug 1148307 - Part 2 - let session transport send DOM string. r=smaug 2016-04-11 11:20:55 +08:00
Junior Hsu
5b8da68629 Bug 1148307 - Part1 - separate object bruilder from nsIPresentationSessionTransport, r=smaug 2015-09-24 16:16:47 +08:00
Nathan Froyd
54dfa729a9 Bug 1218454 - part 2 - don't #include nsContentUtils.h from CallbackObject.h; r=bz
We used to need nsContentUtils.h here for nsCxPusher, but since that got
moved to ScriptSettings.h, we no longer need nsContentUtils.h for
anything.
2015-10-26 12:14:47 -04:00
Liang-Heng Chen
69eadb49dc Bug 1205237 - Part 3: get self Wi-Fi IP address; r=seanlin 2015-10-21 07:53:00 +02:00
Carsten "Tomcat" Book
8acbd4a9ae Backed out changeset b47029d8d419 (bug 1205237) 2015-10-21 11:14:48 +02:00
Liang-Heng Chen
fff4aa60a7 Bug 1205237 - Part 3: get self Wi-Fi IP address; r=seanlin 2015-10-20 02:32:00 +02: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
Sean Lin
9f01d73942 Bug 1205219 - [Presentation WebAPI] Support terminate semantics. Part 1 - WebIDL & implementation changes. r=smaug 2015-10-08 18:11:10 +08:00
Sean Lin
f11d1b198c Bug 1192101 - Part 4 -Support PresentationRequest / PresentationAvailability / getSession(s). Part 4 - Rename PresentationSessionInfo relevant classes. r=smaug 2015-09-09 17:41:55 +08:00
Sean Lin
608227122d Bug 1192727 - Improve the way that Presentation receiver gets the ID of the incoming session. r=smaug 2015-08-31 13:24:35 +08:00
Sean Lin
873beae68f Bug 1069230 - Presentation API implementation. Part 8 - Data transport channel. r=jdm 2015-04-22 16:01:38 +08:00
Sean Lin
a0bf75e2f6 Bug 1069230 - Presentation API implementation. Part 6 - mozChromeEvent for app launch. r=fabrice r=smaug 2015-03-30 15:48:11 +08:00
Sean Lin
546a97188e Bug 1069230 - Presentation API implementation. Part 5 - Establish session (receiver). r=smaug 2015-03-30 15:46:11 +08:00
Sean Lin
5575a6dd79 Bug 1069230 - Presentation API implementation. Part 4 - Establish session (sender) & available changes. r=smaug 2015-03-30 14:27:27 +08:00
Sean Lin
c4a4b9898c Bug 1069230 - Presentation API implementation. Part 2 - Presentation service and listeners. r=smaug 2015-03-25 19:47:56 +08:00