Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Side by Side Diff: sync/internal_api/sync_manager_impl.cc

Issue 130193002: sync: Consistently refcount ModelSafeWorkers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix standalone sync client Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/internal_api/sync_manager_impl.h ('k') | sync/internal_api/sync_manager_impl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « sync/internal_api/sync_manager_impl.h ('k') | sync/internal_api/sync_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698