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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 bool is_explicit) override; | 46 bool is_explicit) override; |
47 | 47 |
48 bool SetDecryptionPassphrase(const std::string& passphrase) override; | 48 bool SetDecryptionPassphrase(const std::string& passphrase) override; |
49 | 49 |
50 void StopSyncingForShutdown() override; | 50 void StopSyncingForShutdown() override; |
51 | 51 |
52 scoped_ptr<base::Thread> Shutdown(syncer::ShutdownReason reason) override; | 52 scoped_ptr<base::Thread> Shutdown(syncer::ShutdownReason reason) override; |
53 | 53 |
54 void UnregisterInvalidationIds() override; | 54 void UnregisterInvalidationIds() override; |
55 | 55 |
56 void ConfigureDataTypes( | 56 syncer::ModelTypeSet ConfigureDataTypes( |
57 syncer::ConfigureReason reason, | 57 syncer::ConfigureReason reason, |
58 const DataTypeConfigStateMap& config_state_map, | 58 const DataTypeConfigStateMap& config_state_map, |
59 const base::Callback<void(syncer::ModelTypeSet, syncer::ModelTypeSet)>& | 59 const base::Callback<void(syncer::ModelTypeSet, syncer::ModelTypeSet)>& |
60 ready_task, | 60 ready_task, |
61 const base::Callback<void()>& retry_callback) override; | 61 const base::Callback<void()>& retry_callback) override; |
62 | 62 |
63 void EnableEncryptEverything() override; | 63 void EnableEncryptEverything() override; |
64 | 64 |
65 void ActivateDataType( | 65 void ActivateDataType( |
66 syncer::ModelType type, | 66 syncer::ModelType type, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 void set_fail_initial_download(bool should_fail); | 108 void set_fail_initial_download(bool should_fail); |
109 | 109 |
110 private: | 110 private: |
111 bool fail_initial_download_; | 111 bool fail_initial_download_; |
112 }; | 112 }; |
113 | 113 |
114 } // namespace browser_sync | 114 } // namespace browser_sync |
115 | 115 |
116 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ | 116 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ |
OLD | NEW |