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

Side by Side Diff: components/sync_driver/fake_sync_service.h

Issue 1310553005: [Sync] Replace ProfileSyncComponentsFactory with SyncClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review Created 5 years, 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_
6 #define COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_ 6 #define COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_
7 7
8 #include "components/sync_driver/sync_service.h" 8 #include "components/sync_driver/sync_service.h"
9 #include "google_apis/gaia/google_service_auth_error.h" 9 #include "google_apis/gaia/google_service_auth_error.h"
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 bool setup_in_progress() const override; 44 bool setup_in_progress() const override;
45 bool ConfigurationDone() const override; 45 bool ConfigurationDone() const override;
46 const GoogleServiceAuthError& GetAuthError() const override; 46 const GoogleServiceAuthError& GetAuthError() const override;
47 bool HasUnrecoverableError() const override; 47 bool HasUnrecoverableError() const override;
48 bool backend_initialized() const override; 48 bool backend_initialized() const override;
49 OpenTabsUIDelegate* GetOpenTabsUIDelegate() override; 49 OpenTabsUIDelegate* GetOpenTabsUIDelegate() override;
50 bool IsPassphraseRequiredForDecryption() const override; 50 bool IsPassphraseRequiredForDecryption() const override;
51 base::Time GetExplicitPassphraseTime() const override; 51 base::Time GetExplicitPassphraseTime() const override;
52 bool IsUsingSecondaryPassphrase() const override; 52 bool IsUsingSecondaryPassphrase() const override;
53 void EnableEncryptEverything() override; 53 void EnableEncryptEverything() override;
54 bool EncryptEverythingEnabled() const override;
54 void SetEncryptionPassphrase(const std::string& passphrase, 55 void SetEncryptionPassphrase(const std::string& passphrase,
55 PassphraseType type) override; 56 PassphraseType type) override;
56 bool SetDecryptionPassphrase(const std::string& passphrase) override; 57 bool SetDecryptionPassphrase(const std::string& passphrase) override;
57 bool IsCryptographerReady( 58 bool IsCryptographerReady(
58 const syncer::BaseTransaction* trans) const override; 59 const syncer::BaseTransaction* trans) const override;
59 syncer::UserShare* GetUserShare() const override; 60 syncer::UserShare* GetUserShare() const override;
61 LocalDeviceInfoProvider* GetLocalDeviceInfoProvider() const override;
62 void RegisterDataTypeController(
63 sync_driver::DataTypeController* data_type_controller) override;
64 void ReenableDatatype(syncer::ModelType type) override;
65 void DeactivateDataType(syncer::ModelType type) override;
60 66
61 // DataTypeEncryptionHandler: 67 // DataTypeEncryptionHandler:
62 bool IsPassphraseRequired() const override; 68 bool IsPassphraseRequired() const override;
63 syncer::ModelTypeSet GetEncryptedDataTypes() const override; 69 syncer::ModelTypeSet GetEncryptedDataTypes() const override;
64 70
65 GoogleServiceAuthError error_; 71 GoogleServiceAuthError error_;
66 }; 72 };
67 73
68 } // namespace sync_driver 74 } // namespace sync_driver
69 75
70 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_ 76 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698