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

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

Issue 825383004: ServiceWorker: Send state change events via SWProviderHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 11 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 5d202fac22051510ab0a22a65af24ca5b3195d90..1de8155ec6f16cf19a7f0e0f36ae3b520314b8fe 100644
--- a/content/browser/service_worker/service_worker_handle.h
+++ b/content/browser/service_worker/service_worker_handle.h
@@ -33,15 +33,13 @@ class CONTENT_EXPORT ServiceWorkerHandle
// Creates a handle for a live version. The version's corresponding
// registration must be also alive.
// This may return NULL if |context|.get() or |version| is NULL.
- // |sender| will be used to send messages to the corresponding
- // WebServiceWorkerImpl in the child process.
static scoped_ptr<ServiceWorkerHandle> Create(
base::WeakPtr<ServiceWorkerContextCore> context,
- IPC::Sender* sender,
+ base::WeakPtr<ServiceWorkerProviderHost> provider_host,
ServiceWorkerVersion* version);
ServiceWorkerHandle(base::WeakPtr<ServiceWorkerContextCore> context,
- IPC::Sender* sender,
+ base::WeakPtr<ServiceWorkerProviderHost> provider_host,
ServiceWorkerRegistration* registration,
ServiceWorkerVersion* version);
~ServiceWorkerHandle() override;
@@ -61,7 +59,7 @@ class CONTENT_EXPORT ServiceWorkerHandle
private:
base::WeakPtr<ServiceWorkerContextCore> context_;
- IPC::Sender* sender_; // Not owned, it should always outlive this.
+ base::WeakPtr<ServiceWorkerProviderHost> provider_host_;
const int handle_id_;
int ref_count_; // Created with 1.
scoped_refptr<ServiceWorkerRegistration> registration_;

Powered by Google App Engine
This is Rietveld 408576698