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

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

Issue 15421011: Use OAuth2 token for sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 6 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
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 SyncManager::ChangeDelegate* change_delegate, 75 SyncManager::ChangeDelegate* change_delegate,
76 const SyncCredentials& credentials, 76 const SyncCredentials& credentials,
77 scoped_ptr<Invalidator> invalidator, 77 scoped_ptr<Invalidator> invalidator,
78 const std::string& invalidator_client_id, 78 const std::string& invalidator_client_id,
79 const std::string& restored_key_for_bootstrapping, 79 const std::string& restored_key_for_bootstrapping,
80 const std::string& restored_keystore_key_for_bootstrapping, 80 const std::string& restored_keystore_key_for_bootstrapping,
81 scoped_ptr<InternalComponentsFactory> internal_components_factory, 81 scoped_ptr<InternalComponentsFactory> internal_components_factory,
82 Encryptor* encryptor, 82 Encryptor* encryptor,
83 UnrecoverableErrorHandler* unrecoverable_error_handler, 83 UnrecoverableErrorHandler* unrecoverable_error_handler,
84 ReportUnrecoverableErrorFunction 84 ReportUnrecoverableErrorFunction
85 report_unrecoverable_error_function) OVERRIDE; 85 report_unrecoverable_error_function,
86 bool use_oauth2_token) OVERRIDE;
86 virtual void ThrowUnrecoverableError() OVERRIDE; 87 virtual void ThrowUnrecoverableError() OVERRIDE;
87 virtual ModelTypeSet InitialSyncEndedTypes() OVERRIDE; 88 virtual ModelTypeSet InitialSyncEndedTypes() OVERRIDE;
88 virtual ModelTypeSet GetTypesWithEmptyProgressMarkerToken( 89 virtual ModelTypeSet GetTypesWithEmptyProgressMarkerToken(
89 ModelTypeSet types) OVERRIDE; 90 ModelTypeSet types) OVERRIDE;
90 virtual bool PurgePartiallySyncedTypes() OVERRIDE; 91 virtual bool PurgePartiallySyncedTypes() OVERRIDE;
91 virtual void UpdateCredentials(const SyncCredentials& credentials) OVERRIDE; 92 virtual void UpdateCredentials(const SyncCredentials& credentials) OVERRIDE;
92 virtual void UpdateEnabledTypes(ModelTypeSet enabled_types) OVERRIDE; 93 virtual void UpdateEnabledTypes(ModelTypeSet enabled_types) OVERRIDE;
93 virtual void RegisterInvalidationHandler( 94 virtual void RegisterInvalidationHandler(
94 InvalidationHandler* handler) OVERRIDE; 95 InvalidationHandler* handler) OVERRIDE;
95 virtual void UpdateRegisteredInvalidationIds( 96 virtual void UpdateRegisteredInvalidationIds(
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 // changing passphrases, and in general handles sync-specific interactions 389 // changing passphrases, and in general handles sync-specific interactions
389 // with the cryptographer. 390 // with the cryptographer.
390 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; 391 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_;
391 392
392 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); 393 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl);
393 }; 394 };
394 395
395 } // namespace syncer 396 } // namespace syncer
396 397
397 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ 398 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/test/fake_sync_manager.h ('k') | sync/internal_api/sync_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698