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

Side by Side Diff: components/sync_driver/local_device_info_provider.h

Issue 597423002: Device info datatype should be moved to components/sync_driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor CR feedback addressed. Created 6 years, 2 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
« no previous file with comments | « components/sync_driver/device_info_tracker.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_SYNC_GLUE_LOCAL_DEVICE_INFO_PROVIDER_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_H_
6 #define CHROME_BROWSER_SYNC_GLUE_LOCAL_DEVICE_INFO_PROVIDER_H_ 6 #define COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 #include "base/callback_list.h" 9 #include "base/callback_list.h"
10 10
11 namespace browser_sync { 11 namespace sync_driver {
12 12
13 class DeviceInfo; 13 class DeviceInfo;
14 14
15 // Interface for providing sync specific informaiton about the 15 // Interface for providing sync specific informaiton about the
16 // local device. 16 // local device.
17 class LocalDeviceInfoProvider { 17 class LocalDeviceInfoProvider {
18 public: 18 public:
19 typedef base::CallbackList<void(void)>::Subscription Subscription; 19 typedef base::CallbackList<void(void)>::Subscription Subscription;
20 20
21 virtual ~LocalDeviceInfoProvider() {} 21 virtual ~LocalDeviceInfoProvider() {}
(...skipping 16 matching lines...) Expand all
38 const std::string& signin_scoped_device_id) = 0; 38 const std::string& signin_scoped_device_id) = 0;
39 39
40 // Registers a callback to be called when local device info becomes available. 40 // Registers a callback to be called when local device info becomes available.
41 // The callback will remain registered until the 41 // The callback will remain registered until the
42 // returned Subscription is destroyed, which must occur before the 42 // returned Subscription is destroyed, which must occur before the
43 // CallbackList is destroyed. 43 // CallbackList is destroyed.
44 virtual scoped_ptr<Subscription> RegisterOnInitializedCallback( 44 virtual scoped_ptr<Subscription> RegisterOnInitializedCallback(
45 const base::Closure& callback) = 0; 45 const base::Closure& callback) = 0;
46 }; 46 };
47 47
48 } // namespace browser_sync 48 } // namespace sync_driver
49 49
50 #endif // CHROME_BROWSER_SYNC_GLUE_LOCAL_DEVICE_INFO_PROVIDER_H_ 50 #endif // COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_H_
OLDNEW
« no previous file with comments | « components/sync_driver/device_info_tracker.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698