| 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_LOCAL_DEVICE_INFO_PROVIDER_IMPL_H_ | 5 #ifndef COMPONENTS_SYNC_DEVICE_INFO_LOCAL_DEVICE_INFO_PROVIDER_IMPL_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_IMPL_H_ | 6 #define COMPONENTS_SYNC_DEVICE_INFO_LOCAL_DEVICE_INFO_PROVIDER_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/macros.h" | 11 #include "base/macros.h" |
| 11 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 12 #include "base/threading/non_thread_safe.h" | 13 #include "base/threading/non_thread_safe.h" |
| 13 #include "components/sync/driver/device_info.h" | 14 #include "components/sync/device_info/device_info.h" |
| 14 #include "components/sync/driver/local_device_info_provider.h" | 15 #include "components/sync/device_info/local_device_info_provider.h" |
| 15 #include "components/version_info/version_info.h" | 16 #include "components/version_info/version_info.h" |
| 16 | 17 |
| 17 namespace browser_sync { | 18 namespace browser_sync { |
| 18 | 19 |
| 19 class LocalDeviceInfoProviderImpl : public sync_driver::LocalDeviceInfoProvider, | 20 class LocalDeviceInfoProviderImpl : public sync_driver::LocalDeviceInfoProvider, |
| 20 public base::NonThreadSafe { | 21 public base::NonThreadSafe { |
| 21 public: | 22 public: |
| 22 LocalDeviceInfoProviderImpl(version_info::Channel channel, | 23 LocalDeviceInfoProviderImpl(version_info::Channel channel, |
| 23 const std::string& version, | 24 const std::string& version, |
| 24 bool is_tablet); | 25 bool is_tablet); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 54 std::string cache_guid_; | 55 std::string cache_guid_; |
| 55 std::unique_ptr<sync_driver::DeviceInfo> local_device_info_; | 56 std::unique_ptr<sync_driver::DeviceInfo> local_device_info_; |
| 56 base::CallbackList<void(void)> callback_list_; | 57 base::CallbackList<void(void)> callback_list_; |
| 57 base::WeakPtrFactory<LocalDeviceInfoProviderImpl> weak_factory_; | 58 base::WeakPtrFactory<LocalDeviceInfoProviderImpl> weak_factory_; |
| 58 | 59 |
| 59 DISALLOW_COPY_AND_ASSIGN(LocalDeviceInfoProviderImpl); | 60 DISALLOW_COPY_AND_ASSIGN(LocalDeviceInfoProviderImpl); |
| 60 }; | 61 }; |
| 61 | 62 |
| 62 } // namespace browser_sync | 63 } // namespace browser_sync |
| 63 | 64 |
| 64 #endif // COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_IMPL_H_ | 65 #endif // COMPONENTS_SYNC_DEVICE_INFO_LOCAL_DEVICE_INFO_PROVIDER_IMPL_H_ |
| OLD | NEW |