| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 ServiceWorkerProcessManager* process_manager() { | 65 ServiceWorkerProcessManager* process_manager() { |
| 66 return process_manager_.get(); | 66 return process_manager_.get(); |
| 67 } | 67 } |
| 68 | 68 |
| 69 // ServiceWorkerContext implementation: | 69 // ServiceWorkerContext implementation: |
| 70 void RegisterServiceWorker(const GURL& pattern, | 70 void RegisterServiceWorker(const GURL& pattern, |
| 71 const GURL& script_url, | 71 const GURL& script_url, |
| 72 const ResultCallback& continuation) override; | 72 const ResultCallback& continuation) override; |
| 73 void UnregisterServiceWorker(const GURL& pattern, | 73 void UnregisterServiceWorker(const GURL& pattern, |
| 74 const ResultCallback& continuation) override; | 74 const ResultCallback& continuation) override; |
| 75 void Terminate() override; | |
| 76 void GetAllOriginsInfo(const GetUsageInfoCallback& callback) override; | 75 void GetAllOriginsInfo(const GetUsageInfoCallback& callback) override; |
| 77 void DeleteForOrigin(const GURL& origin_url) override; | 76 void DeleteForOrigin(const GURL& origin_url) override; |
| 78 | 77 |
| 79 // DeleteForOrigin with completion callback. Does not exit early, and returns | 78 // DeleteForOrigin with completion callback. Does not exit early, and returns |
| 80 // false if one or more of the deletions fail. | 79 // false if one or more of the deletions fail. |
| 81 virtual void DeleteForOrigin(const GURL& origin_url, | 80 virtual void DeleteForOrigin(const GURL& origin_url, |
| 82 const ResultCallback& done); | 81 const ResultCallback& done); |
| 83 | 82 |
| 84 void AddObserver(ServiceWorkerContextObserver* observer); | 83 void AddObserver(ServiceWorkerContextObserver* observer); |
| 85 void RemoveObserver(ServiceWorkerContextObserver* observer); | 84 void RemoveObserver(ServiceWorkerContextObserver* observer); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 // Cleared in Shutdown(): | 124 // Cleared in Shutdown(): |
| 126 scoped_ptr<ServiceWorkerContextCore> context_core_; | 125 scoped_ptr<ServiceWorkerContextCore> context_core_; |
| 127 | 126 |
| 128 // Initialized in Init(); true if the user data directory is empty. | 127 // Initialized in Init(); true if the user data directory is empty. |
| 129 bool is_incognito_; | 128 bool is_incognito_; |
| 130 }; | 129 }; |
| 131 | 130 |
| 132 } // namespace content | 131 } // namespace content |
| 133 | 132 |
| 134 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ | 133 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
| OLD | NEW |