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

Unified Diff: content/child/service_worker/service_worker_dispatcher.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/child/service_worker/service_worker_dispatcher.h
diff --git a/content/child/service_worker/service_worker_dispatcher.h b/content/child/service_worker/service_worker_dispatcher.h
index c1985d23cb19ca17e69ae9717ddbe62dc616fc34..4bcd749af6251a9c085195de9218c17741817def 100644
--- a/content/child/service_worker/service_worker_dispatcher.h
+++ b/content/child/service_worker/service_worker_dispatcher.h
@@ -42,11 +42,13 @@ class ServiceWorkerDispatcher : public WorkerTaskRunner::Observer {
// Corresponds to navigator.serviceWorker.register()
void RegisterServiceWorker(
+ int provider_id,
const GURL& pattern,
const GURL& script_url,
blink::WebServiceWorkerProvider::WebServiceWorkerCallbacks* callbacks);
// Corresponds to navigator.serviceWorker.unregister()
void UnregisterServiceWorker(
+ int provider_id,
const GURL& pattern,
blink::WebServiceWorkerProvider::WebServiceWorkerCallbacks* callbacks);
@@ -68,14 +70,14 @@ class ServiceWorkerDispatcher : public WorkerTaskRunner::Observer {
virtual void OnWorkerRunLoopStopped() OVERRIDE;
// The asynchronous success response to RegisterServiceWorker.
- void OnRegistered(int32 thread_id,
- int32 request_id,
+ void OnRegistered(int thread_id,
+ int request_id,
int handle_id);
// The asynchronous success response to UregisterServiceWorker.
- void OnUnregistered(int32 thread_id,
- int32 request_id);
- void OnRegistrationError(int32 thread_id,
- int32 request_id,
+ void OnUnregistered(int thread_id,
+ int request_id);
+ void OnRegistrationError(int thread_id,
+ int request_id,
blink::WebServiceWorkerError::ErrorType error_type,
const base::string16& message);

Powered by Google App Engine
This is Rietveld 408576698