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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 const std::string& key, | 114 const std::string& key, |
115 const StatusCallback& callback); | 115 const StatusCallback& callback); |
116 void GetUserDataForAllRegistrations( | 116 void GetUserDataForAllRegistrations( |
117 const std::string& key, | 117 const std::string& key, |
118 const GetUserDataForAllRegistrationsCallback& callback); | 118 const GetUserDataForAllRegistrationsCallback& callback); |
119 | 119 |
120 // DeleteForOrigin with completion callback. Does not exit early, and returns | 120 // DeleteForOrigin with completion callback. Does not exit early, and returns |
121 // false if one or more of the deletions fail. | 121 // false if one or more of the deletions fail. |
122 virtual void DeleteForOrigin(const GURL& origin, const ResultCallback& done); | 122 virtual void DeleteForOrigin(const GURL& origin, const ResultCallback& done); |
123 | 123 |
| 124 // PlzNavigate: |
| 125 void RegisterNavigationProviderHost( |
| 126 scoped_ptr<ServiceWorkerProviderHost> provider_host); |
| 127 |
124 void StartServiceWorker(const GURL& pattern, const StatusCallback& callback); | 128 void StartServiceWorker(const GURL& pattern, const StatusCallback& callback); |
125 void UpdateRegistration(const GURL& pattern); | 129 void UpdateRegistration(const GURL& pattern); |
126 void SimulateSkipWaiting(int64_t version_id); | 130 void SimulateSkipWaiting(int64_t version_id); |
127 void AddObserver(ServiceWorkerContextObserver* observer); | 131 void AddObserver(ServiceWorkerContextObserver* observer); |
128 void RemoveObserver(ServiceWorkerContextObserver* observer); | 132 void RemoveObserver(ServiceWorkerContextObserver* observer); |
129 | 133 |
130 bool is_incognito() const { return is_incognito_; } | 134 bool is_incognito() const { return is_incognito_; } |
131 | 135 |
132 private: | 136 private: |
133 friend class BackgroundSyncManagerTest; | 137 friend class BackgroundSyncManagerTest; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 // Initialized in Init(); true if the user data directory is empty. | 185 // Initialized in Init(); true if the user data directory is empty. |
182 bool is_incognito_; | 186 bool is_incognito_; |
183 | 187 |
184 // Raw pointer to the StoragePartitionImpl owning |this|. | 188 // Raw pointer to the StoragePartitionImpl owning |this|. |
185 StoragePartitionImpl* storage_partition_; | 189 StoragePartitionImpl* storage_partition_; |
186 }; | 190 }; |
187 | 191 |
188 } // namespace content | 192 } // namespace content |
189 | 193 |
190 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ | 194 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
OLD | NEW |