| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 ResourceContext* resource_context(); | 87 ResourceContext* resource_context(); |
| 88 | 88 |
| 89 // The process manager can be used on either UI or IO. | 89 // The process manager can be used on either UI or IO. |
| 90 ServiceWorkerProcessManager* process_manager() { | 90 ServiceWorkerProcessManager* process_manager() { |
| 91 return process_manager_.get(); | 91 return process_manager_.get(); |
| 92 } | 92 } |
| 93 | 93 |
| 94 // ServiceWorkerContext implementation: | 94 // ServiceWorkerContext implementation: |
| 95 void RegisterServiceWorker(const GURL& pattern, | 95 void RegisterServiceWorker(const GURL& pattern, |
| 96 const GURL& script_url, | 96 const GURL& script_url, |
| 97 bool use_cache, |
| 97 const ResultCallback& continuation) override; | 98 const ResultCallback& continuation) override; |
| 98 void UnregisterServiceWorker(const GURL& pattern, | 99 void UnregisterServiceWorker(const GURL& pattern, |
| 99 const ResultCallback& continuation) override; | 100 const ResultCallback& continuation) override; |
| 100 void GetAllOriginsInfo(const GetUsageInfoCallback& callback) override; | 101 void GetAllOriginsInfo(const GetUsageInfoCallback& callback) override; |
| 101 void DeleteForOrigin(const GURL& origin, | 102 void DeleteForOrigin(const GURL& origin, |
| 102 const ResultCallback& callback) override; | 103 const ResultCallback& callback) override; |
| 103 void CheckHasServiceWorker( | 104 void CheckHasServiceWorker( |
| 104 const GURL& url, | 105 const GURL& url, |
| 105 const GURL& other_url, | 106 const GURL& other_url, |
| 106 const CheckHasServiceWorkerCallback& callback) override; | 107 const CheckHasServiceWorkerCallback& callback) override; |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 | 319 |
| 319 // Must be touched on the UI thread. | 320 // Must be touched on the UI thread. |
| 320 std::map<int, int> navigation_hint_task_count_per_process_; | 321 std::map<int, int> navigation_hint_task_count_per_process_; |
| 321 | 322 |
| 322 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); | 323 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); |
| 323 }; | 324 }; |
| 324 | 325 |
| 325 } // namespace content | 326 } // namespace content |
| 326 | 327 |
| 327 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ | 328 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
| OLD | NEW |