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

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

Issue 1316743002: Reland of [Background Sync] Allow sync manager access from uncontrolled clients (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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,
35 const RegisterCallback& callback) override; 36 const RegisterCallback& callback) override;
36 void Unregister(BackgroundSyncPeriodicity periodicity, 37 void Unregister(BackgroundSyncPeriodicity periodicity,
37 int64_t id, 38 int64_t id,
38 const mojo::String& tag, 39 const mojo::String& tag,
39 int64_t sw_registration_id, 40 int64_t sw_registration_id,
40 const UnregisterCallback& callback) override; 41 const UnregisterCallback& callback) override;
41 void GetRegistration(BackgroundSyncPeriodicity periodicity, 42 void GetRegistration(BackgroundSyncPeriodicity periodicity,
42 const mojo::String& tag, 43 const mojo::String& tag,
43 int64_t sw_registration_id, 44 int64_t sw_registration_id,
44 const GetRegistrationCallback& callback) override; 45 const GetRegistrationCallback& callback) override;
(...skipping 24 matching lines...) Expand all
69 mojo::Binding<BackgroundSyncService> binding_; 70 mojo::Binding<BackgroundSyncService> binding_;
70 71
71 base::WeakPtrFactory<BackgroundSyncServiceImpl> weak_ptr_factory_; 72 base::WeakPtrFactory<BackgroundSyncServiceImpl> weak_ptr_factory_;
72 73
73 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncServiceImpl); 74 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncServiceImpl);
74 }; 75 };
75 76
76 } // namespace content 77 } // namespace content
77 78
78 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_SERVICE_IMPL_H_ 79 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698