| 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 scoped_refptr<ServiceWorkerRegistration> service_worker_registration); | 252 const scoped_refptr<ServiceWorkerRegistration>& |
| 253 service_worker_registration); |
| 253 void FireReadyEventsAllEventsFiring(const base::Closure& callback); | 254 void FireReadyEventsAllEventsFiring(const base::Closure& callback); |
| 254 | 255 |
| 255 // Called when a sync event has completed. | 256 // Called when a sync event has completed. |
| 256 void EventComplete( | 257 void EventComplete( |
| 257 scoped_refptr<ServiceWorkerRegistration> service_worker_registration, | 258 scoped_refptr<ServiceWorkerRegistration> service_worker_registration, |
| 258 int64_t service_worker_id, | 259 int64_t service_worker_id, |
| 259 const std::string& tag, | 260 const std::string& tag, |
| 260 const base::Closure& callback, | 261 const base::Closure& callback, |
| 261 ServiceWorkerStatusCode status_code); | 262 ServiceWorkerStatusCode status_code); |
| 262 void EventCompleteImpl(int64_t service_worker_id, | 263 void EventCompleteImpl(int64_t service_worker_id, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 std::unique_ptr<base::Clock> clock_; | 306 std::unique_ptr<base::Clock> clock_; |
| 306 | 307 |
| 307 base::WeakPtrFactory<BackgroundSyncManager> weak_ptr_factory_; | 308 base::WeakPtrFactory<BackgroundSyncManager> weak_ptr_factory_; |
| 308 | 309 |
| 309 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncManager); | 310 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncManager); |
| 310 }; | 311 }; |
| 311 | 312 |
| 312 } // namespace content | 313 } // namespace content |
| 313 | 314 |
| 314 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_ | 315 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_ |
| OLD | NEW |