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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 const base::Closure& retry_callback) OVERRIDE; | 60 const base::Closure& retry_callback) OVERRIDE; |
61 | 61 |
62 virtual void HandleSyncManagerInitializationOnFrontendLoop( | 62 virtual void HandleSyncManagerInitializationOnFrontendLoop( |
63 const syncer::WeakHandle<syncer::JsBackend>& js_backend, | 63 const syncer::WeakHandle<syncer::JsBackend>& js_backend, |
64 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& | 64 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& |
65 debug_info_listener, | 65 debug_info_listener, |
66 syncer::ModelTypeSet restored_types) OVERRIDE; | 66 syncer::ModelTypeSet restored_types) OVERRIDE; |
67 | 67 |
68 static void SetHistoryServiceExpectations(ProfileMock* profile); | 68 static void SetHistoryServiceExpectations(ProfileMock* profile); |
69 | 69 |
70 void SetInitialSyncEndedForAllTypes(); | |
71 | |
72 void EmitOnInvalidatorStateChange(syncer::InvalidatorState state); | 70 void EmitOnInvalidatorStateChange(syncer::InvalidatorState state); |
73 void EmitOnIncomingInvalidation( | 71 void EmitOnIncomingInvalidation( |
74 const syncer::ObjectIdInvalidationMap& invalidation_map, | 72 const syncer::ObjectIdInvalidationMap& invalidation_map, |
75 const syncer::IncomingInvalidationSource source); | 73 const syncer::IncomingInvalidationSource source); |
76 | 74 |
77 protected: | 75 protected: |
78 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE; | 76 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE; |
79 | 77 |
80 private: | 78 private: |
81 void ContinueInitialization( | 79 void ContinueInitialization( |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 bool synchronous_sync_configuration_; | 172 bool synchronous_sync_configuration_; |
175 | 173 |
176 base::Closure callback_; | 174 base::Closure callback_; |
177 bool set_initial_sync_ended_on_init_; | 175 bool set_initial_sync_ended_on_init_; |
178 | 176 |
179 bool fail_initial_download_; | 177 bool fail_initial_download_; |
180 syncer::StorageOption storage_option_; | 178 syncer::StorageOption storage_option_; |
181 }; | 179 }; |
182 | 180 |
183 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 181 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |