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

Issue 875573002: Service Worker: Expose Get/Store/ClearUserData to content layer. (Closed)

Created:
5 years, 11 months ago by johnme
Modified:
5 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, horo+watch_chromium.org, jam, jsbell+serviceworker_chromium.org, kinuko+serviceworker, nhiroki, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@publicrouter
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Service Worker: Expose Get/Store/ClearUserData to content layer. This will be used by chrome/browser/services/gcm/push_messaging_service_impl.cc to store data obtained in and used by the chrome layer, that is associated with Service Workers. If we didn't expose these generic methods, we'd have to make an extra round-trip to the content layer, and expose single-purpose methods somewhere whose only purpose would be to call these methods on behalf of PushMessagingServiceImpl. BUG=437277

Patch Set 1 #

Patch Set 2 : Fix typo #

Total comments: 2

Patch Set 3 : Callback on IO thread #

Total comments: 6

Patch Set 4 : Remove unnecessary PostTasks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -0 lines) Patch
M content/browser/service_worker/service_worker_context_wrapper.h View 1 chunk +11 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.cc View 1 2 3 2 chunks +46 lines, -0 lines 0 comments Download
M content/public/browser/service_worker_context.h View 1 2 3 2 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
johnme
5 years, 11 months ago (2015-01-23 21:55:50 UTC) #2
nhiroki
Looks good other than thread-hopping. https://codereview.chromium.org/875573002/diff/20001/content/browser/service_worker/service_worker_context_wrapper.cc File content/browser/service_worker/service_worker_context_wrapper.cc (right): https://codereview.chromium.org/875573002/diff/20001/content/browser/service_worker/service_worker_context_wrapper.cc#newcode230 content/browser/service_worker/service_worker_context_wrapper.cc:230: base::Bind(callback, data, success, not_found)); ...
5 years, 11 months ago (2015-01-26 03:25:27 UTC) #3
johnme
https://codereview.chromium.org/875573002/diff/20001/content/browser/service_worker/service_worker_context_wrapper.cc File content/browser/service_worker/service_worker_context_wrapper.cc (right): https://codereview.chromium.org/875573002/diff/20001/content/browser/service_worker/service_worker_context_wrapper.cc#newcode230 content/browser/service_worker/service_worker_context_wrapper.cc:230: base::Bind(callback, data, success, not_found)); On 2015/01/26 03:25:26, nhiroki (slow) ...
5 years, 11 months ago (2015-01-26 11:02:58 UTC) #4
nhiroki
https://codereview.chromium.org/875573002/diff/40001/content/browser/service_worker/service_worker_context_wrapper.cc File content/browser/service_worker/service_worker_context_wrapper.cc (right): https://codereview.chromium.org/875573002/diff/40001/content/browser/service_worker/service_worker_context_wrapper.cc#newcode230 content/browser/service_worker/service_worker_context_wrapper.cc:230: base::Bind(callback, data, success, not_found)); You might want to directly ...
5 years, 11 months ago (2015-01-26 11:52:30 UTC) #5
johnme
Thanks for the review :) https://codereview.chromium.org/875573002/diff/40001/content/browser/service_worker/service_worker_context_wrapper.cc File content/browser/service_worker/service_worker_context_wrapper.cc (right): https://codereview.chromium.org/875573002/diff/40001/content/browser/service_worker/service_worker_context_wrapper.cc#newcode230 content/browser/service_worker/service_worker_context_wrapper.cc:230: base::Bind(callback, data, success, not_found)); ...
5 years, 11 months ago (2015-01-26 11:58:54 UTC) #6
nhiroki
LGTM!
5 years, 11 months ago (2015-01-26 12:00:31 UTC) #7
johnme
jochen@chromium.org: Please review changes in content/public/browser/service_worker_context.h Thanks!
5 years, 11 months ago (2015-01-26 12:08:55 UTC) #9
jochen (gone - plz use gerrit)
i don't get from the referenced bug or the CL description what this is used ...
5 years, 11 months ago (2015-01-26 15:55:40 UTC) #10
johnme
On 2015/01/26 15:55:40, jochen (slow) wrote: > i don't get from the referenced bug or ...
5 years, 11 months ago (2015-01-27 16:13:58 UTC) #11
michaeln
The storage and retrieval of particular values related to push messaging could be a function ...
5 years, 10 months ago (2015-01-27 21:00:23 UTC) #12
jochen (gone - plz use gerrit)
On 2015/01/27 at 21:00:23, michaeln wrote: > The storage and retrieval of particular values related ...
5 years, 10 months ago (2015-01-29 14:44:12 UTC) #13
michaeln
I see that a concrete impl of the PushMessagingService interface is provided by the embedder ...
5 years, 10 months ago (2015-01-29 21:14:12 UTC) #14
johnme
5 years, 10 months ago (2015-02-04 16:42:56 UTC) #15
Message was sent while issue was closed.
Sounds reasonable. Abandoning this patch, and instead I've incorporated such
static methods into https://codereview.chromium.org/883743002

Powered by Google App Engine
This is Rietveld 408576698