| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 const GURL& url, | 105 const GURL& url, |
| 106 const GURL& other_url, | 106 const GURL& other_url, |
| 107 const CheckHasServiceWorkerCallback& callback) override; | 107 const CheckHasServiceWorkerCallback& callback) override; |
| 108 void StopAllServiceWorkersForOrigin(const GURL& origin) override; | 108 void StopAllServiceWorkersForOrigin(const GURL& origin) override; |
| 109 void ClearAllServiceWorkersForTest(const base::Closure& callback) override; | 109 void ClearAllServiceWorkersForTest(const base::Closure& callback) override; |
| 110 void StartServiceWorkerForNavigationHint( | 110 void StartServiceWorkerForNavigationHint( |
| 111 const GURL& document_url, | 111 const GURL& document_url, |
| 112 blink::WebNavigationHintType type, | 112 blink::WebNavigationHintType type, |
| 113 int render_process_id, | 113 int render_process_id, |
| 114 const ResultCallback& callback) override; | 114 const ResultCallback& callback) override; |
| 115 bool IncrementPendingActivity(int64_t service_worker_version_id, |
| 116 const std::string& request_uuid) override; |
| 117 bool DecrementPendingActivity(int64_t service_worker_version_id, |
| 118 const std::string& request_uuid) override; |
| 115 | 119 |
| 116 // These methods must only be called from the IO thread. | 120 // These methods must only be called from the IO thread. |
| 117 ServiceWorkerRegistration* GetLiveRegistration(int64_t registration_id); | 121 ServiceWorkerRegistration* GetLiveRegistration(int64_t registration_id); |
| 118 ServiceWorkerVersion* GetLiveVersion(int64_t version_id); | 122 ServiceWorkerVersion* GetLiveVersion(int64_t version_id); |
| 119 std::vector<ServiceWorkerRegistrationInfo> GetAllLiveRegistrationInfo(); | 123 std::vector<ServiceWorkerRegistrationInfo> GetAllLiveRegistrationInfo(); |
| 120 std::vector<ServiceWorkerVersionInfo> GetAllLiveVersionInfo(); | 124 std::vector<ServiceWorkerVersionInfo> GetAllLiveVersionInfo(); |
| 121 | 125 |
| 122 // Must be called from the IO thread. | 126 // Must be called from the IO thread. |
| 123 void HasMainFrameProviderHost(const GURL& origin, | 127 void HasMainFrameProviderHost(const GURL& origin, |
| 124 const BoolCallback& callback) const; | 128 const BoolCallback& callback) const; |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 | 282 |
| 279 // Must be touched on the UI thread. | 283 // Must be touched on the UI thread. |
| 280 std::map<int, int> navigation_hint_task_count_per_process_; | 284 std::map<int, int> navigation_hint_task_count_per_process_; |
| 281 | 285 |
| 282 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); | 286 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); |
| 283 }; | 287 }; |
| 284 | 288 |
| 285 } // namespace content | 289 } // namespace content |
| 286 | 290 |
| 287 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ | 291 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
| OLD | NEW |