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

Unified Diff: content/browser/service_worker/service_worker_context_core.h

Issue 225403014: ServiceWorker: propagate provider_id to the browser process in .register + int32/int cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/service_worker/service_worker_context_core.h
diff --git a/content/browser/service_worker/service_worker_context_core.h b/content/browser/service_worker/service_worker_context_core.h
index 967c2143881f6c74e42d68dbca7dbd7e643369ce..7bcca45dac3363bb6fe69a96cdef23a6024f4e13 100644
--- a/content/browser/service_worker/service_worker_context_core.h
+++ b/content/browser/service_worker/service_worker_context_core.h
@@ -74,14 +74,20 @@ class CONTENT_EXPORT ServiceWorkerContextCore
void RemoveAllProviderHostsForProcess(int process_id);
// The callback will be called on the IO thread.
+ // A child process of |source_process_id| may be used to run the created
+ // worker for initial installation.
+ // Non-null |provider_host| must be given if this is called from a document,
+ // whose process_id() must match with |source_process_id|.
void RegisterServiceWorker(const GURL& pattern,
const GURL& script_url,
int source_process_id,
+ ServiceWorkerProviderHost* provider_host,
const RegistrationCallback& callback);
// The callback will be called on the IO thread.
void UnregisterServiceWorker(const GURL& pattern,
int source_process_id,
+ ServiceWorkerProviderHost* provider_host,
const UnregistrationCallback& callback);
// This class maintains collections of live instances, this class

Powered by Google App Engine
This is Rietveld 408576698