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); | |
195 void StoreRegistrationUserData( | 192 void StoreRegistrationUserData( |
196 int64_t registration_id, | 193 int64_t registration_id, |
197 const GURL& origin, | 194 const GURL& origin, |
198 const std::vector<std::pair<std::string, std::string>>& key_value_pairs, | 195 const std::vector<std::pair<std::string, std::string>>& key_value_pairs, |
199 const StatusCallback& callback); | 196 const StatusCallback& callback); |
200 void ClearRegistrationUserData(int64_t registration_id, | 197 void ClearRegistrationUserData(int64_t registration_id, |
201 const std::vector<std::string>& keys, | 198 const std::vector<std::string>& keys, |
202 const StatusCallback& callback); | 199 const StatusCallback& callback); |
203 void GetUserDataForAllRegistrations( | 200 void GetUserDataForAllRegistrations( |
204 const std::string& key, | 201 const std::string& key, |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 | 292 |
296 // The ResourceContext associated with this context. | 293 // The ResourceContext associated with this context. |
297 ResourceContext* resource_context_; | 294 ResourceContext* resource_context_; |
298 | 295 |
299 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); | 296 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); |
300 }; | 297 }; |
301 | 298 |
302 } // namespace content | 299 } // namespace content |
303 | 300 |
304 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ | 301 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
OLD | NEW |