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

Issue 1262603004: Move ServiceWorker public headers to public/{web,platform}/modules/serviceworker (3/3) (Closed)

Created:
5 years, 4 months ago by kinuko
Modified:
5 years, 2 months ago
Reviewers:
tkent, falken
CC:
blink-reviews, dglazkov+blink
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Move ServiceWorker public headers to public/{web,platform}/modules/serviceworker (3/3) Three-sided patch: [1] (blink) https://codereview.chromium.org/1262943002/ [2] (chromium) https://codereview.chromium.org/1254023006/ [3] (blink) THIS PATCH BUG=453032

Patch Set 1 #

Patch Set 2 : rebased #

Patch Set 3 : rebase #

Total comments: 2

Patch Set 4 : rebase #

Patch Set 5 : relative path fix #

Patch Set 6 : build fix attempt #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -385 lines) Patch
M Source/core/loader/EmptyClients.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/cachestorage/Cache.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/cachestorage/Cache.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/cachestorage/CacheStorage.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/cachestorage/CacheStorage.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/cachestorage/CacheStorageError.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/cachestorage/CacheStorageError.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/cachestorage/CacheTest.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/cachestorage/InspectorCacheStorageAgent.cpp View 1 2 3 4 5 1 chunk +5 lines, -5 lines 0 comments Download
M Source/modules/fetch/FetchRequestData.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/fetch/FetchRequestData.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/fetch/FetchResponseData.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/fetch/FetchResponseData.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/fetch/FetchResponseDataTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/fetch/Request.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/fetch/RequestTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/fetch/Response.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/fetch/ResponseTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/exported/WebServiceWorkerProviderClient.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/exported/WebServiceWorkerRequest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/exported/WebServiceWorkerResponse.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/web/FrameLoaderClientImpl.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M Source/web/ServiceWorkerGlobalScopeClientImpl.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/web/ServiceWorkerGlobalScopeClientImpl.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/web/ServiceWorkerGlobalScopeProxy.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M Source/web/WebEmbeddedWorkerImpl.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M Source/web/WebEmbeddedWorkerImplTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebSharedWorkerImpl.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M public/platform/DEPS View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
D public/platform/WebServiceWorker.h View 1 chunk +0 lines, -31 lines 0 comments Download
D public/platform/WebServiceWorkerCache.h View 1 chunk +0 lines, -5 lines 0 comments Download
D public/platform/WebServiceWorkerCacheError.h View 1 chunk +0 lines, -5 lines 0 comments Download
D public/platform/WebServiceWorkerCacheStorage.h View 1 chunk +0 lines, -5 lines 0 comments Download
D public/platform/WebServiceWorkerClientQueryOptions.h View 1 1 chunk +0 lines, -5 lines 0 comments Download
D public/platform/WebServiceWorkerClientType.h View 1 chunk +0 lines, -5 lines 0 comments Download
D public/platform/WebServiceWorkerClientsClaimCallbacks.h View 1 chunk +0 lines, -5 lines 0 comments Download
D public/platform/WebServiceWorkerClientsInfo.h View 1 chunk +0 lines, -5 lines 0 comments Download
D public/platform/WebServiceWorkerError.h View 1 chunk +0 lines, -31 lines 0 comments Download
D public/platform/WebServiceWorkerEventResult.h View 1 chunk +0 lines, -5 lines 0 comments Download
D public/platform/WebServiceWorkerProvider.h View 1 chunk +0 lines, -31 lines 0 comments Download
D public/platform/WebServiceWorkerProviderClient.h View 1 chunk +0 lines, -31 lines 0 comments Download
D public/platform/WebServiceWorkerProxy.h View 1 chunk +0 lines, -5 lines 0 comments Download
D public/platform/WebServiceWorkerRegistration.h View 1 chunk +0 lines, -5 lines 0 comments Download
D public/platform/WebServiceWorkerRegistrationProxy.h View 1 chunk +0 lines, -5 lines 0 comments Download
D public/platform/WebServiceWorkerRequest.h View 1 chunk +0 lines, -5 lines 0 comments Download
D public/platform/WebServiceWorkerResponse.h View 1 chunk +0 lines, -5 lines 0 comments Download
D public/platform/WebServiceWorkerResponseError.h View 1 chunk +0 lines, -5 lines 0 comments Download
D public/platform/WebServiceWorkerResponseType.h View 1 2 3 1 chunk +0 lines, -27 lines 0 comments Download
D public/platform/WebServiceWorkerSkipWaitingCallbacks.h View 1 chunk +0 lines, -5 lines 0 comments Download
D public/platform/WebServiceWorkerState.h View 1 chunk +0 lines, -5 lines 0 comments Download
M public/platform/WebURLResponse.h View 1 2 6 1 chunk +3 lines, -3 lines 0 comments Download
M public/platform/modules/serviceworker/WebServiceWorkerCache.h View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M public/platform/modules/serviceworker/WebServiceWorkerCacheStorage.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M public/platform/modules/serviceworker/WebServiceWorkerClientQueryOptions.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M public/platform/modules/serviceworker/WebServiceWorkerProvider.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M public/platform/modules/serviceworker/WebServiceWorkerRegistration.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M public/platform/modules/serviceworker/WebServiceWorkerResponse.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
D public/web/WebServiceWorkerContextClient.h View 1 chunk +0 lines, -31 lines 0 comments Download
D public/web/WebServiceWorkerContextProxy.h View 1 chunk +0 lines, -31 lines 0 comments Download
D public/web/WebServiceWorkerNetworkProvider.h View 1 chunk +0 lines, -31 lines 0 comments Download
M public/web/modules/serviceworker/WebServiceWorkerContextClient.h View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
kinuko
Mechanical header change only. PTL
5 years, 4 months ago (2015-08-14 10:15:59 UTC) #2
tkent
lgtm
5 years, 4 months ago (2015-08-17 00:37:20 UTC) #3
falken
lgtm https://codereview.chromium.org/1262603004/diff/40001/Source/modules/cachestorage/CacheTest.cpp File Source/modules/cachestorage/CacheTest.cpp (right): https://codereview.chromium.org/1262603004/diff/40001/Source/modules/cachestorage/CacheTest.cpp#newcode23 Source/modules/cachestorage/CacheTest.cpp:23: #include "public/platform/modules/serviceworker/WebServiceWorkerCache.h" maybe modules before Web* (same for ...
5 years, 4 months ago (2015-08-17 08:40:49 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1262603004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1262603004/60001
5 years, 4 months ago (2015-08-19 09:22:06 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/123069)
5 years, 4 months ago (2015-08-19 09:57:39 UTC) #9
kinuko
I've been having hard time making this build on all bots and I would like ...
5 years, 4 months ago (2015-08-19 14:47:22 UTC) #10
tkent
On 2015/08/19 14:47:22, kinuko wrote: > 1. Change "WebServiceWorkerResponseType.h" include in WebURLResponse.h to > "public/platform/modules/serviceworker/..." ...
5 years, 4 months ago (2015-08-20 00:25:01 UTC) #11
kinuko
On 2015/08/20 00:25:01, tkent wrote: > On 2015/08/19 14:47:22, kinuko wrote: > > 1. Change ...
5 years, 4 months ago (2015-08-20 01:34:15 UTC) #12
kinuko
5 years, 2 months ago (2015-10-01 13:46:12 UTC) #13
On 2015/08/20 01:34:15, kinuko wrote:
> On 2015/08/20 00:25:01, tkent wrote:
> > On 2015/08/19 14:47:22, kinuko wrote:
> > > 1. Change "WebServiceWorkerResponseType.h" include in WebURLResponse.h to
> > > "public/platform/modules/serviceworker/..." --> this sould work but breaks
> > > builds.  (PS4)
> > 
> > This is a right direction.  Broken build was due to missing dependency to
> Blink
> > in Chromium gyp/BUILD.gn.
> > 
> > > 2. Change "WebServiceWorkerResponseType.h" include in WebURLResponse.h to
a
> > > relative path, i.e. "modules/serviceworker/WebServiceWorkerResponseType.h"
> -->
> > > doesn't work because it's not forbidden by include_rules (as it's
ambigious
> > with
> > > Source/modules)
> > 
> > Yeah, we shouldn't use paths relative to the origin file.
> > 
> > > 3. Do 1. and also change "../platform/WebURLResponse.h" include in
> > > public/web/WebContextMenuData.h to "public/platform/WebURLResponse.h" -->
> > breaks
> > > build.  (PS5)
> > 
> > This is also right.  We should add Blink dependency to gyp/BUILD.gn in
> Chromium.
> > 
> > > 4. Change "WebServiceWorkerResponseType.h" include in WebURLResponse.h to
> > > "../platform/modules/serviceworker/WebServiceWorkerResponseType.h" -->
> doesn't
> > > work because it's not allowed by include_rules
> > 
> > We don't want to add relative path includes.
> > 
> > > I'm stuck, so I did following in PS6 and it seems to build, finally:
> > > 4'. Do 4 and also add '../platform' to include_rules.
> > 
> > I don't think we need to hurry to land this CL.  So, please do a right
thing. 
> > i.e. fix dependency rules in Chromium .gyp and BUILD.gn.
> 
> Sounds right. Ok I will try fixing the dependency rules first and come back to
> this CL later. Thanks!

The dependency change is landed, and I've re-uploaded this patch here:
https://codereview.chromium.org/1373693002/

Closing this now.

Powered by Google App Engine
This is Rietveld 408576698