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 0daa788f0e1e2753e3e39fe9bc8e4ba86fb64964..007e1b31d6c46d2f781708a54be9f5e9d20857db 100644 |
--- a/content/browser/service_worker/service_worker_dispatcher_host.h |
+++ b/content/browser/service_worker/service_worker_dispatcher_host.h |
@@ -47,6 +47,12 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost : public BrowserMessageFilter { |
// be destroyed. |
virtual bool Send(IPC::Message* message) OVERRIDE; |
+ // Returns the existing registration handle whose reference count is |
+ // incremented or newly created one if it doesn't exist. |
+ ServiceWorkerRegistrationHandle* GetOrCreateRegistrationHandle( |
+ int provider_id, |
+ ServiceWorkerRegistration* registration); |
+ |
void RegisterServiceWorkerHandle(scoped_ptr<ServiceWorkerHandle> handle); |
void RegisterServiceWorkerRegistrationHandle( |
scoped_ptr<ServiceWorkerRegistrationHandle> handle); |