| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 virtual void SetEncryptionPassphrase( | 46 virtual void SetEncryptionPassphrase( |
| 47 const std::string& passphrase, | 47 const std::string& passphrase, |
| 48 bool is_explicit) OVERRIDE; | 48 bool is_explicit) OVERRIDE; |
| 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(syncer::ShutdownReason reason) |
| 56 OVERRIDE; |
| 56 | 57 |
| 57 virtual void UnregisterInvalidationIds() OVERRIDE; | 58 virtual void UnregisterInvalidationIds() OVERRIDE; |
| 58 | 59 |
| 59 virtual void ConfigureDataTypes( | 60 virtual void ConfigureDataTypes( |
| 60 syncer::ConfigureReason reason, | 61 syncer::ConfigureReason reason, |
| 61 const DataTypeConfigStateMap& config_state_map, | 62 const DataTypeConfigStateMap& config_state_map, |
| 62 const base::Callback<void(syncer::ModelTypeSet, | 63 const base::Callback<void(syncer::ModelTypeSet, |
| 63 syncer::ModelTypeSet)>& ready_task, | 64 syncer::ModelTypeSet)>& ready_task, |
| 64 const base::Callback<void()>& retry_callback) OVERRIDE; | 65 const base::Callback<void()>& retry_callback) OVERRIDE; |
| 65 | 66 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 111 |
| 111 void set_fail_initial_download(bool should_fail); | 112 void set_fail_initial_download(bool should_fail); |
| 112 | 113 |
| 113 private: | 114 private: |
| 114 bool fail_initial_download_; | 115 bool fail_initial_download_; |
| 115 }; | 116 }; |
| 116 | 117 |
| 117 } // namespace browser_sync | 118 } // namespace browser_sync |
| 118 | 119 |
| 119 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ | 120 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ |
| OLD | NEW |