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

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

Issue 451743002: Pass args to SyncManager::Init via a struct. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use scoped_ptr instead of raw pointer. Created 6 years, 4 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 public ServerConnectionEventListener, 61 public ServerConnectionEventListener,
62 public syncable::DirectoryChangeDelegate, 62 public syncable::DirectoryChangeDelegate,
63 public SyncEncryptionHandler::Observer, 63 public SyncEncryptionHandler::Observer,
64 public NudgeHandler { 64 public NudgeHandler {
65 public: 65 public:
66 // Create an uninitialized SyncManager. Callers must Init() before using. 66 // Create an uninitialized SyncManager. Callers must Init() before using.
67 explicit SyncManagerImpl(const std::string& name); 67 explicit SyncManagerImpl(const std::string& name);
68 virtual ~SyncManagerImpl(); 68 virtual ~SyncManagerImpl();
69 69
70 // SyncManager implementation. 70 // SyncManager implementation.
71 virtual void Init( 71 virtual void Init(InitArgs* args) OVERRIDE;
72 const base::FilePath& database_location,
73 const WeakHandle<JsEventHandler>& event_handler,
74 const GURL& service_url,
75 scoped_ptr<HttpPostProviderFactory> post_factory,
76 const std::vector<scoped_refptr<ModelSafeWorker> >& workers,
77 ExtensionsActivity* extensions_activity,
78 SyncManager::ChangeDelegate* change_delegate,
79 const SyncCredentials& credentials,
80 const std::string& invalidator_client_id,
81 const std::string& restored_key_for_bootstrapping,
82 const std::string& restored_keystore_key_for_bootstrapping,
83 InternalComponentsFactory* internal_components_factory,
84 Encryptor* encryptor,
85 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler,
86 ReportUnrecoverableErrorFunction report_unrecoverable_error_function,
87 CancelationSignal* cancelation_signal) OVERRIDE;
88 virtual ModelTypeSet InitialSyncEndedTypes() OVERRIDE; 72 virtual ModelTypeSet InitialSyncEndedTypes() OVERRIDE;
89 virtual ModelTypeSet GetTypesWithEmptyProgressMarkerToken( 73 virtual ModelTypeSet GetTypesWithEmptyProgressMarkerToken(
90 ModelTypeSet types) OVERRIDE; 74 ModelTypeSet types) OVERRIDE;
91 virtual bool PurgePartiallySyncedTypes() OVERRIDE; 75 virtual bool PurgePartiallySyncedTypes() OVERRIDE;
92 virtual void UpdateCredentials(const SyncCredentials& credentials) OVERRIDE; 76 virtual void UpdateCredentials(const SyncCredentials& credentials) OVERRIDE;
93 virtual void StartSyncingNormally( 77 virtual void StartSyncingNormally(
94 const ModelSafeRoutingInfo& routing_info) OVERRIDE; 78 const ModelSafeRoutingInfo& routing_info) OVERRIDE;
95 virtual void ConfigureSyncer( 79 virtual void ConfigureSyncer(
96 ConfigureReason reason, 80 ConfigureReason reason,
97 ModelTypeSet to_download, 81 ModelTypeSet to_download,
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; 348 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_;
365 349
366 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; 350 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_;
367 351
368 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); 352 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl);
369 }; 353 };
370 354
371 } // namespace syncer 355 } // namespace syncer
372 356
373 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ 357 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/sync_backup_manager_unittest.cc ('k') | sync/internal_api/sync_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698