| 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_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ | 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ |
| 6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ | 6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 void OnMessageReceived(const IPC::Message& msg); | 62 void OnMessageReceived(const IPC::Message& msg); |
| 63 bool Send(IPC::Message* msg); | 63 bool Send(IPC::Message* msg); |
| 64 | 64 |
| 65 // Corresponds to navigator.serviceWorker.register() | 65 // Corresponds to navigator.serviceWorker.register() |
| 66 void RegisterServiceWorker( | 66 void RegisterServiceWorker( |
| 67 int provider_id, | 67 int provider_id, |
| 68 const GURL& pattern, | 68 const GURL& pattern, |
| 69 const GURL& script_url, | 69 const GURL& script_url, |
| 70 WebServiceWorkerRegistrationCallbacks* callbacks); | 70 WebServiceWorkerRegistrationCallbacks* callbacks); |
| 71 // Corresponds to navigator.serviceWorker.unregister() | 71 // Corresponds to ServiceWorkerRegistration.update() |
| 72 void UpdateServiceWorker( |
| 73 int provider_id, |
| 74 const GURL& pattern); |
| 75 // Corresponds to ServiceWorkerRegistration.unregister() |
| 72 void UnregisterServiceWorker( | 76 void UnregisterServiceWorker( |
| 73 int provider_id, | 77 int provider_id, |
| 74 const GURL& pattern, | 78 const GURL& pattern, |
| 75 WebServiceWorkerUnregistrationCallbacks* callbacks); | 79 WebServiceWorkerUnregistrationCallbacks* callbacks); |
| 76 // Corresponds to navigator.serviceWorker.getRegistration() | 80 // Corresponds to navigator.serviceWorker.getRegistration() |
| 77 void GetRegistration( | 81 void GetRegistration( |
| 78 int provider_id, | 82 int provider_id, |
| 79 const GURL& document_url, | 83 const GURL& document_url, |
| 80 WebServiceWorkerRegistrationCallbacks* callbacks); | 84 WebServiceWorkerRegistrationCallbacks* callbacks); |
| 81 | 85 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 WorkerToProviderMap worker_to_provider_; | 256 WorkerToProviderMap worker_to_provider_; |
| 253 | 257 |
| 254 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 258 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 255 | 259 |
| 256 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); | 260 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); |
| 257 }; | 261 }; |
| 258 | 262 |
| 259 } // namespace content | 263 } // namespace content |
| 260 | 264 |
| 261 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ | 265 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ |
| OLD | NEW |