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

Unified Diff: content/public/browser/service_worker_context.h

Issue 238043002: Teach EmbeddedWorkerInstance to create a process when it needs one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Handle 2 places where context_ could be NULL. 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/public/browser/service_worker_context.h
diff --git a/content/public/browser/service_worker_context.h b/content/public/browser/service_worker_context.h
index 91be6eb3972c7edba4ca85751aa0b2a2fd758452..57aa955b33c75967201e005abb0d1c9f9dfc9164 100644
--- a/content/public/browser/service_worker_context.h
+++ b/content/public/browser/service_worker_context.h
@@ -22,10 +22,9 @@ class ServiceWorkerContext {
typedef base::Callback<void(bool success)> ResultCallback;
// Equivalent to calling navigator.serviceWorker.register(script_url, {scope:
- // pattern}) from a renderer in |source_process_id|, except that |pattern| is
- // an absolute URL instead of relative to some current origin. |callback| is
- // passed true when the JS promise is fulfilled or false when the JS
- // promise is rejected.
+ // pattern}) from a renderer, except that |pattern| is an absolute URL instead
+ // of relative to some current origin. |callback| is passed true when the JS
+ // promise is fulfilled or false when the JS promise is rejected.
//
// The registration can fail if:
// * |script_url| is on a different origin from |pattern|
@@ -35,7 +34,6 @@ class ServiceWorkerContext {
// * Something unexpected goes wrong, like a renderer crash or a full disk.
virtual void RegisterServiceWorker(const Scope& pattern,
const GURL& script_url,
- int source_process_id,
const ResultCallback& callback) = 0;
// Equivalent to calling navigator.serviceWorker.unregister(pattern) from a

Powered by Google App Engine
This is Rietveld 408576698