Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Issue 1191393003: Update client side navigator.connect API to use ServicePortCollection [1/3] (Closed)

Created:
5 years, 6 months ago by Marijn Kruisselbrink
Modified:
5 years, 6 months ago
CC:
blink-reviews, bsittler, chasej, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@serviceport
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Update client side navigator.connect API to use ServicePortCollection [1/3] This is part of a series of patches to update the client side API of what was formerly known as navigator.connect to follow the new spec based on navigator.services and a new ServicePort type. This patch adds the new client side API to blink, and updates tests to work with either the old or new API. Also deletes the system-services test as it is unclear in what form that functionality will be kept. [1/3] This patch [2/3] https://codereview.chromium.org/1192713004 Content side changes to implement the new API [3/3] https://codereview.chromium.org/1198653004/ Cleanup and removing old code paths on the blink side and in tests. BUG=426458 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197794

Patch Set 1 : #

Total comments: 12

Patch Set 2 : rebase #

Patch Set 3 : add a destroy() method to WebServicePortProvider #

Patch Set 4 : improve comments #

Total comments: 26

Patch Set 5 : make ServicePortCollection garbage collected and other nits #

Total comments: 5

Patch Set 6 : address more comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+517 lines, -182 lines) Patch
M LayoutTests/FlakyTests View 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/navigatorconnect/connect.html View 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/http/tests/navigatorconnect/postmessage.html View 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/http/tests/navigatorconnect/resources/connect-helper.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/navigatorconnect/resources/connect-helper.js View 1 chunk +3 lines, -1 line 0 comments Download
M LayoutTests/http/tests/navigatorconnect/resources/postmessage-tests.js View 3 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/http/tests/navigatorconnect/resources/test-helpers.js View 1 chunk +61 lines, -0 lines 0 comments Download
D LayoutTests/http/tests/navigatorconnect/system-service.html View 1 chunk +0 lines, -160 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 chunk +7 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt View 1 chunk +7 lines, -0 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M Source/modules/navigatorconnect/NavigatorServices.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A Source/modules/navigatorconnect/ServicePort.h View 1 2 3 4 1 chunk +53 lines, -0 lines 0 comments Download
A Source/modules/navigatorconnect/ServicePort.cpp View 1 2 3 4 5 1 chunk +86 lines, -0 lines 0 comments Download
A Source/modules/navigatorconnect/ServicePort.idl View 1 chunk +17 lines, -0 lines 0 comments Download
M Source/modules/navigatorconnect/ServicePortCollection.h View 1 2 3 4 5 2 chunks +25 lines, -7 lines 0 comments Download
M Source/modules/navigatorconnect/ServicePortCollection.cpp View 1 2 3 4 2 chunks +107 lines, -4 lines 0 comments Download
M Source/modules/navigatorconnect/ServicePortCollection.idl View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M Source/modules/navigatorconnect/WorkerNavigatorServices.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M public/platform/Platform.h View 2 chunks +8 lines, -1 line 0 comments Download
A + public/platform/modules/navigator_services/OWNERS View 0 chunks +-1 lines, --1 lines 0 comments Download
A public/platform/modules/navigator_services/WebServicePort.h View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
A public/platform/modules/navigator_services/WebServicePortProvider.h View 1 2 3 4 1 chunk +68 lines, -0 lines 0 comments Download
A public/platform/modules/navigator_services/WebServicePortProviderClient.h View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 25 (11 generated)
Marijn Kruisselbrink
5 years, 6 months ago (2015-06-22 17:47:48 UTC) #7
scheib
https://codereview.chromium.org/1191393003/diff/100001/LayoutTests/http/tests/navigatorconnect/resources/test-helpers.js File LayoutTests/http/tests/navigatorconnect/resources/test-helpers.js (right): https://codereview.chromium.org/1191393003/diff/100001/LayoutTests/http/tests/navigatorconnect/resources/test-helpers.js#newcode98 LayoutTests/http/tests/navigatorconnect/resources/test-helpers.js:98: function sequential_promise_test(func, name) { Instead of duplicating this, move ...
5 years, 6 months ago (2015-06-24 04:16:55 UTC) #8
Marijn Kruisselbrink
+haraken: is my understanding/explanation as to why Notification.data deserializes its value on every access (and ...
5 years, 6 months ago (2015-06-24 17:03:27 UTC) #10
scheib
LGTM https://codereview.chromium.org/1191393003/diff/100001/LayoutTests/http/tests/navigatorconnect/resources/test-helpers.js File LayoutTests/http/tests/navigatorconnect/resources/test-helpers.js (right): https://codereview.chromium.org/1191393003/diff/100001/LayoutTests/http/tests/navigatorconnect/resources/test-helpers.js#newcode98 LayoutTests/http/tests/navigatorconnect/resources/test-helpers.js:98: function sequential_promise_test(func, name) { On 2015/06/24 17:03:27, Marijn ...
5 years, 6 months ago (2015-06-24 23:00:49 UTC) #11
Marijn Kruisselbrink
https://codereview.chromium.org/1191393003/diff/100001/LayoutTests/http/tests/navigatorconnect/resources/test-helpers.js File LayoutTests/http/tests/navigatorconnect/resources/test-helpers.js (right): https://codereview.chromium.org/1191393003/diff/100001/LayoutTests/http/tests/navigatorconnect/resources/test-helpers.js#newcode98 LayoutTests/http/tests/navigatorconnect/resources/test-helpers.js:98: function sequential_promise_test(func, name) { On 2015/06/24 at 23:00:48, scheib ...
5 years, 6 months ago (2015-06-24 23:42:48 UTC) #12
Marijn Kruisselbrink
+tkent for public/ OWNERS
5 years, 6 months ago (2015-06-24 23:43:00 UTC) #14
haraken
https://codereview.chromium.org/1191393003/diff/100001/Source/modules/navigatorconnect/ServicePort.cpp File Source/modules/navigatorconnect/ServicePort.cpp (right): https://codereview.chromium.org/1191393003/diff/100001/Source/modules/navigatorconnect/ServicePort.cpp#newcode81 Source/modules/navigatorconnect/ServicePort.cpp:81: m_serializedData = SerializedScriptValueFactory::instance().createFromWire(m_port.data); On 2015/06/24 17:03:27, Marijn Kruisselbrink wrote: ...
5 years, 6 months ago (2015-06-24 23:50:32 UTC) #15
haraken
https://codereview.chromium.org/1191393003/diff/160001/Source/modules/navigatorconnect/ServicePort.cpp File Source/modules/navigatorconnect/ServicePort.cpp (right): https://codereview.chromium.org/1191393003/diff/160001/Source/modules/navigatorconnect/ServicePort.cpp#newcode45 Source/modules/navigatorconnect/ServicePort.cpp:45: // investigate caching this similar to how MessageEvent caches ...
5 years, 6 months ago (2015-06-24 23:59:59 UTC) #17
tkent
public lgtm with nits https://codereview.chromium.org/1191393003/diff/160001/public/platform/modules/navigator_services/WebServicePortProvider.h File public/platform/modules/navigator_services/WebServicePortProvider.h (right): https://codereview.chromium.org/1191393003/diff/160001/public/platform/modules/navigator_services/WebServicePortProvider.h#newcode16 public/platform/modules/navigator_services/WebServicePortProvider.h:16: typedef WebVector<class WebMessagePortChannel*> WebMessagePortChannelArray; typdef ...
5 years, 6 months ago (2015-06-25 00:07:57 UTC) #18
Marijn Kruisselbrink
https://codereview.chromium.org/1191393003/diff/160001/Source/modules/navigatorconnect/ServicePort.cpp File Source/modules/navigatorconnect/ServicePort.cpp (right): https://codereview.chromium.org/1191393003/diff/160001/Source/modules/navigatorconnect/ServicePort.cpp#newcode45 Source/modules/navigatorconnect/ServicePort.cpp:45: // investigate caching this similar to how MessageEvent caches ...
5 years, 6 months ago (2015-06-25 01:07:26 UTC) #19
haraken
LGTM in terms of oilpan and bindings. https://codereview.chromium.org/1191393003/diff/160001/Source/modules/navigatorconnect/ServicePort.h File Source/modules/navigatorconnect/ServicePort.h (right): https://codereview.chromium.org/1191393003/diff/160001/Source/modules/navigatorconnect/ServicePort.h#newcode49 Source/modules/navigatorconnect/ServicePort.h:49: WeakPtrWillBeWeakMember<ServicePortCollection> m_collection; ...
5 years, 6 months ago (2015-06-25 01:21:40 UTC) #20
Marijn Kruisselbrink
https://codereview.chromium.org/1191393003/diff/180001/Source/modules/navigatorconnect/ServicePort.cpp File Source/modules/navigatorconnect/ServicePort.cpp (right): https://codereview.chromium.org/1191393003/diff/180001/Source/modules/navigatorconnect/ServicePort.cpp#newcode67 Source/modules/navigatorconnect/ServicePort.cpp:67: if (m_collection) { On 2015/06/25 at 01:21:40, haraken wrote: ...
5 years, 6 months ago (2015-06-25 02:18:55 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1191393003/200001
5 years, 6 months ago (2015-06-25 03:21:34 UTC) #24
commit-bot: I haz the power
5 years, 6 months ago (2015-06-25 03:25:04 UTC) #25
Message was sent while issue was closed.
Committed patchset #6 (id:200001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197794

Powered by Google App Engine
This is Rietveld 408576698