Граф коммитов

141 Коммитов

Автор SHA1 Сообщение Дата
Sean Lin 92a150b47f Bug 1245031 - [Presentation WebAPI] Add missing test receiver files. r=schien 2016-02-02 17:08:07 +08:00
Kyle Huey 91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Bill McCloskey c663839ade Bug 1240871 - Don't allow implicit "async" in IPDL (r=mccr8,billm) 2016-01-28 20:56:37 -08:00
Shih-Chiang Chien 8d4c9a3ae8 Bug 1239242 - support PresentationRequest.startWithDevice(). r=smaug. 2016-01-13 19:21:25 +08: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
Shih-Chiang Chien f786b78629 Bug 1224113 - fix ref count issue during channel close. r=jdm 2015-12-22 19:30:08 +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
Chih-Yi Leu 5bdf623a7b Bug 1227030 - Change log module to LazyLogModule with a more self-explantory name. r=seanlin
--HG--
extra : rebase_source : e92438ada9700f112fb4074b9089f3b459781ae8
2015-12-01 02:29:00 +01:00
Nathan Froyd c381a6b86c 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
chunminchang 53f35290b7 Bug 1226144 - Free sessionId after using it. r=selin 2015-11-26 02:39: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
Carsten "Tomcat" Book d22b2c9770 Merge mozilla-central to b2g-inbound 2015-11-02 12:06:26 +01:00
Birunthan Mohanathas 9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Sean Lin 4264e83883 Bug 1217373 - [Presentation WebAPI] Avoid B2G crash due to potential excessive releases in PresentationSessionTransport. r=jdm 2015-10-22 18:33:52 +08: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 1faaf1b874 Bug 1217712 - Part 2 - handle abnormal control channel close with no reason. r=seanlin. 2015-10-23 00:16:00 +02:00
Wes Kocher 5ba2dcfe5c Merge b2ginbound to central, a=merge 2015-10-22 16:50:22 -07:00
Carsten "Tomcat" Book a58c789859 Merge m-c to b2g-inbound 2015-10-22 12:00:41 +02:00
Sean Lin 4dce1c7f21 Bug 1215426 - [Presentation WebAPI] Grant access to browser receiving pages. r=smaug 2015-10-21 14:01:08 +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 f2b18d2885 Bug 1216398 - support non-discoverable controlling device. r=junior,xeonchen.
--HG--
extra : rebase_source : 7f840bba8e86746a372dd429c3cf4358ad86cb23
2015-10-20 16:47:56 +08:00
Liang-Heng Chen 0727e1ae3e Bug 1205237 - Part 3: get self Wi-Fi IP address; r=seanlin 2015-10-21 07:53:00 +02:00
Liang-Heng Chen 9f41e090ae Bug 1205237 - Part 2: add PresentationNetworkHelper; r=schien 2015-10-18 23:06:00 +02:00
Carsten "Tomcat" Book f7cf52bdc6 Backed out changeset 2c0b212a2879 (bug 1205237) 2015-10-21 11:14:49 +02:00
Carsten "Tomcat" Book bdf50df75e Backed out changeset b47029d8d419 (bug 1205237) 2015-10-21 11:14:48 +02:00
Liang-Heng Chen 1388286814 Bug 1205237 - Part 3: get self Wi-Fi IP address; r=seanlin
--HG--
extra : rebase_source : b86c2f05e6f0bf6389864e5a2b36756c08afef0b
2015-10-20 02:32:00 +02:00
Liang-Heng Chen 2611240343 Bug 1205237 - Part 2: add PresentationNetworkHelper; r=schien
--HG--
extra : rebase_source : 7e5e6f1dd260cf530b2da33b4025ecbeda793c15
2015-10-18 23:06: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
Sean Lin 871f8e8820 Bug 1212702 - [Presentation WebAPI] Rename to PresentationConnection. Part 2 - Tests. r=smaug
--HG--
rename : dom/presentation/tests/mochitest/file_presentation_receiver_start_session_error.html => dom/presentation/tests/mochitest/file_presentation_receiver_establish_connection_error.html
rename : dom/presentation/tests/mochitest/test_presentation_receiver_start_session_error.html => dom/presentation/tests/mochitest/test_presentation_receiver_establish_connection_error.html
rename : dom/presentation/tests/mochitest/test_presentation_receiver_start_session_timeout.html => dom/presentation/tests/mochitest/test_presentation_receiver_establish_connection_timeout.html
rename : dom/presentation/tests/mochitest/test_presentation_sender_start_session_error.html => dom/presentation/tests/mochitest/test_presentation_sender_establish_connection_error.html
2015-10-12 10:39:20 +08:00
Sean Lin 734f22b0e0 Bug 1212702 - [Presentation WebAPI] Rename to PresentationConnection. Part 1 - WebIDL bindings. r=smaug
--HG--
rename : dom/presentation/PresentationSession.cpp => dom/presentation/PresentationConnection.cpp
rename : dom/presentation/PresentationSession.h => dom/presentation/PresentationConnection.h
rename : dom/webidl/PresentationSession.webidl => dom/webidl/PresentationConnection.webidl
rename : dom/webidl/PresentationSessionConnectEvent.webidl => dom/webidl/PresentationConnectionAvailableEvent.webidl
2015-10-12 10:36:31 +08:00
Sean Lin b4479e705d Bug 1205219 - [Presentation WebAPI] Support terminate semantics. Part 2 - Tests. r=smaug 2015-10-08 10:54:25 +08:00
Sean Lin fb882d073c Bug 1205219 - [Presentation WebAPI] Support terminate semantics. Part 1 - WebIDL & implementation changes. r=smaug 2015-10-08 18:11:10 +08: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
Sean Lin ca5474513a Bug 1204709 - Disable some presentation mochitests on certain platforms to avoid intermittent issues. r=kwierso 2015-10-01 11:42:27 +08:00
Ehsan Akhgari 72953e5810 Bug 1208905 - Fix a condition in PresentationResponderLoadingCallback::Init; r=baku
Found by Viva64.
2015-09-28 09:08:42 -04:00
Sean Lin 3ddd640b1b Bug 1205222 - [Presentation WebAPI] Add PresentationReceiver and navigator.presentation.receiver. r=smaug 2015-09-22 18:36:47 +08: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
Sean Lin cc9dd45d70 Bug 1205233 - Make Presentation API available for browser chrome code. r=smaug r=fabrice 2015-09-21 10:27:19 +08:00
Shu-yu Guo 64db2267cf Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Sean Lin 7535f5146c Bug 1192101 - Part 5 - Support PresentationRequest / PresentationAvailability / getSession(s). Part 5 - Tests. r=smaug 2015-09-09 17:49:32 +08:00
Sean Lin 258942501c 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 2484876e88 Bug 1192101 - Part 3 - Support PresentationRequest / PresentationAvailability / getSession(s). Part 3 - Adjust errors. r=smaug 2015-09-09 16:38:26 +08:00
Sean Lin 97f0121975 Bug 1192101 - Part 2 - Support PresentationRequest / PresentationAvailability / getSession(s). Part 2 - Change notification & event dispatching. r=smaug 2015-09-10 16:29:08 +08:00
Sean Lin 702df0ae17 Bug 1192101 - Part 1 - Support PresentationRequest / PresentationAvailability / getSession(s). Part 1 - WebIDL Bindings. r=smaug 2015-09-14 10:39:57 +08:00
Phil Ringnalda b164dfe263 Merge m-c to f-t 2015-09-11 22:10:22 -07:00
Sean Lin 9715827d6e Bug 1201805 - [Presentation WebAPI] Fix collaboration issues with control channel. Part 2 - Adjust the timing to send offer. r=smaug 2015-09-04 15:54:34 +08: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
Sean Lin 8a0a66687b Bug 1202582 - Part 2 - [Presentation WebAPI] Ensure incoming messages are well delivered to receiver pages. Part 2 - PresentationSessionInfo. r=smaug 2015-09-08 16:22:22 +08:00
Sean Lin 716c31e6f7 Bug 1202582 - Part 1 - Presentation WebAPI] Ensure incoming messages are well delivered to receiver pages. Part 1 - PresentationSessionTransport. r=jdm 2015-09-08 16:19:35 +08:00
Ryan VanderMeulen 0f38752ebc Merge inbound to m-c. a=merge 2015-08-31 15:21:02 -04:00
Sean Lin 16cb2d0274 Bug 1192727 - Improve the way that Presentation receiver gets the ID of the incoming session. r=smaug
--HG--
extra : histedit_source : 9ca69ab5fb5b440050bf6cd9e9e95242d31c2b27
2015-08-31 13:24:35 +08:00
Nicholas Nethercote f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Nick Robson 40e1ba271a Bug 904479 - Added createPromiseWithId() that returns id of resolver r=kanru,nsm
--HG--
extra : rebase_source : 2aae82958670d0154a3cf08bd0e2a80d529e36f3
2015-08-19 14:53:22 -07:00
Aryeh Gregor 5aeef0231d Bug 874842 - Return Event instead of nsIDOMEvent 2015-08-12 14:39:31 +03:00
Liang-Heng Chen 0b2eb938b1 Bug 1188935 - Part 3: register MulticastDNSDeviceProvider on Android only if API level >= 21; r=schien 2015-08-06 03:24:00 +02:00
Sean Lin 5eda6c5cc4 Bug 1069230 - Presentation API implementation. Part 9 - Tests. r=kikuo 2015-04-23 11:44:01 +08:00
Sean Lin 1efa4382a3 Bug 1069230 - Presentation API implementation. Part 8 - Data transport channel. r=jdm 2015-04-22 16:01:38 +08:00
Sean Lin 905d6d07e3 Bug 1069230 - Presentation API implementation. Part 7 - Presentation session. r=smaug 2015-04-22 16:01:38 +08:00
Sean Lin 4e9ad23c31 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 4eb814cda5 Bug 1069230 - Presentation API implementation. Part 5 - Establish session (receiver). r=smaug 2015-03-30 15:46:11 +08:00
Sean Lin 0a8b5f2ba1 Bug 1069230 - Presentation API implementation. Part 4 - Establish session (sender) & available changes. r=smaug 2015-03-30 14:27:27 +08:00
Sean Lin 638b68e1d3 Bug 1069230 - Presentation API implementation. Part 3 - IPC. r=smaug 2015-03-26 11:16:21 +08:00
Sean Lin ffb77b7af4 Bug 1069230 - Presentation API implementation. Part 2 - Presentation service and listeners. r=smaug 2015-03-25 19:47:56 +08:00
Sean Lin 1da14adfbd Bug 1069230 - Presentation API implementation. Part 1 - WebIDL Bindings. r=smaug 2015-03-19 15:48:28 +08:00
Liang-Heng Chen 4a73c736c7 Bug 1180596 - Part 2 - make customizable settings of Presentation API. r=schien 2015-07-30 18:40:00 +02:00
Liang-Heng Chen e3f1192685 Bug 1180596 - Part 1 - make add/remove/get devices available without init. r=fabrice 2015-07-21 02:28:00 +02:00
Bobby Holley 97b9240b34 Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj 2015-07-29 10:44:59 -07:00
Liang-Heng Chen edcb7c1c44 Bug 1158029 - Part 2: mDNS XPCOM module using NsdManager. r=mcmanus 2015-07-16 02:43:00 -04:00
Liang-Heng Chen 8f1a8b43a9 Bug 1171827 - Temporarily disale mDNS device provider. r=schien 2015-06-15 03:53:00 -04:00
Eric Rahm 75c4bebb79 Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-03 15:25:57 -07:00
Ryan VanderMeulen 13ac33da0b Bug 1115480 - Re-add metadata to the dom/presentation xpcshell.ini that shouldn't have been removed. 2015-06-03 10:16:50 -04:00
Liang-Heng Chen fb1b271e1c Bug 1115480 - Part 2: Implement mDNS device provider. r=schien 2015-05-20 23:06:00 -04:00
Junior Hsu c243bc0afd Bug 1166599 - make |_devices| init appropriately. r=fabrice
Also remove the redundant |TCPPresentationServer.close|

