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