OLD | NEW |
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 <string> | 8 #include <string> |
9 | 9 |
10 #include "components/sync_driver/sync_service.h" | 10 #include "components/sync_driver/sync_service.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 void OnDataTypeRequestsSyncStartup(syncer::ModelType type) override; | 38 void OnDataTypeRequestsSyncStartup(syncer::ModelType type) override; |
39 bool CanSyncStart() const override; | 39 bool CanSyncStart() const override; |
40 void RequestStop( | 40 void RequestStop( |
41 sync_driver::SyncService::SyncStopDataFate data_fate) override; | 41 sync_driver::SyncService::SyncStopDataFate data_fate) override; |
42 void RequestStart() override; | 42 void RequestStart() override; |
43 syncer::ModelTypeSet GetPreferredDataTypes() const override; | 43 syncer::ModelTypeSet GetPreferredDataTypes() const override; |
44 void OnUserChoseDatatypes(bool sync_everything, | 44 void OnUserChoseDatatypes(bool sync_everything, |
45 syncer::ModelTypeSet chosen_types) override; | 45 syncer::ModelTypeSet chosen_types) override; |
46 void SetFirstSetupComplete() override; | 46 void SetFirstSetupComplete() override; |
47 bool IsFirstSetupInProgress() const override; | 47 bool IsFirstSetupInProgress() const override; |
48 std::unique_ptr<SyncSetupInProgressHandle> GetSetupInProgressHandle() | 48 void SetSetupInProgress(bool setup_in_progress) override; |
49 override; | |
50 bool IsSetupInProgress() const override; | 49 bool IsSetupInProgress() const override; |
51 bool ConfigurationDone() const override; | 50 bool ConfigurationDone() const override; |
52 const GoogleServiceAuthError& GetAuthError() const override; | 51 const GoogleServiceAuthError& GetAuthError() const override; |
53 bool HasUnrecoverableError() const override; | 52 bool HasUnrecoverableError() const override; |
54 bool IsBackendInitialized() const override; | 53 bool IsBackendInitialized() const override; |
55 OpenTabsUIDelegate* GetOpenTabsUIDelegate() override; | 54 OpenTabsUIDelegate* GetOpenTabsUIDelegate() override; |
56 bool IsPassphraseRequiredForDecryption() const override; | 55 bool IsPassphraseRequiredForDecryption() const override; |
57 base::Time GetExplicitPassphraseTime() const override; | 56 base::Time GetExplicitPassphraseTime() const override; |
58 bool IsUsingSecondaryPassphrase() const override; | 57 bool IsUsingSecondaryPassphrase() const override; |
59 void EnableEncryptEverything() override; | 58 void EnableEncryptEverything() override; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 95 |
97 GoogleServiceAuthError error_; | 96 GoogleServiceAuthError error_; |
98 GURL sync_service_url_; | 97 GURL sync_service_url_; |
99 std::string unrecoverable_error_message_; | 98 std::string unrecoverable_error_message_; |
100 std::unique_ptr<syncer::UserShare> user_share_; | 99 std::unique_ptr<syncer::UserShare> user_share_; |
101 }; | 100 }; |
102 | 101 |
103 } // namespace sync_driver | 102 } // namespace sync_driver |
104 | 103 |
105 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_ | 104 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_ |
OLD | NEW |