| 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 #include "components/sync_driver/data_type_controller.h" | 5 #include "components/sync_driver/data_type_controller.h" |
| 6 | 6 |
| 7 #include "sync/internal_api/public/base/model_type.h" | 7 #include "sync/internal_api/public/base/model_type.h" |
| 8 #include "sync/internal_api/public/user_share.h" | 8 #include "sync/internal_api/public/user_share.h" |
| 9 #include "sync/util/data_type_histogram.h" | 9 #include "sync/util/data_type_histogram.h" |
| 10 | 10 |
| 11 namespace browser_sync { | 11 namespace sync_driver { |
| 12 | 12 |
| 13 DataTypeController::DataTypeController( | 13 DataTypeController::DataTypeController( |
| 14 scoped_refptr<base::MessageLoopProxy> ui_thread, | 14 scoped_refptr<base::MessageLoopProxy> ui_thread, |
| 15 const base::Closure& error_callback, | 15 const base::Closure& error_callback, |
| 16 const DisableTypeCallback& disable_callback) | 16 const DisableTypeCallback& disable_callback) |
| 17 : base::RefCountedDeleteOnMessageLoop<DataTypeController>(ui_thread), | 17 : base::RefCountedDeleteOnMessageLoop<DataTypeController>(ui_thread), |
| 18 error_callback_(error_callback), | 18 error_callback_(error_callback), |
| 19 disable_callback_(disable_callback), | 19 disable_callback_(disable_callback), |
| 20 user_share_(NULL) { | 20 user_share_(NULL) { |
| 21 } | 21 } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 DataTypeController::DisableTypeCallback | 54 DataTypeController::DisableTypeCallback |
| 55 DataTypeController::disable_callback() { | 55 DataTypeController::disable_callback() { |
| 56 return disable_callback_; | 56 return disable_callback_; |
| 57 } | 57 } |
| 58 | 58 |
| 59 bool DataTypeController::ReadyForStart() const { | 59 bool DataTypeController::ReadyForStart() const { |
| 60 return true; | 60 return true; |
| 61 } | 61 } |
| 62 | 62 |
| 63 } // namespace browser_sync | 63 } // namespace sync_driver |
| OLD | NEW |