OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "sync/internal_api/sync_manager_impl.h" | 5 #include "sync/internal_api/sync_manager_impl.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 scheduler_->ScheduleConfiguration(params); | 338 scheduler_->ScheduleConfiguration(params); |
339 } | 339 } |
340 | 340 |
341 void SyncManagerImpl::Init( | 341 void SyncManagerImpl::Init( |
342 const base::FilePath& database_location, | 342 const base::FilePath& database_location, |
343 const WeakHandle<JsEventHandler>& event_handler, | 343 const WeakHandle<JsEventHandler>& event_handler, |
344 const std::string& sync_server_and_path, | 344 const std::string& sync_server_and_path, |
345 int port, | 345 int port, |
346 bool use_ssl, | 346 bool use_ssl, |
347 scoped_ptr<HttpPostProviderFactory> post_factory, | 347 scoped_ptr<HttpPostProviderFactory> post_factory, |
348 const std::vector<ModelSafeWorker*>& workers, | 348 const std::vector<scoped_refptr<ModelSafeWorker> >& workers, |
349 ExtensionsActivity* extensions_activity, | 349 ExtensionsActivity* extensions_activity, |
350 SyncManager::ChangeDelegate* change_delegate, | 350 SyncManager::ChangeDelegate* change_delegate, |
351 const SyncCredentials& credentials, | 351 const SyncCredentials& credentials, |
352 const std::string& invalidator_client_id, | 352 const std::string& invalidator_client_id, |
353 const std::string& restored_key_for_bootstrapping, | 353 const std::string& restored_key_for_bootstrapping, |
354 const std::string& restored_keystore_key_for_bootstrapping, | 354 const std::string& restored_keystore_key_for_bootstrapping, |
355 InternalComponentsFactory* internal_components_factory, | 355 InternalComponentsFactory* internal_components_factory, |
356 Encryptor* encryptor, | 356 Encryptor* encryptor, |
357 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler, | 357 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler, |
358 ReportUnrecoverableErrorFunction report_unrecoverable_error_function, | 358 ReportUnrecoverableErrorFunction report_unrecoverable_error_function, |
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1338 int SyncManagerImpl::GetDefaultNudgeDelay() { | 1338 int SyncManagerImpl::GetDefaultNudgeDelay() { |
1339 return kDefaultNudgeDelayMilliseconds; | 1339 return kDefaultNudgeDelayMilliseconds; |
1340 } | 1340 } |
1341 | 1341 |
1342 // static. | 1342 // static. |
1343 int SyncManagerImpl::GetPreferencesNudgeDelay() { | 1343 int SyncManagerImpl::GetPreferencesNudgeDelay() { |
1344 return kPreferencesNudgeDelayMilliseconds; | 1344 return kPreferencesNudgeDelayMilliseconds; |
1345 } | 1345 } |
1346 | 1346 |
1347 } // namespace syncer | 1347 } // namespace syncer |
OLD | NEW |