| OLD | NEW | 
|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 
| 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 
| 7 | 7 | 
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" | 
| 9 #include "content/public/browser/browser_message_filter.h" | 9 #include "content/public/browser/browser_message_filter.h" | 
| 10 | 10 | 
| (...skipping 20 matching lines...) Expand all  Loading... | 
| 31   virtual ~ServiceWorkerDispatcherHost(); | 31   virtual ~ServiceWorkerDispatcherHost(); | 
| 32 | 32 | 
| 33  private: | 33  private: | 
| 34   friend class BrowserThread; | 34   friend class BrowserThread; | 
| 35   friend class base::DeleteHelper<ServiceWorkerDispatcherHost>; | 35   friend class base::DeleteHelper<ServiceWorkerDispatcherHost>; | 
| 36   friend class TestingServiceWorkerDispatcherHost; | 36   friend class TestingServiceWorkerDispatcherHost; | 
| 37 | 37 | 
| 38   // IPC Message handlers | 38   // IPC Message handlers | 
| 39   void OnRegisterServiceWorker(int32 thread_id, | 39   void OnRegisterServiceWorker(int32 thread_id, | 
| 40                                int32 request_id, | 40                                int32 request_id, | 
| 41                                const GURL& scope, | 41                                const GURL& pattern, | 
| 42                                const GURL& script_url); | 42                                const GURL& script_url); | 
| 43   void OnUnregisterServiceWorker(int32 thread_id, | 43   void OnUnregisterServiceWorker(int32 thread_id, | 
| 44                                  int32 request_id, | 44                                  int32 request_id, | 
| 45                                  const GURL& scope); | 45                                  const GURL& pattern); | 
| 46   void OnProviderCreated(int provider_id); | 46   void OnProviderCreated(int provider_id); | 
| 47   void OnProviderDestroyed(int provider_id); | 47   void OnProviderDestroyed(int provider_id); | 
| 48 | 48 | 
| 49   int render_process_id_; | 49   int render_process_id_; | 
| 50   base::WeakPtr<ServiceWorkerContextCore> context_; | 50   base::WeakPtr<ServiceWorkerContextCore> context_; | 
| 51 }; | 51 }; | 
| 52 | 52 | 
| 53 }  // namespace content | 53 }  // namespace content | 
| 54 | 54 | 
| 55 #endif  // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 55 #endif  // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 
| OLD | NEW | 
|---|