OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_ |
6 #define CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_ | 6 #define CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 // FireReadyEvents scans the list of available events and fires those that are | 242 // FireReadyEvents scans the list of available events and fires those that are |
243 // ready to fire. For those that can't yet be fired, wakeup alarms are set. | 243 // ready to fire. For those that can't yet be fired, wakeup alarms are set. |
244 void FireReadyEvents(); | 244 void FireReadyEvents(); |
245 void FireReadyEventsImpl(const base::Closure& callback); | 245 void FireReadyEventsImpl(const base::Closure& callback); |
246 void FireReadyEventsDidFindRegistration( | 246 void FireReadyEventsDidFindRegistration( |
247 const std::string& tag, | 247 const std::string& tag, |
248 BackgroundSyncRegistration::RegistrationId registration_id, | 248 BackgroundSyncRegistration::RegistrationId registration_id, |
249 const base::Closure& event_fired_callback, | 249 const base::Closure& event_fired_callback, |
250 const base::Closure& event_completed_callback, | 250 const base::Closure& event_completed_callback, |
251 ServiceWorkerStatusCode service_worker_status, | 251 ServiceWorkerStatusCode service_worker_status, |
252 const scoped_refptr<ServiceWorkerRegistration>& | 252 scoped_refptr<ServiceWorkerRegistration> service_worker_registration); |
253 service_worker_registration); | |
254 void FireReadyEventsAllEventsFiring(const base::Closure& callback); | 253 void FireReadyEventsAllEventsFiring(const base::Closure& callback); |
255 | 254 |
256 // Called when a sync event has completed. | 255 // Called when a sync event has completed. |
257 void EventComplete( | 256 void EventComplete( |
258 scoped_refptr<ServiceWorkerRegistration> service_worker_registration, | 257 scoped_refptr<ServiceWorkerRegistration> service_worker_registration, |
259 int64_t service_worker_id, | 258 int64_t service_worker_id, |
260 const std::string& tag, | 259 const std::string& tag, |
261 const base::Closure& callback, | 260 const base::Closure& callback, |
262 ServiceWorkerStatusCode status_code); | 261 ServiceWorkerStatusCode status_code); |
263 void EventCompleteImpl(int64_t service_worker_id, | 262 void EventCompleteImpl(int64_t service_worker_id, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 std::unique_ptr<base::Clock> clock_; | 305 std::unique_ptr<base::Clock> clock_; |
307 | 306 |
308 base::WeakPtrFactory<BackgroundSyncManager> weak_ptr_factory_; | 307 base::WeakPtrFactory<BackgroundSyncManager> weak_ptr_factory_; |
309 | 308 |
310 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncManager); | 309 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncManager); |
311 }; | 310 }; |
312 | 311 |
313 } // namespace content | 312 } // namespace content |
314 | 313 |
315 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_ | 314 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_ |
OLD | NEW |