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

Unified Diff: content/browser/service_worker/service_worker_dispatcher_host.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_dispatcher_host.h
diff --git a/content/browser/service_worker/service_worker_dispatcher_host.h b/content/browser/service_worker/service_worker_dispatcher_host.h
index aa48a5cd521edc8d66c9ef75181b03ec4aab28fe..faf7e6a5383fc19a8d5854abf8f2332039dbc23e 100644
--- a/content/browser/service_worker/service_worker_dispatcher_host.h
+++ b/content/browser/service_worker/service_worker_dispatcher_host.h
@@ -47,12 +47,14 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost : public BrowserMessageFilter {
friend class TestingServiceWorkerDispatcherHost;
// IPC Message handlers
- void OnRegisterServiceWorker(int32 thread_id,
- int32 request_id,
+ void OnRegisterServiceWorker(int thread_id,
+ int request_id,
+ int provider_id,
const GURL& pattern,
const GURL& script_url);
- void OnUnregisterServiceWorker(int32 thread_id,
- int32 request_id,
+ void OnUnregisterServiceWorker(int thread_id,
+ int request_id,
+ int provider_id,
const GURL& pattern);
void OnProviderCreated(int provider_id);
void OnProviderDestroyed(int provider_id);
@@ -76,18 +78,18 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost : public BrowserMessageFilter {
void OnServiceWorkerObjectDestroyed(int handle_id);
// Callbacks from ServiceWorkerContextCore
- void RegistrationComplete(int32 thread_id,
- int32 request_id,
+ void RegistrationComplete(int thread_id,
+ int request_id,
ServiceWorkerStatusCode status,
int64 registration_id,
int64 version_id);
- void UnregistrationComplete(int32 thread_id,
- int32 request_id,
+ void UnregistrationComplete(int thread_id,
+ int request_id,
ServiceWorkerStatusCode status);
- void SendRegistrationError(int32 thread_id,
- int32 request_id,
+ void SendRegistrationError(int thread_id,
+ int request_id,
ServiceWorkerStatusCode status);
int render_process_id_;

Powered by Google App Engine
This is Rietveld 408576698