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

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

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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef SYNC_INTERNAL_API_SYNC_MANAGER_H_ 5 #ifndef SYNC_INTERNAL_API_SYNC_MANAGER_H_
6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ 6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 virtual ~SyncManagerImpl(); 62 virtual ~SyncManagerImpl();
63 63
64 // SyncManager implementation. 64 // SyncManager implementation.
65 virtual void Init( 65 virtual void Init(
66 const base::FilePath& database_location, 66 const base::FilePath& database_location,
67 const WeakHandle<JsEventHandler>& event_handler, 67 const WeakHandle<JsEventHandler>& event_handler,
68 const std::string& sync_server_and_path, 68 const std::string& sync_server_and_path,
69 int sync_server_port, 69 int sync_server_port,
70 bool use_ssl, 70 bool use_ssl,
71 scoped_ptr<HttpPostProviderFactory> post_factory, 71 scoped_ptr<HttpPostProviderFactory> post_factory,
72 const std::vector<ModelSafeWorker*>& workers, 72 const std::vector<scoped_refptr<ModelSafeWorker> >& workers,
73 ExtensionsActivity* extensions_activity, 73 ExtensionsActivity* extensions_activity,
74 SyncManager::ChangeDelegate* change_delegate, 74 SyncManager::ChangeDelegate* change_delegate,
75 const SyncCredentials& credentials, 75 const SyncCredentials& credentials,
76 const std::string& invalidator_client_id, 76 const std::string& invalidator_client_id,
77 const std::string& restored_key_for_bootstrapping, 77 const std::string& restored_key_for_bootstrapping,
78 const std::string& restored_keystore_key_for_bootstrapping, 78 const std::string& restored_keystore_key_for_bootstrapping,
79 InternalComponentsFactory* internal_components_factory, 79 InternalComponentsFactory* internal_components_factory,
80 Encryptor* encryptor, 80 Encryptor* encryptor,
81 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler, 81 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler,
82 ReportUnrecoverableErrorFunction 82 ReportUnrecoverableErrorFunction
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; 370 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_;
371 371
372 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; 372 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_;
373 373
374 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); 374 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl);
375 }; 375 };
376 376
377 } // namespace syncer 377 } // namespace syncer
378 378
379 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ 379 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/test/test_internal_components_factory.h ('k') | sync/internal_api/sync_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698