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

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

Issue 440403002: Don't share ServiceWorkerHandle between provider hosts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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_handle.h
diff --git a/content/browser/service_worker/service_worker_handle.h b/content/browser/service_worker/service_worker_handle.h
index 0e57d9174171d20132a6510665cd74b7f011838c..d6671bc8623ea783293a9a0b97ea1de823a2c4fc 100644
--- a/content/browser/service_worker/service_worker_handle.h
+++ b/content/browser/service_worker/service_worker_handle.h
@@ -40,11 +40,13 @@ class CONTENT_EXPORT ServiceWorkerHandle
base::WeakPtr<ServiceWorkerContextCore> context,
IPC::Sender* sender,
int thread_id,
+ int provider_id,
ServiceWorkerVersion* version);
ServiceWorkerHandle(base::WeakPtr<ServiceWorkerContextCore> context,
IPC::Sender* sender,
int thread_id,
+ int provider_id,
ServiceWorkerRegistration* registration,
ServiceWorkerVersion* version);
virtual ~ServiceWorkerHandle();
@@ -68,6 +70,7 @@ class CONTENT_EXPORT ServiceWorkerHandle
ServiceWorkerObjectInfo GetObjectInfo();
int thread_id() const { return thread_id_; }
+ int provider_id() const { return provider_id_; }
int handle_id() const { return handle_id_; }
ServiceWorkerRegistration* registration() { return registration_.get(); }
ServiceWorkerVersion* version() { return version_.get(); }
@@ -80,6 +83,7 @@ class CONTENT_EXPORT ServiceWorkerHandle
base::WeakPtr<ServiceWorkerContextCore> context_;
IPC::Sender* sender_; // Not owned, it should always outlive this.
const int thread_id_;
+ const int provider_id_;
const int handle_id_;
int ref_count_; // Created with 1.
scoped_refptr<ServiceWorkerRegistration> registration_;

Powered by Google App Engine
This is Rietveld 408576698