| 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_SERVICE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_SERVICE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_SERVICE_IMPL_H_ | 6 #define CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_SERVICE_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 ~BackgroundSyncServiceImpl() override; | 26 ~BackgroundSyncServiceImpl() override; |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 friend class BackgroundSyncServiceImplTest; | 29 friend class BackgroundSyncServiceImplTest; |
| 30 | 30 |
| 31 | 31 |
| 32 // BackgroundSyncService methods: | 32 // BackgroundSyncService methods: |
| 33 void Register(content::SyncRegistrationPtr options, | 33 void Register(content::SyncRegistrationPtr options, |
| 34 int64_t sw_registration_id, | 34 int64_t sw_registration_id, |
| 35 bool requested_from_service_worker, | |
| 36 const RegisterCallback& callback) override; | 35 const RegisterCallback& callback) override; |
| 37 void Unregister(BackgroundSyncPeriodicity periodicity, | 36 void Unregister(BackgroundSyncPeriodicity periodicity, |
| 38 int64_t id, | 37 int64_t id, |
| 39 const mojo::String& tag, | 38 const mojo::String& tag, |
| 40 int64_t sw_registration_id, | 39 int64_t sw_registration_id, |
| 41 const UnregisterCallback& callback) override; | 40 const UnregisterCallback& callback) override; |
| 42 void GetRegistration(BackgroundSyncPeriodicity periodicity, | 41 void GetRegistration(BackgroundSyncPeriodicity periodicity, |
| 43 const mojo::String& tag, | 42 const mojo::String& tag, |
| 44 int64_t sw_registration_id, | 43 int64_t sw_registration_id, |
| 45 const GetRegistrationCallback& callback) override; | 44 const GetRegistrationCallback& callback) override; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 70 mojo::Binding<BackgroundSyncService> binding_; | 69 mojo::Binding<BackgroundSyncService> binding_; |
| 71 | 70 |
| 72 base::WeakPtrFactory<BackgroundSyncServiceImpl> weak_ptr_factory_; | 71 base::WeakPtrFactory<BackgroundSyncServiceImpl> weak_ptr_factory_; |
| 73 | 72 |
| 74 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncServiceImpl); | 73 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncServiceImpl); |
| 75 }; | 74 }; |
| 76 | 75 |
| 77 } // namespace content | 76 } // namespace content |
| 78 | 77 |
| 79 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_SERVICE_IMPL_H_ | 78 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_SERVICE_IMPL_H_ |
| OLD | NEW |