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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 ProfileSyncService::StartBehavior behavior, | 98 ProfileSyncService::StartBehavior behavior, |
99 bool synchronous_backend_initialization, | 99 bool synchronous_backend_initialization, |
100 const base::Closure& callback); | 100 const base::Closure& callback); |
101 | 101 |
102 virtual ~TestProfileSyncService(); | 102 virtual ~TestProfileSyncService(); |
103 | 103 |
104 virtual void OnBackendInitialized( | 104 virtual void OnBackendInitialized( |
105 const syncer::WeakHandle<syncer::JsBackend>& backend, | 105 const syncer::WeakHandle<syncer::JsBackend>& backend, |
106 bool success) OVERRIDE; | 106 bool success) OVERRIDE; |
107 | 107 |
108 virtual void Observe(int type, | 108 virtual void OnConfigureDone() OVERRIDE; |
109 const content::NotificationSource& source, | |
110 const content::NotificationDetails& details) OVERRIDE; | |
111 | 109 |
112 // We implement our own version to avoid some DCHECKs. | 110 // We implement our own version to avoid some DCHECKs. |
113 virtual syncer::UserShare* GetUserShare() const OVERRIDE; | 111 virtual syncer::UserShare* GetUserShare() const OVERRIDE; |
114 | 112 |
115 // If this is called, configuring data types will require a syncer | 113 // If this is called, configuring data types will require a syncer |
116 // nudge. | 114 // nudge. |
117 void dont_set_initial_sync_ended_on_init(); | 115 void dont_set_initial_sync_ended_on_init(); |
118 void set_synchronous_sync_configuration(); | 116 void set_synchronous_sync_configuration(); |
119 | 117 |
120 void fail_initial_download(); | 118 void fail_initial_download(); |
(...skipping 20 matching lines...) Expand all Loading... |
141 bool synchronous_sync_configuration_; | 139 bool synchronous_sync_configuration_; |
142 | 140 |
143 base::Closure callback_; | 141 base::Closure callback_; |
144 bool set_initial_sync_ended_on_init_; | 142 bool set_initial_sync_ended_on_init_; |
145 | 143 |
146 bool fail_initial_download_; | 144 bool fail_initial_download_; |
147 syncer::StorageOption storage_option_; | 145 syncer::StorageOption storage_option_; |
148 }; | 146 }; |
149 | 147 |
150 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 148 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |