| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 base::SingleThreadTaskRunner* main_thread_task_runner); | 80 base::SingleThreadTaskRunner* main_thread_task_runner); |
| 81 ~ServiceWorkerDispatcher() override; | 81 ~ServiceWorkerDispatcher() override; |
| 82 | 82 |
| 83 void OnMessageReceived(const IPC::Message& msg); | 83 void OnMessageReceived(const IPC::Message& msg); |
| 84 | 84 |
| 85 // Corresponds to navigator.serviceWorker.register(). | 85 // Corresponds to navigator.serviceWorker.register(). |
| 86 void RegisterServiceWorker( | 86 void RegisterServiceWorker( |
| 87 int provider_id, | 87 int provider_id, |
| 88 const GURL& pattern, | 88 const GURL& pattern, |
| 89 const GURL& script_url, | 89 const GURL& script_url, |
| 90 bool use_cache, |
| 90 std::unique_ptr<WebServiceWorkerRegistrationCallbacks> callbacks); | 91 std::unique_ptr<WebServiceWorkerRegistrationCallbacks> callbacks); |
| 91 // Corresponds to ServiceWorkerRegistration.update(). | 92 // Corresponds to ServiceWorkerRegistration.update(). |
| 92 void UpdateServiceWorker( | 93 void UpdateServiceWorker( |
| 93 int provider_id, | 94 int provider_id, |
| 94 int64_t registration_id, | 95 int64_t registration_id, |
| 95 std::unique_ptr<WebServiceWorkerUpdateCallbacks> callbacks); | 96 std::unique_ptr<WebServiceWorkerUpdateCallbacks> callbacks); |
| 96 // Corresponds to ServiceWorkerRegistration.unregister(). | 97 // Corresponds to ServiceWorkerRegistration.unregister(). |
| 97 void UnregisterServiceWorker( | 98 void UnregisterServiceWorker( |
| 98 int provider_id, | 99 int provider_id, |
| 99 int64_t registration_id, | 100 int64_t registration_id, |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 | 335 |
| 335 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 336 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 336 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; | 337 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; |
| 337 | 338 |
| 338 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); | 339 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); |
| 339 }; | 340 }; |
| 340 | 341 |
| 341 } // namespace content | 342 } // namespace content |
| 342 | 343 |
| 343 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ | 344 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ |
| OLD | NEW |