| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 void ClearAllServiceWorkersForTest(const base::Closure& callback) override; | 111 void ClearAllServiceWorkersForTest(const base::Closure& callback) override; |
| 112 void StartServiceWorkerForNavigationHint( | 112 void StartServiceWorkerForNavigationHint( |
| 113 const GURL& document_url, | 113 const GURL& document_url, |
| 114 blink::WebNavigationHintType type, | 114 blink::WebNavigationHintType type, |
| 115 int render_process_id, | 115 int render_process_id, |
| 116 const ResultCallback& callback) override; | 116 const ResultCallback& 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 bool IsServiceWorkerExistsOnProcess(int render_process_id) override; |
| 121 | 122 |
| 122 // These methods must only be called from the IO thread. | 123 // These methods must only be called from the IO thread. |
| 123 ServiceWorkerRegistration* GetLiveRegistration(int64_t registration_id); | 124 ServiceWorkerRegistration* GetLiveRegistration(int64_t registration_id); |
| 124 ServiceWorkerVersion* GetLiveVersion(int64_t version_id); | 125 ServiceWorkerVersion* GetLiveVersion(int64_t version_id); |
| 125 std::vector<ServiceWorkerRegistrationInfo> GetAllLiveRegistrationInfo(); | 126 std::vector<ServiceWorkerRegistrationInfo> GetAllLiveRegistrationInfo(); |
| 126 std::vector<ServiceWorkerVersionInfo> GetAllLiveVersionInfo(); | 127 std::vector<ServiceWorkerVersionInfo> GetAllLiveVersionInfo(); |
| 127 | 128 |
| 128 // Must be called from the IO thread. | 129 // Must be called from the IO thread. |
| 129 void HasMainFrameProviderHost(const GURL& origin, | 130 void HasMainFrameProviderHost(const GURL& origin, |
| 130 const BoolCallback& callback) const; | 131 const BoolCallback& callback) const; |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 | 301 |
| 301 // Must be touched on the UI thread. | 302 // Must be touched on the UI thread. |
| 302 std::map<int, int> navigation_hint_task_count_per_process_; | 303 std::map<int, int> navigation_hint_task_count_per_process_; |
| 303 | 304 |
| 304 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); | 305 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); |
| 305 }; | 306 }; |
| 306 | 307 |
| 307 } // namespace content | 308 } // namespace content |
| 308 | 309 |
| 309 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ | 310 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
| OLD | NEW |