| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 base::SingleThreadTaskRunner* main_thread_task_runner); | 82 base::SingleThreadTaskRunner* main_thread_task_runner); |
| 83 ~ServiceWorkerDispatcher() override; | 83 ~ServiceWorkerDispatcher() override; |
| 84 | 84 |
| 85 void OnMessageReceived(const IPC::Message& msg); | 85 void OnMessageReceived(const IPC::Message& msg); |
| 86 | 86 |
| 87 // Corresponds to navigator.serviceWorker.register(). | 87 // Corresponds to navigator.serviceWorker.register(). |
| 88 void RegisterServiceWorker( | 88 void RegisterServiceWorker( |
| 89 int provider_id, | 89 int provider_id, |
| 90 const GURL& pattern, | 90 const GURL& pattern, |
| 91 const GURL& script_url, | 91 const GURL& script_url, |
| 92 blink::WebServiceWorkerUpdateViaCache update_via_cache, |
| 92 std::unique_ptr<WebServiceWorkerRegistrationCallbacks> callbacks); | 93 std::unique_ptr<WebServiceWorkerRegistrationCallbacks> callbacks); |
| 93 // Corresponds to ServiceWorkerRegistration.update(). | 94 // Corresponds to ServiceWorkerRegistration.update(). |
| 94 void UpdateServiceWorker( | 95 void UpdateServiceWorker( |
| 95 int provider_id, | 96 int provider_id, |
| 96 int64_t registration_id, | 97 int64_t registration_id, |
| 97 std::unique_ptr<WebServiceWorkerUpdateCallbacks> callbacks); | 98 std::unique_ptr<WebServiceWorkerUpdateCallbacks> callbacks); |
| 98 // Corresponds to ServiceWorkerRegistration.unregister(). | 99 // Corresponds to ServiceWorkerRegistration.unregister(). |
| 99 void UnregisterServiceWorker( | 100 void UnregisterServiceWorker( |
| 100 int provider_id, | 101 int provider_id, |
| 101 int64_t registration_id, | 102 int64_t registration_id, |
| (...skipping 232 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 |