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

Issue 61023005: service worker scaffolding (Closed)

Created:
7 years, 1 month ago by michaeln
Modified:
7 years, 1 month ago
Reviewers:
kinuko, alecflett, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

ServiceWorker scaffolding. Refactor the 'context' class to have a thread-safe refcounted wrapper for use by higher level chromium code, and a single-threaded nonrefcounted core for use in the service worker lib. Added explicit Init() and Shutdown() methods on the wrapper class which are used by StoragePartitionImpl to get things started and cleaned up. TBR=jam BUG=285976 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234756

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 9

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 10

Patch Set 10 : #

Patch Set 11 : #

Total comments: 2

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+277 lines, -123 lines) Patch
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -3 lines 0 comments Download
D content/browser/service_worker/service_worker_context.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -32 lines 0 comments Download
D content/browser/service_worker/service_worker_context.cc View 1 2 3 1 chunk +0 lines, -32 lines 0 comments Download
A content/browser/service_worker/service_worker_context_core.h View 1 2 3 4 5 6 7 8 9 1 chunk +45 lines, -0 lines 0 comments Download
A + content/browser/service_worker/service_worker_context_core.cc View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -7 lines 0 comments Download
A content/browser/service_worker/service_worker_context_wrapper.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +53 lines, -0 lines 0 comments Download
A content/browser/service_worker/service_worker_context_wrapper.cc View 1 2 3 4 5 6 7 8 9 1 chunk +52 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.h View 1 2 3 4 5 6 7 8 9 3 chunks +10 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 1 2 3 4 5 6 7 8 9 3 chunks +40 lines, -23 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host_unittest.cc View 1 2 3 4 5 6 7 5 chunks +34 lines, -13 lines 0 comments Download
M content/browser/storage_partition_impl.h View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 1 2 3 4 4 chunks +8 lines, -4 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
michaeln
changes like we've talked about... i'm waiting for alec's change to make its way thru ...
7 years, 1 month ago (2013-11-07 00:28:37 UTC) #1
kinuko
k, I think this looks good. Some nits (nits only) https://codereview.chromium.org/61023005/diff/90001/content/browser/service_worker/service_worker_context_core.cc File content/browser/service_worker/service_worker_context_core.cc (right): https://codereview.chromium.org/61023005/diff/90001/content/browser/service_worker/service_worker_context_core.cc#newcode22 ...
7 years, 1 month ago (2013-11-07 03:02:59 UTC) #2
alecflett
I'm not sure why the Wrapper class is working so hard to make the ContextCore ...
7 years, 1 month ago (2013-11-07 22:46:55 UTC) #3
michaeln
On 2013/11/07 22:46:55, alecflett wrote: > I'm not sure why the Wrapper class is working ...
7 years, 1 month ago (2013-11-07 23:24:53 UTC) #4
alecflett
On 2013/11/07 23:24:53, michaeln wrote: > We will be testing if (path_.empty()), that determines whether ...
7 years, 1 month ago (2013-11-07 23:51:40 UTC) #5
kinuko
https://codereview.chromium.org/61023005/diff/90001/content/browser/service_worker/service_worker_context_core.cc File content/browser/service_worker/service_worker_context_core.cc (right): https://codereview.chromium.org/61023005/diff/90001/content/browser/service_worker/service_worker_context_core.cc#newcode22 content/browser/service_worker/service_worker_context_core.cc:22: path_ = user_data_directory.Append(kServiceWorkerDirectory); On 2013/11/07 23:24:53, michaeln wrote: > ...
7 years, 1 month ago (2013-11-08 02:08:01 UTC) #6
michaeln
> I'm not sure why the Wrapper class is working so hard to make the ...
7 years, 1 month ago (2013-11-09 00:23:33 UTC) #7
michaeln
ptal https://codereview.chromium.org/61023005/diff/90001/content/browser/service_worker/service_worker_context_core.h File content/browser/service_worker/service_worker_context_core.h (right): https://codereview.chromium.org/61023005/diff/90001/content/browser/service_worker/service_worker_context_core.h#newcode27 content/browser/service_worker/service_worker_context_core.h:27: : public base::SupportsWeakPtr<ServiceWorkerContextCore> { > We can also ...
7 years, 1 month ago (2013-11-09 00:24:00 UTC) #8
kinuko
lgtm https://codereview.chromium.org/61023005/diff/510001/content/browser/service_worker/service_worker_context_core.cc File content/browser/service_worker/service_worker_context_core.cc (right): https://codereview.chromium.org/61023005/diff/510001/content/browser/service_worker/service_worker_context_core.cc#newcode21 content/browser/service_worker/service_worker_context_core.cc:21: nit: extra empty line https://codereview.chromium.org/61023005/diff/510001/content/browser/service_worker/service_worker_context_core.h File content/browser/service_worker/service_worker_context_core.h (right): ...
7 years, 1 month ago (2013-11-09 09:39:56 UTC) #9
michaeln
https://codereview.chromium.org/61023005/diff/510001/content/browser/service_worker/service_worker_context_core.cc File content/browser/service_worker/service_worker_context_core.cc (right): https://codereview.chromium.org/61023005/diff/510001/content/browser/service_worker/service_worker_context_core.cc#newcode21 content/browser/service_worker/service_worker_context_core.cc:21: On 2013/11/09 09:39:56, kinuko (OOO until Nov 13) wrote: ...
7 years, 1 month ago (2013-11-11 16:40:24 UTC) #10
alecflett
lgtm as well, with one minor query https://codereview.chromium.org/61023005/diff/360001/content/browser/service_worker/service_worker_context_wrapper.cc File content/browser/service_worker/service_worker_context_wrapper.cc (right): https://codereview.chromium.org/61023005/diff/360001/content/browser/service_worker/service_worker_context_wrapper.cc#newcode23 content/browser/service_worker/service_worker_context_wrapper.cc:23: if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) ...
7 years, 1 month ago (2013-11-11 18:59:02 UTC) #11
michaeln
https://codereview.chromium.org/61023005/diff/360001/content/browser/service_worker/service_worker_context_wrapper.cc File content/browser/service_worker/service_worker_context_wrapper.cc (right): https://codereview.chromium.org/61023005/diff/360001/content/browser/service_worker/service_worker_context_wrapper.cc#newcode23 content/browser/service_worker/service_worker_context_wrapper.cc:23: if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) { On 2013/11/11 18:59:03, alecflett wrote: > ...
7 years, 1 month ago (2013-11-11 20:56:37 UTC) #12
michaeln
@jam, can you do a content owner review?
7 years, 1 month ago (2013-11-11 21:11:07 UTC) #13
jam
https://codereview.chromium.org/61023005/diff/510002/content/public/browser/service_worker_context.h File content/public/browser/service_worker_context.h (right): https://codereview.chromium.org/61023005/diff/510002/content/public/browser/service_worker_context.h#newcode14 content/public/browser/service_worker_context.h:14: // which will come later. can you explain what ...
7 years, 1 month ago (2013-11-11 23:28:15 UTC) #14
michaeln
https://codereview.chromium.org/61023005/diff/510002/content/public/browser/service_worker_context.h File content/public/browser/service_worker_context.h (right): https://codereview.chromium.org/61023005/diff/510002/content/public/browser/service_worker_context.h#newcode14 content/public/browser/service_worker_context.h:14: // which will come later. On 2013/11/11 23:28:16, jam ...
7 years, 1 month ago (2013-11-12 00:04:03 UTC) #15
michaeln
On 2013/11/12 00:04:03, michaeln wrote: > https://codereview.chromium.org/61023005/diff/510002/content/public/browser/service_worker_context.h > File content/public/browser/service_worker_context.h (right): > > https://codereview.chromium.org/61023005/diff/510002/content/public/browser/service_worker_context.h#newcode14 > ...
7 years, 1 month ago (2013-11-12 00:06:09 UTC) #16
jam
On 2013/11/12 00:06:09, michaeln wrote: > On 2013/11/12 00:04:03, michaeln wrote: > > > https://codereview.chromium.org/61023005/diff/510002/content/public/browser/service_worker_context.h ...
7 years, 1 month ago (2013-11-12 01:47:34 UTC) #17
michaeln
> yes, please add it when it's used from chrome. or you can add it, ...
7 years, 1 month ago (2013-11-12 19:17:47 UTC) #18
michaeln
@jam, want to take another look?
7 years, 1 month ago (2013-11-12 22:19:37 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaeln@chromium.org/61023005/910001
7 years, 1 month ago (2013-11-12 23:36:10 UTC) #20
michaeln
> CQ is trying da patch. Follow status at > https://chromium-status.appspot.com/cq/michaeln%40chromium.org/61023005/910001 yup, i regret clicking ...
7 years, 1 month ago (2013-11-13 02:07:00 UTC) #21
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-13 02:07:02 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaeln@chromium.org/61023005/910001
7 years, 1 month ago (2013-11-13 04:26:01 UTC) #23
commit-bot: I haz the power
7 years, 1 month ago (2013-11-13 05:05:19 UTC) #24
Message was sent while issue was closed.
Change committed as 234756

Powered by Google App Engine
This is Rietveld 408576698