| 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 StartActiveWorkerForPattern(const GURL& pattern, |
| 125 StartActiveWorkerCallback info_callback, |
| 126 base::OnceClosure failure_callback) override; |
| 124 | 127 |
| 125 // These methods must only be called from the IO thread. | 128 // These methods must only be called from the IO thread. |
| 126 ServiceWorkerRegistration* GetLiveRegistration(int64_t registration_id); | 129 ServiceWorkerRegistration* GetLiveRegistration(int64_t registration_id); |
| 127 ServiceWorkerVersion* GetLiveVersion(int64_t version_id); | 130 ServiceWorkerVersion* GetLiveVersion(int64_t version_id); |
| 128 std::vector<ServiceWorkerRegistrationInfo> GetAllLiveRegistrationInfo(); | 131 std::vector<ServiceWorkerRegistrationInfo> GetAllLiveRegistrationInfo(); |
| 129 std::vector<ServiceWorkerVersionInfo> GetAllLiveVersionInfo(); | 132 std::vector<ServiceWorkerVersionInfo> GetAllLiveVersionInfo(); |
| 130 | 133 |
| 131 // Must be called from the IO thread. | 134 // Must be called from the IO thread. |
| 132 void HasMainFrameProviderHost(const GURL& origin, | 135 void HasMainFrameProviderHost(const GURL& origin, |
| 133 const BoolCallback& callback) const; | 136 const BoolCallback& callback) const; |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 | 334 |
| 332 // The ResourceContext associated with this context. | 335 // The ResourceContext associated with this context. |
| 333 ResourceContext* resource_context_; | 336 ResourceContext* resource_context_; |
| 334 | 337 |
| 335 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); | 338 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); |
| 336 }; | 339 }; |
| 337 | 340 |
| 338 } // namespace content | 341 } // namespace content |
| 339 | 342 |
| 340 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ | 343 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
| OLD | NEW |