| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TEST_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
| 6 #define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& | 124 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& |
| 125 debug_info_listener, | 125 debug_info_listener, |
| 126 bool success) OVERRIDE; | 126 bool success) OVERRIDE; |
| 127 | 127 |
| 128 virtual void OnConfigureDone( | 128 virtual void OnConfigureDone( |
| 129 const browser_sync::DataTypeManager::ConfigureResult& result) OVERRIDE; | 129 const browser_sync::DataTypeManager::ConfigureResult& result) OVERRIDE; |
| 130 | 130 |
| 131 // We implement our own version to avoid some DCHECKs. | 131 // We implement our own version to avoid some DCHECKs. |
| 132 virtual syncer::UserShare* GetUserShare() const OVERRIDE; | 132 virtual syncer::UserShare* GetUserShare() const OVERRIDE; |
| 133 | 133 |
| 134 static ProfileKeyedService* BuildAutoStartAsyncInit(Profile* profile); | 134 static ProfileKeyedService* BuildAutoStartAsyncInit( |
| 135 content::BrowserContext* profile); |
| 135 | 136 |
| 136 ProfileSyncComponentsFactoryMock* components_factory_mock(); | 137 ProfileSyncComponentsFactoryMock* components_factory_mock(); |
| 137 | 138 |
| 138 // If this is called, configuring data types will require a syncer | 139 // If this is called, configuring data types will require a syncer |
| 139 // nudge. | 140 // nudge. |
| 140 void dont_set_initial_sync_ended_on_init(); | 141 void dont_set_initial_sync_ended_on_init(); |
| 141 void set_synchronous_sync_configuration(); | 142 void set_synchronous_sync_configuration(); |
| 142 | 143 |
| 143 // Fails initial download until a new auth token is provided. | 144 // Fails initial download until a new auth token is provided. |
| 144 void fail_initial_download(); | 145 void fail_initial_download(); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 172 bool synchronous_sync_configuration_; | 173 bool synchronous_sync_configuration_; |
| 173 | 174 |
| 174 base::Closure callback_; | 175 base::Closure callback_; |
| 175 bool set_initial_sync_ended_on_init_; | 176 bool set_initial_sync_ended_on_init_; |
| 176 | 177 |
| 177 bool fail_initial_download_; | 178 bool fail_initial_download_; |
| 178 syncer::StorageOption storage_option_; | 179 syncer::StorageOption storage_option_; |
| 179 }; | 180 }; |
| 180 | 181 |
| 181 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 182 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |