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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 int64_t registration_id, | 196 int64_t registration_id, |
197 const GURL& origin, | 197 const GURL& origin, |
198 const std::vector<std::pair<std::string, std::string>>& key_value_pairs, | 198 const std::vector<std::pair<std::string, std::string>>& key_value_pairs, |
199 const StatusCallback& callback); | 199 const StatusCallback& callback); |
200 void ClearRegistrationUserData(int64_t registration_id, | 200 void ClearRegistrationUserData(int64_t registration_id, |
201 const std::vector<std::string>& keys, | 201 const std::vector<std::string>& keys, |
202 const StatusCallback& callback); | 202 const StatusCallback& callback); |
203 void GetUserDataForAllRegistrations( | 203 void GetUserDataForAllRegistrations( |
204 const std::string& key, | 204 const std::string& key, |
205 const GetUserDataForAllRegistrationsCallback& callback); | 205 const GetUserDataForAllRegistrationsCallback& callback); |
| 206 void GetUserDataForAllRegistrationsByKeyPrefix( |
| 207 const std::string& key_prefix, |
| 208 const GetUserDataForAllRegistrationsCallback& callback); |
206 | 209 |
207 // This function can be called from any thread, but the callback will always | 210 // This function can be called from any thread, but the callback will always |
208 // be called on the UI thread. | 211 // be called on the UI thread. |
209 void StartServiceWorker(const GURL& pattern, const StatusCallback& callback); | 212 void StartServiceWorker(const GURL& pattern, const StatusCallback& callback); |
210 | 213 |
211 // This function can be called from any thread. | 214 // This function can be called from any thread. |
212 void SkipWaitingWorker(const GURL& pattern); | 215 void SkipWaitingWorker(const GURL& pattern); |
213 | 216 |
214 // These methods can be called from any thread. | 217 // These methods can be called from any thread. |
215 void UpdateRegistration(const GURL& pattern); | 218 void UpdateRegistration(const GURL& pattern); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 | 298 |
296 // The ResourceContext associated with this context. | 299 // The ResourceContext associated with this context. |
297 ResourceContext* resource_context_; | 300 ResourceContext* resource_context_; |
298 | 301 |
299 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); | 302 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); |
300 }; | 303 }; |
301 | 304 |
302 } // namespace content | 305 } // namespace content |
303 | 306 |
304 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ | 307 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
OLD | NEW |