--HG--
extra : rebase_source : b4b44213bb105dea75b6cf7a0371bfe7f2c5efd5
2015-05-27 02:19:00 +02:00
Junior Hsu 0ea8611993 Bug 1164811 - Let TCP presentation server can be inited again in |listener.onClose|. r=fabrice 2015-05-14 03:37:00 -04:00
Ehsan Akhgari 1a03395848 Bug 1154275 - Remove ise() in favor of is(); r=Ms2ger 2015-05-13 14:31:58 -04:00
Andrew McCreight 9e8f4b219e Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Junior Hsu 35f5826c5e Bug 1153063 - turn on logging for debug in test_tcp_control_channel.js. r=fabrice
--HG--
extra : rebase_source : 59a826e0518e373680e2062cce45ffa1caa6bce7
2015-04-15 11:01:02 +08:00
Junior Hsu 1bba6ed97c Bug 1120308 - tcp control channel for presentation api. r=fabrice 2014-11-17 13:34:10 -08:00
Andrea Marchesini e6f385fb3d Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Ehsan Akhgari 883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Shih-Chiang Chien fbddc387d5 Bug 1080474 - Part 2 - expose device information via PresentationDeviceInfoManager API. r=khuey r=fabrice. 2014-11-14 13:55:24 -08:00
Shih-Chiang Chien de67b6547d Bug 1080474 - Part 1 - device manager for Presentation API. r=fabrice. 2014-08-27 10:28:03 +08:00