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

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

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.cc
diff --git a/content/browser/service_worker/service_worker_handle.cc b/content/browser/service_worker/service_worker_handle.cc
index b52887a0cb7a16ff2c08abbf6991c98651b0dac7..69d6c48e93c610c18d19aa3101b26dfd50d6152b 100644
--- a/content/browser/service_worker/service_worker_handle.cc
+++ b/content/browser/service_worker/service_worker_handle.cc
@@ -43,25 +43,27 @@ scoped_ptr<ServiceWorkerHandle> ServiceWorkerHandle::Create(
base::WeakPtr<ServiceWorkerContextCore> context,
IPC::Sender* sender,
int thread_id,
+ int provider_id,
ServiceWorkerVersion* version) {
if (!context || !version)
return scoped_ptr<ServiceWorkerHandle>();
ServiceWorkerRegistration* registration =
context->GetLiveRegistration(version->registration_id());
- return make_scoped_ptr(
- new ServiceWorkerHandle(context, sender, thread_id,
- registration, version));
+ return make_scoped_ptr(new ServiceWorkerHandle(
+ context, sender, thread_id, provider_id, registration, version));
}
ServiceWorkerHandle::ServiceWorkerHandle(
base::WeakPtr<ServiceWorkerContextCore> context,
IPC::Sender* sender,
int thread_id,
+ int provider_id,
ServiceWorkerRegistration* registration,
ServiceWorkerVersion* version)
: context_(context),
sender_(sender),
thread_id_(thread_id),
+ provider_id_(provider_id),
handle_id_(context.get() ? context->GetNewServiceWorkerHandleId() : -1),
ref_count_(1),
registration_(registration),

Powered by Google App Engine
This is Rietveld 408576698