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

Issue 26078002: Rename WebServiceWorkerRegistry to WebServiceWorkerProvider (Closed)

Created:
7 years, 2 months ago by alecflett
Modified:
7 years, 2 months ago
CC:
blink-reviews, jamesr, dglazkov+blink, Nate Chapin, gavinp+loader_chromium.org
Visibility:
Public.

Description

Rename WebServiceWorkerRegistry to WebServiceWorkerProvider After working on the chromium side, we changed the model a bit. - Now the WebFrameClient method is more of a factory, and the WebServiceWorkerProvider (formerly the Registry) is owned per-page - There's now a per-page client so that errors that originate from the browser side can bubble back out to the renderer. The client interface hasn't been flushed out, but there's a stub didFailToStart() call, that is the only known error that can propagate from the browser BUG=285976 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159543

Patch Set 1 #

Patch Set 2 : Add some comments #

Total comments: 1

Patch Set 3 : Add logging error handler #

Total comments: 1

Patch Set 4 : Make logging providerclient more obviously temporary #

Patch Set 5 : Remove unnecessary inheritance #

Patch Set 6 : Take 2 #

Total comments: 1

Patch Set 7 : Take 3 #

Patch Set 8 : Insert origin url into requests #

Total comments: 12

Patch Set 9 : Remove origin checks, resolve urls, use *OwnPtr appropriately #

Patch Set 10 : resolver tweak #

Total comments: 19

Patch Set 11 : address comments #

Total comments: 4

Patch Set 12 : Update to ToT, address last few nits #

Patch Set 13 : Fix windows build #

