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_CONTEXT_WRAPPER_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 const CountExternalRequestsCallback& callback) override; | 114 const CountExternalRequestsCallback& callback) override; |
115 void StopAllServiceWorkersForOrigin(const GURL& origin) override; | 115 void StopAllServiceWorkersForOrigin(const GURL& origin) override; |
116 void ClearAllServiceWorkersForTest(const base::Closure& callback) override; | 116 void ClearAllServiceWorkersForTest(const base::Closure& callback) override; |
117 bool StartingExternalRequest(int64_t service_worker_version_id, | 117 bool StartingExternalRequest(int64_t service_worker_version_id, |
118 const std::string& request_uuid) override; | 118 const std::string& request_uuid) override; |
119 bool FinishedExternalRequest(int64_t service_worker_version_id, | 119 bool FinishedExternalRequest(int64_t service_worker_version_id, |
120 const std::string& request_uuid) override; | 120 const std::string& request_uuid) override; |
121 void StartServiceWorkerForNavigationHint( | 121 void StartServiceWorkerForNavigationHint( |
122 const GURL& document_url, | 122 const GURL& document_url, |
123 const StartServiceWorkerForNavigationHintCallback& callback) override; | 123 const StartServiceWorkerForNavigationHintCallback& callback) override; |
| 124 void GetWorkerInfoAfterStartWorker( |
| 125 const GURL& origin, |
| 126 GetWorkerInfoCallback info_callback, |
| 127 base::OnceClosure failure_callback) override; |
124 | 128 |
125 // These methods must only be called from the IO thread. | 129 // These methods must only be called from the IO thread. |
126 ServiceWorkerRegistration* GetLiveRegistration(int64_t registration_id); | 130 ServiceWorkerRegistration* GetLiveRegistration(int64_t registration_id); |
127 ServiceWorkerVersion* GetLiveVersion(int64_t version_id); | 131 ServiceWorkerVersion* GetLiveVersion(int64_t version_id); |
128 std::vector<ServiceWorkerRegistrationInfo> GetAllLiveRegistrationInfo(); | 132 std::vector<ServiceWorkerRegistrationInfo> GetAllLiveRegistrationInfo(); |
129 std::vector<ServiceWorkerVersionInfo> GetAllLiveVersionInfo(); | 133 std::vector<ServiceWorkerVersionInfo> GetAllLiveVersionInfo(); |
130 | 134 |
131 // Must be called from the IO thread. | 135 // Must be called from the IO thread. |
132 void HasMainFrameProviderHost(const GURL& origin, | 136 void HasMainFrameProviderHost(const GURL& origin, |
133 const BoolCallback& callback) const; | 137 const BoolCallback& callback) const; |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 | 335 |
332 // The ResourceContext associated with this context. | 336 // The ResourceContext associated with this context. |
333 ResourceContext* resource_context_; | 337 ResourceContext* resource_context_; |
334 | 338 |
335 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); | 339 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); |
336 }; | 340 }; |
337 | 341 |
338 } // namespace content | 342 } // namespace content |
339 | 343 |
340 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ | 344 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
OLD | NEW |