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_NON_BLOCKING_DATA_TYPE_CONTROLLER_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_NON_BLOCKING_DATA_TYPE_CONTROLLER_H_ |
6 #define COMPONENTS_SYNC_DRIVER_NON_BLOCKING_DATA_TYPE_CONTROLLER_H_ | 6 #define COMPONENTS_SYNC_DRIVER_NON_BLOCKING_DATA_TYPE_CONTROLLER_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
9 #include "components/sync_driver/data_type_controller.h" | 10 #include "components/sync_driver/data_type_controller.h" |
10 #include "sync/internal_api/public/base/model_type.h" | 11 #include "sync/internal_api/public/base/model_type.h" |
11 | 12 |
12 namespace sync_driver { | 13 namespace sync_driver { |
13 class SyncClient; | 14 class SyncClient; |
14 } | 15 } |
15 | 16 |
16 namespace syncer_v2 { | 17 namespace syncer_v2 { |
17 struct ActivationContext; | 18 struct ActivationContext; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 // Controller receives |activation_context_| from SharedModelTypeProcessor | 108 // Controller receives |activation_context_| from SharedModelTypeProcessor |
108 // callback and must temporarily own it until ActivateDataType is called. | 109 // callback and must temporarily own it until ActivateDataType is called. |
109 scoped_ptr<syncer_v2::ActivationContext> activation_context_; | 110 scoped_ptr<syncer_v2::ActivationContext> activation_context_; |
110 | 111 |
111 DISALLOW_COPY_AND_ASSIGN(NonBlockingDataTypeController); | 112 DISALLOW_COPY_AND_ASSIGN(NonBlockingDataTypeController); |
112 }; | 113 }; |
113 | 114 |
114 } // namespace sync_driver_v2 | 115 } // namespace sync_driver_v2 |
115 | 116 |
116 #endif // COMPONENTS_SYNC_DRIVER_NON_BLOCKING_DATA_TYPE_CONTROLLER_H_ | 117 #endif // COMPONENTS_SYNC_DRIVER_NON_BLOCKING_DATA_TYPE_CONTROLLER_H_ |
OLD | NEW |