| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 virtual bool SetDecryptionPassphrase( | 50 virtual bool SetDecryptionPassphrase( |
| 51 const std::string& passphrase) OVERRIDE; | 51 const std::string& passphrase) OVERRIDE; |
| 52 | 52 |
| 53 virtual void StopSyncingForShutdown() OVERRIDE; | 53 virtual void StopSyncingForShutdown() OVERRIDE; |
| 54 | 54 |
| 55 virtual scoped_ptr<base::Thread> Shutdown(ShutdownOption option) OVERRIDE; | 55 virtual scoped_ptr<base::Thread> Shutdown(ShutdownOption option) OVERRIDE; |
| 56 | 56 |
| 57 virtual void UnregisterInvalidationIds() OVERRIDE; | 57 virtual void UnregisterInvalidationIds() OVERRIDE; |
| 58 | 58 |
| 59 virtual void SetPreferredNonBlockingTypes( |
| 60 syncer::ModelTypeSet types) OVERRIDE; |
| 61 |
| 59 virtual void ConfigureDataTypes( | 62 virtual void ConfigureDataTypes( |
| 60 syncer::ConfigureReason reason, | 63 syncer::ConfigureReason reason, |
| 61 const DataTypeConfigStateMap& config_state_map, | 64 const DataTypeConfigStateMap& config_state_map, |
| 62 const base::Callback<void(syncer::ModelTypeSet, | 65 const base::Callback<void(syncer::ModelTypeSet, |
| 63 syncer::ModelTypeSet)>& ready_task, | 66 syncer::ModelTypeSet)>& ready_task, |
| 64 const base::Callback<void()>& retry_callback) OVERRIDE; | 67 const base::Callback<void()>& retry_callback) OVERRIDE; |
| 65 | 68 |
| 66 virtual void EnableEncryptEverything() OVERRIDE; | 69 virtual void EnableEncryptEverything() OVERRIDE; |
| 67 | 70 |
| 68 virtual void ActivateDataType( | 71 virtual void ActivateDataType( |
| 69 syncer::ModelType type, syncer::ModelSafeGroup group, | 72 syncer::ModelType type, syncer::ModelSafeGroup group, |
| 70 ChangeProcessor* change_processor) OVERRIDE; | 73 ChangeProcessor* change_processor) OVERRIDE; |
| 71 virtual void DeactivateDataType(syncer::ModelType type) OVERRIDE; | 74 virtual void DeactivateDataType(syncer::ModelType type) OVERRIDE; |
| 72 | 75 |
| 73 virtual syncer::UserShare* GetUserShare() const OVERRIDE; | 76 virtual syncer::UserShare* GetUserShare() const OVERRIDE; |
| 74 | 77 |
| 78 virtual syncer::SyncCoreProxy GetSyncCoreProxy() OVERRIDE; |
| 79 |
| 75 virtual Status GetDetailedStatus() OVERRIDE; | 80 virtual Status GetDetailedStatus() OVERRIDE; |
| 76 | 81 |
| 77 virtual syncer::sessions::SyncSessionSnapshot | 82 virtual syncer::sessions::SyncSessionSnapshot |
| 78 GetLastSessionSnapshot() const OVERRIDE; | 83 GetLastSessionSnapshot() const OVERRIDE; |
| 79 | 84 |
| 80 virtual bool HasUnsyncedItems() const OVERRIDE; | 85 virtual bool HasUnsyncedItems() const OVERRIDE; |
| 81 | 86 |
| 82 virtual bool IsNigoriEnabled() const OVERRIDE; | 87 virtual bool IsNigoriEnabled() const OVERRIDE; |
| 83 | 88 |
| 84 virtual syncer::PassphraseType GetPassphraseType() const OVERRIDE; | 89 virtual syncer::PassphraseType GetPassphraseType() const OVERRIDE; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 99 | 104 |
| 100 void set_fail_initial_download(bool should_fail); | 105 void set_fail_initial_download(bool should_fail); |
| 101 | 106 |
| 102 private: | 107 private: |
| 103 bool fail_initial_download_; | 108 bool fail_initial_download_; |
| 104 }; | 109 }; |
| 105 | 110 |
| 106 } // namespace browser_sync | 111 } // namespace browser_sync |
| 107 | 112 |
| 108 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ | 113 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ |
| OLD | NEW |