| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 protected: | 28 protected: |
| 29 virtual ~ServiceWorkerDispatcherHost(); | 29 virtual ~ServiceWorkerDispatcherHost(); |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 friend class TestingServiceWorkerDispatcherHost; | 32 friend class TestingServiceWorkerDispatcherHost; |
| 33 | 33 |
| 34 // IPC Message handlers | 34 // IPC Message handlers |
| 35 void OnRegisterServiceWorker(int32 thread_id, | 35 void OnRegisterServiceWorker(int32 thread_id, |
| 36 int32 request_id, | 36 int32 request_id, |
| 37 const GURL& scope, | 37 const GURL& pattern, |
| 38 const GURL& script_url); | 38 const GURL& script_url); |
| 39 void OnUnregisterServiceWorker(int32 thread_id, | 39 void OnUnregisterServiceWorker(int32 thread_id, |
| 40 int32 request_id, | 40 int32 request_id, |
| 41 const GURL& scope); | 41 const GURL& pattern); |
| 42 | 42 |
| 43 base::WeakPtr<ServiceWorkerContextCore> context_; | 43 base::WeakPtr<ServiceWorkerContextCore> context_; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace content | 46 } // namespace content |
| 47 | 47 |
| 48 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 48 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |
| OLD | NEW |