| 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_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_H_ | 6 #define COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 |
| 9 #include "base/callback_list.h" | 10 #include "base/callback_list.h" |
| 11 #include "base/memory/scoped_ptr.h" |
| 10 | 12 |
| 11 namespace base { | 13 namespace base { |
| 12 class TaskRunner; | 14 class TaskRunner; |
| 13 } | 15 } |
| 14 | 16 |
| 15 namespace sync_driver { | 17 namespace sync_driver { |
| 16 | 18 |
| 17 class DeviceInfo; | 19 class DeviceInfo; |
| 18 | 20 |
| 19 // Interface for providing sync specific information about the | 21 // Interface for providing sync specific information about the |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // The callback will remain registered until the | 53 // The callback will remain registered until the |
| 52 // returned Subscription is destroyed, which must occur before the | 54 // returned Subscription is destroyed, which must occur before the |
| 53 // CallbackList is destroyed. | 55 // CallbackList is destroyed. |
| 54 virtual scoped_ptr<Subscription> RegisterOnInitializedCallback( | 56 virtual scoped_ptr<Subscription> RegisterOnInitializedCallback( |
| 55 const base::Closure& callback) = 0; | 57 const base::Closure& callback) = 0; |
| 56 }; | 58 }; |
| 57 | 59 |
| 58 } // namespace sync_driver | 60 } // namespace sync_driver |
| 59 | 61 |
| 60 #endif // COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_H_ | 62 #endif // COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_H_ |
| OLD | NEW |