OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/glue/sync_backend_host_core.h" | 5 #include "components/sync_driver/glue/sync_backend_host_core.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory, | 79 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory, |
80 bool delete_sync_data_folder, | 80 bool delete_sync_data_folder, |
81 const std::string& restored_key_for_bootstrapping, | 81 const std::string& restored_key_for_bootstrapping, |
82 const std::string& restored_keystore_key_for_bootstrapping, | 82 const std::string& restored_keystore_key_for_bootstrapping, |
83 scoped_ptr<syncer::InternalComponentsFactory> internal_components_factory, | 83 scoped_ptr<syncer::InternalComponentsFactory> internal_components_factory, |
84 const syncer::WeakHandle<syncer::UnrecoverableErrorHandler>& | 84 const syncer::WeakHandle<syncer::UnrecoverableErrorHandler>& |
85 unrecoverable_error_handler, | 85 unrecoverable_error_handler, |
86 const base::Closure& report_unrecoverable_error_function, | 86 const base::Closure& report_unrecoverable_error_function, |
87 scoped_ptr<syncer::SyncEncryptionHandler::NigoriState> saved_nigori_state, | 87 scoped_ptr<syncer::SyncEncryptionHandler::NigoriState> saved_nigori_state, |
88 syncer::PassphraseTransitionClearDataOption clear_data_option, | 88 syncer::PassphraseTransitionClearDataOption clear_data_option, |
89 const std::map<syncer::ModelType, int64>& invalidation_versions) | 89 const std::map<syncer::ModelType, int64_t>& invalidation_versions) |
90 : sync_loop(sync_loop), | 90 : sync_loop(sync_loop), |
91 registrar(registrar), | 91 registrar(registrar), |
92 routing_info(routing_info), | 92 routing_info(routing_info), |
93 workers(workers), | 93 workers(workers), |
94 extensions_activity(extensions_activity), | 94 extensions_activity(extensions_activity), |
95 event_handler(event_handler), | 95 event_handler(event_handler), |
96 service_url(service_url), | 96 service_url(service_url), |
97 sync_user_agent(sync_user_agent), | 97 sync_user_agent(sync_user_agent), |
98 http_bridge_factory(http_bridge_factory.Pass()), | 98 http_bridge_factory(http_bridge_factory.Pass()), |
99 credentials(credentials), | 99 credentials(credentials), |
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 | 782 |
783 void SyncBackendHostCore::ClearServerDataDone( | 783 void SyncBackendHostCore::ClearServerDataDone( |
784 const base::Closure& frontend_callback) { | 784 const base::Closure& frontend_callback) { |
785 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); | 785 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); |
786 host_.Call(FROM_HERE, &SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop, | 786 host_.Call(FROM_HERE, &SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop, |
787 frontend_callback); | 787 frontend_callback); |
788 } | 788 } |
789 | 789 |
790 | 790 |
791 } // namespace browser_sync | 791 } // namespace browser_sync |
OLD | NEW |