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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 virtual void StoreDataInBackend( | 133 virtual void StoreDataInBackend( |
134 int64_t sw_registration_id, | 134 int64_t sw_registration_id, |
135 const GURL& origin, | 135 const GURL& origin, |
136 const std::string& backend_key, | 136 const std::string& backend_key, |
137 const std::string& data, | 137 const std::string& data, |
138 const ServiceWorkerStorage::StatusCallback& callback); | 138 const ServiceWorkerStorage::StatusCallback& callback); |
139 virtual void GetDataFromBackend( | 139 virtual void GetDataFromBackend( |
140 const std::string& backend_key, | 140 const std::string& backend_key, |
141 const ServiceWorkerStorage::GetUserDataForAllRegistrationsCallback& | 141 const ServiceWorkerStorage::GetUserDataForAllRegistrationsCallback& |
142 callback); | 142 callback); |
143 virtual void FireOneShotSync( | 143 virtual void DispatchSyncEvent( |
144 BackgroundSyncRegistrationHandle::HandleId handle_id, | 144 BackgroundSyncRegistrationHandle::HandleId handle_id, |
145 const scoped_refptr<ServiceWorkerVersion>& active_version, | 145 const scoped_refptr<ServiceWorkerVersion>& active_version, |
146 BackgroundSyncEventLastChance last_chance, | 146 BackgroundSyncEventLastChance last_chance, |
147 const ServiceWorkerVersion::StatusCallback& callback); | 147 const ServiceWorkerVersion::StatusCallback& callback); |
148 virtual void ScheduleDelayedTask(const base::Closure& callback, | 148 virtual void ScheduleDelayedTask(const base::Closure& callback, |
149 base::TimeDelta delay); | 149 base::TimeDelta delay); |
150 virtual void HasMainFrameProviderHost(const GURL& origin, | 150 virtual void HasMainFrameProviderHost(const GURL& origin, |
151 const BoolCallback& callback); | 151 const BoolCallback& callback); |
152 | 152 |
153 private: | 153 private: |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 scoped_ptr<base::Clock> clock_; | 404 scoped_ptr<base::Clock> clock_; |
405 | 405 |
406 base::WeakPtrFactory<BackgroundSyncManager> weak_ptr_factory_; | 406 base::WeakPtrFactory<BackgroundSyncManager> weak_ptr_factory_; |
407 | 407 |
408 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncManager); | 408 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncManager); |
409 }; | 409 }; |
410 | 410 |
411 } // namespace content | 411 } // namespace content |
412 | 412 |
413 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_ | 413 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_ |
OLD | NEW |