OLD | NEW |
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 COMPONENTS_SYNC_DRIVER_DEVICE_INFO_DATA_TYPE_CONTROLLER_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_DEVICE_INFO_DATA_TYPE_CONTROLLER_H_ |
6 #define COMPONENTS_SYNC_DRIVER_DEVICE_INFO_DATA_TYPE_CONTROLLER_H_ | 6 #define COMPONENTS_SYNC_DRIVER_DEVICE_INFO_DATA_TYPE_CONTROLLER_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
9 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
10 #include "components/sync_driver/local_device_info_provider.h" | 11 #include "components/sync_driver/local_device_info_provider.h" |
11 #include "components/sync_driver/ui_data_type_controller.h" | 12 #include "components/sync_driver/ui_data_type_controller.h" |
12 | 13 |
13 namespace sync_driver { | 14 namespace sync_driver { |
14 | 15 |
15 // DataTypeController for DEVICE_INFO model type. | 16 // DataTypeController for DEVICE_INFO model type. |
16 class DeviceInfoDataTypeController : public UIDataTypeController { | 17 class DeviceInfoDataTypeController : public UIDataTypeController { |
17 public: | 18 public: |
(...skipping 15 matching lines...) Expand all Loading... |
33 void OnLocalDeviceInfoLoaded(); | 34 void OnLocalDeviceInfoLoaded(); |
34 | 35 |
35 LocalDeviceInfoProvider* const local_device_info_provider_; | 36 LocalDeviceInfoProvider* const local_device_info_provider_; |
36 scoped_ptr<LocalDeviceInfoProvider::Subscription> subscription_; | 37 scoped_ptr<LocalDeviceInfoProvider::Subscription> subscription_; |
37 DISALLOW_COPY_AND_ASSIGN(DeviceInfoDataTypeController); | 38 DISALLOW_COPY_AND_ASSIGN(DeviceInfoDataTypeController); |
38 }; | 39 }; |
39 | 40 |
40 } // namespace sync_driver | 41 } // namespace sync_driver |
41 | 42 |
42 #endif // COMPONENTS_SYNC_DRIVER_DEVICE_INFO_DATA_TYPE_CONTROLLER_H_ | 43 #endif // COMPONENTS_SYNC_DRIVER_DEVICE_INFO_DATA_TYPE_CONTROLLER_H_ |
OLD | NEW |