| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 const base::FilePath& user_data_directory, | 108 const base::FilePath& user_data_directory, |
| 109 const scoped_refptr<base::SequencedTaskRunner>& stores_task_runner, | 109 const scoped_refptr<base::SequencedTaskRunner>& stores_task_runner, |
| 110 scoped_ptr<ServiceWorkerDatabaseTaskManager> database_task_manager, | 110 scoped_ptr<ServiceWorkerDatabaseTaskManager> database_task_manager, |
| 111 const scoped_refptr<base::SingleThreadTaskRunner>& disk_cache_thread, | 111 const scoped_refptr<base::SingleThreadTaskRunner>& disk_cache_thread, |
| 112 storage::QuotaManagerProxy* quota_manager_proxy, | 112 storage::QuotaManagerProxy* quota_manager_proxy, |
| 113 storage::SpecialStoragePolicy* special_storage_policy); | 113 storage::SpecialStoragePolicy* special_storage_policy); |
| 114 void ShutdownOnIO(); | 114 void ShutdownOnIO(); |
| 115 | 115 |
| 116 void DidDeleteAndStartOver(ServiceWorkerStatusCode status); | 116 void DidDeleteAndStartOver(ServiceWorkerStatusCode status); |
| 117 | 117 |
| 118 void CombineUsageInfo(std::vector<ServiceWorkerUsageInfo>* usage_info, |
| 119 std::map<GURL, int64>* usage_map, |
| 120 const GetUsageInfoCallback& callback); |
| 121 |
| 118 void DidGetAllRegistrationsForGetAllOrigins( | 122 void DidGetAllRegistrationsForGetAllOrigins( |
| 119 const GetUsageInfoCallback& callback, | 123 const base::Closure& closure, |
| 124 std::vector<ServiceWorkerUsageInfo>* usage_info_out, |
| 120 const std::vector<ServiceWorkerRegistrationInfo>& registrations); | 125 const std::vector<ServiceWorkerRegistrationInfo>& registrations); |
| 121 | 126 |
| 127 void DidGetUsageForAllOrigins(const base::Closure& closure, |
| 128 std::map<GURL, int64>* usage_out, |
| 129 const std::map<GURL, int64>& usage_map); |
| 130 |
| 122 const scoped_refptr<ObserverListThreadSafe<ServiceWorkerContextObserver> > | 131 const scoped_refptr<ObserverListThreadSafe<ServiceWorkerContextObserver> > |
| 123 observer_list_; | 132 observer_list_; |
| 124 const scoped_ptr<ServiceWorkerProcessManager> process_manager_; | 133 const scoped_ptr<ServiceWorkerProcessManager> process_manager_; |
| 125 // Cleared in Shutdown(): | 134 // Cleared in Shutdown(): |
| 126 scoped_ptr<ServiceWorkerContextCore> context_core_; | 135 scoped_ptr<ServiceWorkerContextCore> context_core_; |
| 127 | 136 |
| 128 // Initialized in Init(); true if the user data directory is empty. | 137 // Initialized in Init(); true if the user data directory is empty. |
| 129 bool is_incognito_; | 138 bool is_incognito_; |
| 130 }; | 139 }; |
| 131 | 140 |
| 132 } // namespace content | 141 } // namespace content |
| 133 | 142 |
| 134 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ | 143 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
| OLD | NEW |