| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 // mojom::ServiceWorkerDispatcherHost implementation | 102 // mojom::ServiceWorkerDispatcherHost implementation |
| 103 void OnProviderCreated(ServiceWorkerProviderHostInfo info) override; | 103 void OnProviderCreated(ServiceWorkerProviderHostInfo info) override; |
| 104 void OnSetHostedVersionId(int provider_id, | 104 void OnSetHostedVersionId(int provider_id, |
| 105 int64_t version_id, | 105 int64_t version_id, |
| 106 int embedded_worker_id) override; | 106 int embedded_worker_id) override; |
| 107 | 107 |
| 108 // IPC Message handlers | 108 // IPC Message handlers |
| 109 void OnRegisterServiceWorker(int thread_id, | 109 void OnRegisterServiceWorker(int thread_id, |
| 110 int request_id, | 110 int request_id, |
| 111 int provider_id, | 111 int provider_id, |
| 112 const GURL& pattern, | 112 const GURL& script_url, |
| 113 const GURL& script_url); | 113 const ServiceWorkerRegistrationOptions& options); |
| 114 void OnUpdateServiceWorker(int thread_id, | 114 void OnUpdateServiceWorker(int thread_id, |
| 115 int request_id, | 115 int request_id, |
| 116 int provider_id, | 116 int provider_id, |
| 117 int64_t registration_id); | 117 int64_t registration_id); |
| 118 void OnUnregisterServiceWorker(int thread_id, | 118 void OnUnregisterServiceWorker(int thread_id, |
| 119 int request_id, | 119 int request_id, |
| 120 int provider_id, | 120 int provider_id, |
| 121 int64_t registration_id); | 121 int64_t registration_id); |
| 122 void OnGetRegistration(int thread_id, | 122 void OnGetRegistration(int thread_id, |
| 123 int request_id, | 123 int request_id, |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 std::vector<std::unique_ptr<IPC::Message>> pending_messages_; | 266 std::vector<std::unique_ptr<IPC::Message>> pending_messages_; |
| 267 | 267 |
| 268 base::WeakPtrFactory<ServiceWorkerDispatcherHost> weak_factory_; | 268 base::WeakPtrFactory<ServiceWorkerDispatcherHost> weak_factory_; |
| 269 | 269 |
| 270 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); | 270 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); |
| 271 }; | 271 }; |
| 272 | 272 |
| 273 } // namespace content | 273 } // namespace content |
| 274 | 274 |
| 275 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 275 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |
| OLD | NEW |