Patch Set 14 : Fix windows build..again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -99 lines) Patch
M Source/core/loader/EmptyClients.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/EmptyClients.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -0 lines 0 comments Download
M Source/core/loader/FrameLoaderClient.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M Source/modules/serviceworkers/NavigatorServiceWorker.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +11 lines, -1 line 0 comments Download
M Source/modules/serviceworkers/NavigatorServiceWorker.cpp View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +65 lines, -19 lines 0 comments Download
M Source/web/FrameLoaderClientImpl.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M Source/web/FrameLoaderClientImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -3 lines 0 comments Download
A + public/platform/WebServiceWorkerProvider.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -5 lines 0 comments Download
A + public/platform/WebServiceWorkerProviderClient.h View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -13 lines 0 comments Download
D public/platform/WebServiceWorkerRegistry.h View 1 chunk +0 lines, -52 lines 0 comments Download
M public/web/WebFrameClient.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
alecflett
Michael/Kinuko - here's a revision to the Blink side of things, now that the ownership ...
7 years, 2 months ago (2013-10-04 23:57:00 UTC) #1
michaeln
https://codereview.chromium.org/26078002/diff/4001/Source/modules/serviceworkers/NavigatorServiceWorker.h File Source/modules/serviceworkers/NavigatorServiceWorker.h (right): https://codereview.chromium.org/26078002/diff/4001/Source/modules/serviceworkers/NavigatorServiceWorker.h#newcode48 Source/modules/serviceworkers/NavigatorServiceWorker.h:48: class NavigatorServiceWorker : public Supplement<Navigator>, public WebKit::WebServiceWorkerProviderClient { At ...
7 years, 2 months ago (2013-10-05 02:35:58 UTC) #2
alecflett
On 2013/10/05 02:35:58, michaeln wrote: > https://codereview.chromium.org/26078002/diff/4001/Source/modules/serviceworkers/NavigatorServiceWorker.h > File Source/modules/serviceworkers/NavigatorServiceWorker.h (right): > > https://codereview.chromium.org/26078002/diff/4001/Source/modules/serviceworkers/NavigatorServiceWorker.h#newcode48 > ...
7 years, 2 months ago (2013-10-07 18:00:30 UTC) #3
alecflett
ok, new version is up with FIXMEs and logging error handler. michaeln@ PTAL?
7 years, 2 months ago (2013-10-07 18:31:08 UTC) #4
michaeln
https://codereview.chromium.org/26078002/diff/9001/Source/modules/serviceworkers/NavigatorServiceWorker.cpp File Source/modules/serviceworkers/NavigatorServiceWorker.cpp (right): https://codereview.chromium.org/26078002/diff/9001/Source/modules/serviceworkers/NavigatorServiceWorker.cpp#newcode72 Source/modules/serviceworkers/NavigatorServiceWorker.cpp:72: m_provider = adoptPtr(client->createServiceWorkerProvider(this)); I'm glad my comments made sense ...
7 years, 2 months ago (2013-10-07 20:09:53 UTC) #5
alecflett
ok, I made it a local anonymous-namespaced class - I think being able to catch ...
7 years, 2 months ago (2013-10-07 20:42:00 UTC) #6
michaeln
On 2013/10/07 20:42:00, alecflett wrote: > ok, I made it a local anonymous-namespaced class - ...
7 years, 2 months ago (2013-10-07 20:48:59 UTC) #7
michaeln
https://codereview.chromium.org/26078002/diff/46001/Source/modules/serviceworkers/NavigatorServiceWorker.cpp File Source/modules/serviceworkers/NavigatorServiceWorker.cpp (right): https://codereview.chromium.org/26078002/diff/46001/Source/modules/serviceworkers/NavigatorServiceWorker.cpp#newcode86 Source/modules/serviceworkers/NavigatorServiceWorker.cpp:86: m_provider = adoptPtr(client->createServiceWorkerProvider(new ServiceWorkerProviderClientLogger())); The ownership doesn't look right. ...
7 years, 2 months ago (2013-10-07 21:08:06 UTC) #8
michaeln
> We'll have to new/delete the stub 'client' object in this class. lgtm... passing null ...
7 years, 2 months ago (2013-10-07 21:35:43 UTC) #9
jamesr
Who provides the Client in this interface? The usual pattern when having a WebFoo and ...
7 years, 2 months ago (2013-10-07 21:41:01 UTC) #10
jamesr
7 years, 2 months ago (2013-10-07 21:41:26 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alecflett@chromium.org/26078002/51001
7 years, 2 months ago (2013-10-07 21:42:17 UTC) #12
alecflett
On 2013/10/07 21:41:01, jamesr wrote: > Who provides the Client in this interface? The usual ...
7 years, 2 months ago (2013-10-07 21:54:42 UTC) #13
alecflett
7 years, 2 months ago (2013-10-07 21:55:09 UTC) #14
alecflett
abarth@ - after doing some work on the chrome side, we needed to change the ...
7 years, 2 months ago (2013-10-07 21:56:44 UTC) #15
kinuko
On 2013/10/07 21:54:42, alecflett wrote: > On 2013/10/07 21:41:01, jamesr wrote: > > Who provides ...
7 years, 2 months ago (2013-10-08 00:51:58 UTC) #16
michaeln
> Does it make sense to rename the Client interface 'Observer' or something to > ...
7 years, 2 months ago (2013-10-08 01:33:28 UTC) #17
kinuko
On 2013/10/08 01:33:28, michaeln wrote: > > Does it make sense to rename the Client ...
7 years, 2 months ago (2013-10-08 01:56:47 UTC) #18
alecflett
On 2013/10/08 01:56:47, kinuko wrote: > On 2013/10/08 01:33:28, michaeln wrote: > > > Does ...
7 years, 2 months ago (2013-10-08 21:48:37 UTC) #19
alecflett
abarth@ - sorry we just need your input / lgtm here.
7 years, 2 months ago (2013-10-08 21:49:06 UTC) #20
abarth-chromium
On 2013/10/08 21:48:37, alecflett wrote: > There's enough of a a precedent for this in ...
7 years, 2 months ago (2013-10-10 03:35:37 UTC) #21
abarth-chromium
https://codereview.chromium.org/26078002/diff/62001/Source/modules/serviceworkers/NavigatorServiceWorker.cpp File Source/modules/serviceworkers/NavigatorServiceWorker.cpp (right): https://codereview.chromium.org/26078002/diff/62001/Source/modules/serviceworkers/NavigatorServiceWorker.cpp#newcode71 Source/modules/serviceworkers/NavigatorServiceWorker.cpp:71: FrameLoaderClient* client = m_navigator->frame()->loader()->client(); m_navigator->frame() can be null. What ...
7 years, 2 months ago (2013-10-10 03:44:01 UTC) #22
alecflett
Cleaned up url resolution, simplified ownership model. https://codereview.chromium.org/26078002/diff/62001/Source/modules/serviceworkers/NavigatorServiceWorker.cpp File Source/modules/serviceworkers/NavigatorServiceWorker.cpp (right): https://codereview.chromium.org/26078002/diff/62001/Source/modules/serviceworkers/NavigatorServiceWorker.cpp#newcode71 Source/modules/serviceworkers/NavigatorServiceWorker.cpp:71: FrameLoaderClient* client ...
7 years, 2 months ago (2013-10-10 23:03:35 UTC) #23
abarth-chromium
https://codereview.chromium.org/26078002/diff/76001/Source/core/loader/EmptyClients.cpp File Source/core/loader/EmptyClients.cpp (right): https://codereview.chromium.org/26078002/diff/76001/Source/core/loader/EmptyClients.cpp#newcode144 Source/core/loader/EmptyClients.cpp:144: PassOwnPtr<WebKit::WebServiceWorkerProvider> EmptyFrameLoaderClient::createServiceWorkerProvider(PassOwnPtr<WebKit::WebServiceWorkerProviderClient>) We probably avoided a leak in this ...
7 years, 2 months ago (2013-10-11 18:08:13 UTC) #24
alecflett
Thanks for the feedback. I've addressed everything except the pattern / WebURL stuff. LMK what ...
7 years, 2 months ago (2013-10-11 18:52:22 UTC) #25
abarth-chromium
On 2013/10/11 18:52:22, alecflett wrote: > Would it be alright if I use WebURL for ...
7 years, 2 months ago (2013-10-11 18:59:18 UTC) #26
abarth-chromium
LGTM! Thanks for iterating on this CL. https://codereview.chromium.org/26078002/diff/88001/Source/modules/serviceworkers/NavigatorServiceWorker.cpp File Source/modules/serviceworkers/NavigatorServiceWorker.cpp (right): https://codereview.chromium.org/26078002/diff/88001/Source/modules/serviceworkers/NavigatorServiceWorker.cpp#newcode56 Source/modules/serviceworkers/NavigatorServiceWorker.cpp:56: : DOMWindowProperty(navigator->frame()) ...
7 years, 2 months ago (2013-10-11 19:02:40 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alecflett@chromium.org/26078002/93001
7 years, 2 months ago (2013-10-11 19:11:32 UTC) #28
commit-bot: I haz the power
Failed to trigger a try job on win_blink_rel HTTP Error 400: Bad Request
7 years, 2 months ago (2013-10-11 21:13:21 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alecflett@chromium.org/26078002/103001
7 years, 2 months ago (2013-10-11 21:13:28 UTC) #30
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-12 00:25:11 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alecflett@chromium.org/26078002/113001
7 years, 2 months ago (2013-10-13 17:26:51 UTC) #32
commit-bot: I haz the power
7 years, 2 months ago (2013-10-13 18:49:23 UTC) #33
Message was sent while issue was closed.
Change committed as 159543

Powered by Google App Engine
This is Rietveld 408576698