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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 syncer::ModelTypeSet ConfigureDataTypes( | 61 syncer::ModelTypeSet ConfigureDataTypes( |
62 syncer::ConfigureReason reason, | 62 syncer::ConfigureReason reason, |
63 const DataTypeConfigStateMap& config_state_map, | 63 const DataTypeConfigStateMap& config_state_map, |
64 const base::Callback<void(syncer::ModelTypeSet, syncer::ModelTypeSet)>& | 64 const base::Callback<void(syncer::ModelTypeSet, syncer::ModelTypeSet)>& |
65 ready_task, | 65 ready_task, |
66 const base::Callback<void()>& retry_callback) override; | 66 const base::Callback<void()>& retry_callback) override; |
67 | 67 |
68 void EnableEncryptEverything() override; | 68 void EnableEncryptEverything() override; |
69 | 69 |
70 void ActivateDataType( | 70 void ActivateDirectoryDataType( |
71 syncer::ModelType type, | 71 syncer::ModelType type, |
72 syncer::ModelSafeGroup group, | 72 syncer::ModelSafeGroup group, |
73 sync_driver::ChangeProcessor* change_processor) override; | 73 sync_driver::ChangeProcessor* change_processor) override; |
74 void DeactivateDataType(syncer::ModelType type) override; | 74 void DeactivateDirectoryDataType(syncer::ModelType type) override; |
| 75 |
| 76 void ActivateNonBlockingDataType( |
| 77 syncer::ModelType type, |
| 78 scoped_ptr<syncer_v2::ActivationContext>) override; |
| 79 void DeactivateNonBlockingDataType(syncer::ModelType type) override; |
75 | 80 |
76 syncer::UserShare* GetUserShare() const override; | 81 syncer::UserShare* GetUserShare() const override; |
77 | 82 |
78 scoped_ptr<syncer_v2::SyncContextProxy> GetSyncContextProxy() override; | 83 scoped_ptr<syncer_v2::SyncContextProxy> GetSyncContextProxy() override; |
79 | 84 |
80 Status GetDetailedStatus() override; | 85 Status GetDetailedStatus() override; |
81 | 86 |
82 syncer::sessions::SyncSessionSnapshot GetLastSessionSnapshot() const override; | 87 syncer::sessions::SyncSessionSnapshot GetLastSessionSnapshot() const override; |
83 | 88 |
84 bool HasUnsyncedItems() const override; | 89 bool HasUnsyncedItems() const override; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 122 |
118 void set_fail_initial_download(bool should_fail); | 123 void set_fail_initial_download(bool should_fail); |
119 | 124 |
120 private: | 125 private: |
121 bool fail_initial_download_; | 126 bool fail_initial_download_; |
122 }; | 127 }; |
123 | 128 |
124 } // namespace browser_sync | 129 } // namespace browser_sync |
125 | 130 |
126 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ | 131 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ |
OLD | NEW |