Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: content/browser/background_sync/background_sync_service_impl.h

Issue 1614063002: [BackgroundSync Cleanup] Remove periodic sync code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@purge_power
Patch Set: Address comments from PS3 Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/id_map.h" 10 #include "base/id_map.h"
(...skipping 21 matching lines...) Expand all
32 friend class BackgroundSyncServiceImplTest; 32 friend class BackgroundSyncServiceImplTest;
33 33
34 // BackgroundSyncService methods: 34 // BackgroundSyncService methods:
35 void Register(content::SyncRegistrationPtr options, 35 void Register(content::SyncRegistrationPtr options,
36 int64_t sw_registration_id, 36 int64_t sw_registration_id,
37 bool requested_from_service_worker, 37 bool requested_from_service_worker,
38 const RegisterCallback& callback) override; 38 const RegisterCallback& callback) override;
39 void Unregister(BackgroundSyncRegistrationHandle::HandleId handle_id, 39 void Unregister(BackgroundSyncRegistrationHandle::HandleId handle_id,
40 int64_t sw_registration_id, 40 int64_t sw_registration_id,
41 const UnregisterCallback& callback) override; 41 const UnregisterCallback& callback) override;
42 void GetRegistration(BackgroundSyncPeriodicity periodicity, 42 void GetRegistration(const mojo::String& tag,
43 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;
46 void GetRegistrations(BackgroundSyncPeriodicity periodicity, 45 void GetRegistrations(int64_t sw_registration_id,
47 int64_t sw_registration_id,
48 const GetRegistrationsCallback& callback) override; 46 const GetRegistrationsCallback& callback) override;
49 void GetPermissionStatus( 47 void GetPermissionStatus(
50 BackgroundSyncPeriodicity periodicity,
51 int64_t sw_registration_id, 48 int64_t sw_registration_id,
52 const GetPermissionStatusCallback& callback) override; 49 const GetPermissionStatusCallback& callback) override;
53 void DuplicateRegistrationHandle( 50 void DuplicateRegistrationHandle(
54 BackgroundSyncRegistrationHandle::HandleId handle_id, 51 BackgroundSyncRegistrationHandle::HandleId handle_id,
55 const DuplicateRegistrationHandleCallback& callback) override; 52 const DuplicateRegistrationHandleCallback& callback) override;
56 void ReleaseRegistration( 53 void ReleaseRegistration(
57 BackgroundSyncRegistrationHandle::HandleId handle_id) override; 54 BackgroundSyncRegistrationHandle::HandleId handle_id) override;
58 void NotifyWhenFinished(BackgroundSyncRegistrationHandle::HandleId handle_id, 55 void NotifyWhenFinished(BackgroundSyncRegistrationHandle::HandleId handle_id,
59 const NotifyWhenFinishedCallback& callback) override; 56 const NotifyWhenFinishedCallback& callback) override;
60 57
(...skipping 24 matching lines...) Expand all
85 BackgroundSyncRegistrationHandle::HandleId> active_handles_; 82 BackgroundSyncRegistrationHandle::HandleId> active_handles_;
86 83
87 base::WeakPtrFactory<BackgroundSyncServiceImpl> weak_ptr_factory_; 84 base::WeakPtrFactory<BackgroundSyncServiceImpl> weak_ptr_factory_;
88 85
89 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncServiceImpl); 86 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncServiceImpl);
90 }; 87 };
91 88
92 } // namespace content 89 } // namespace content
93 90
94 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_SERVICE_IMPL_H_ 91 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698