| 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_PROXY_DATA_TYPE_CONTROLLER_H__ | 5 #ifndef COMPONENTS_SYNC_DRIVER_PROXY_DATA_TYPE_CONTROLLER_H__ |
| 6 #define COMPONENTS_SYNC_DRIVER_PROXY_DATA_TYPE_CONTROLLER_H__ | 6 #define COMPONENTS_SYNC_DRIVER_PROXY_DATA_TYPE_CONTROLLER_H__ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "components/sync_driver/data_type_controller.h" | 10 #include "components/sync_driver/data_type_controller.h" |
| 11 | 11 |
| 12 namespace browser_sync { | 12 namespace sync_driver { |
| 13 | 13 |
| 14 // Implementation for proxy datatypes. These are datatype that have no | 14 // Implementation for proxy datatypes. These are datatype that have no |
| 15 // representation in sync, and therefore no change processor or syncable | 15 // representation in sync, and therefore no change processor or syncable |
| 16 // service. | 16 // service. |
| 17 class ProxyDataTypeController : public DataTypeController { | 17 class ProxyDataTypeController : public DataTypeController { |
| 18 public: | 18 public: |
| 19 explicit ProxyDataTypeController( | 19 explicit ProxyDataTypeController( |
| 20 scoped_refptr<base::MessageLoopProxy> ui_thread, | 20 scoped_refptr<base::MessageLoopProxy> ui_thread, |
| 21 syncer::ModelType type); | 21 syncer::ModelType type); |
| 22 | 22 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 State state_; | 47 State state_; |
| 48 | 48 |
| 49 // The actual type for this controller. | 49 // The actual type for this controller. |
| 50 syncer::ModelType type_; | 50 syncer::ModelType type_; |
| 51 | 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(ProxyDataTypeController); | 52 DISALLOW_COPY_AND_ASSIGN(ProxyDataTypeController); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace browser_sync | 55 } // namespace sync_driver |
| 56 | 56 |
| 57 #endif // COMPONENTS_SYNC_DRIVER_PROXY_DATA_TYPE_CONTROLLER_H__ | 57 #endif // COMPONENTS_SYNC_DRIVER_PROXY_DATA_TYPE_CONTROLLER_H__ |
| OLD | NEW |