| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 // | 182 // |
| 183 // Must be called from the IO thread. | 183 // Must be called from the IO thread. |
| 184 void FindReadyRegistrationForIdOnly(int64_t registration_id, | 184 void FindReadyRegistrationForIdOnly(int64_t registration_id, |
| 185 const FindRegistrationCallback& callback); | 185 const FindRegistrationCallback& callback); |
| 186 | 186 |
| 187 // All these methods must be called from the IO thread. | 187 // All these methods must be called from the IO thread. |
| 188 void GetAllRegistrations(const GetRegistrationsInfosCallback& callback); | 188 void GetAllRegistrations(const GetRegistrationsInfosCallback& callback); |
| 189 void GetRegistrationUserData(int64_t registration_id, | 189 void GetRegistrationUserData(int64_t registration_id, |
| 190 const std::vector<std::string>& keys, | 190 const std::vector<std::string>& keys, |
| 191 const GetUserDataCallback& callback); | 191 const GetUserDataCallback& callback); |
| 192 void GetRegistrationUserDataByKeyPrefix(int64_t registration_id, |
| 193 const std::string& key_prefix, |
| 194 const GetUserDataCallback& callback); |
| 192 void StoreRegistrationUserData( | 195 void StoreRegistrationUserData( |
| 193 int64_t registration_id, | 196 int64_t registration_id, |
| 194 const GURL& origin, | 197 const GURL& origin, |
| 195 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, |
| 196 const StatusCallback& callback); | 199 const StatusCallback& callback); |
| 197 void ClearRegistrationUserData(int64_t registration_id, | 200 void ClearRegistrationUserData(int64_t registration_id, |
| 198 const std::vector<std::string>& keys, | 201 const std::vector<std::string>& keys, |
| 199 const StatusCallback& callback); | 202 const StatusCallback& callback); |
| 200 void GetUserDataForAllRegistrations( | 203 void GetUserDataForAllRegistrations( |
| 201 const std::string& key, | 204 const std::string& key, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 | 295 |
| 293 // The ResourceContext associated with this context. | 296 // The ResourceContext associated with this context. |
| 294 ResourceContext* resource_context_; | 297 ResourceContext* resource_context_; |
| 295 | 298 |
| 296 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); | 299 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); |
| 297 }; | 300 }; |
| 298 | 301 |
| 299 } // namespace content | 302 } // namespace content |
| 300 | 303 |
| 301 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ | 304 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
| OLD | NEW |