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

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

Issue 1317813003: Revert of [Background Sync] Allow sync manager access from uncontrolled clients (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 <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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698