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_IMPL_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 // |sync_context_proxy| points to an object owned by the SyncManager. | 172 // |sync_context_proxy| points to an object owned by the SyncManager. |
173 // Ownership is not transferred, but we can obtain our own copy of the object | 173 // Ownership is not transferred, but we can obtain our own copy of the object |
174 // using its Clone() method. | 174 // using its Clone() method. |
175 virtual void HandleInitializationSuccessOnFrontendLoop( | 175 virtual void HandleInitializationSuccessOnFrontendLoop( |
176 const syncer::WeakHandle<syncer::JsBackend> js_backend, | 176 const syncer::WeakHandle<syncer::JsBackend> js_backend, |
177 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener> | 177 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener> |
178 debug_info_listener, | 178 debug_info_listener, |
179 syncer::SyncContextProxy* sync_context_proxy, | 179 syncer::SyncContextProxy* sync_context_proxy, |
180 const std::string& cache_guid); | 180 const std::string& cache_guid); |
181 | 181 |
182 // Downloading of control types failed and will be retried. Invokes the | |
183 // frontend's sync configure retry method. | |
184 void HandleControlTypesDownloadRetry(); | |
185 | |
186 // Forwards a ProtocolEvent to the frontend. Will not be called unless a | 182 // Forwards a ProtocolEvent to the frontend. Will not be called unless a |
187 // call to SetForwardProtocolEvents() explicitly requested that we start | 183 // call to SetForwardProtocolEvents() explicitly requested that we start |
188 // forwarding these events. | 184 // forwarding these events. |
189 void HandleProtocolEventOnFrontendLoop(syncer::ProtocolEvent* event); | 185 void HandleProtocolEventOnFrontendLoop(syncer::ProtocolEvent* event); |
190 | 186 |
191 // Forwards a directory commit counter update to the frontend loop. Will not | 187 // Forwards a directory commit counter update to the frontend loop. Will not |
192 // be called unless a call to EnableDirectoryTypeDebugInfoForwarding() | 188 // be called unless a call to EnableDirectoryTypeDebugInfoForwarding() |
193 // explicitly requested that we start forwarding these events. | 189 // explicitly requested that we start forwarding these events. |
194 void HandleDirectoryCommitCountersUpdatedOnFrontendLoop( | 190 void HandleDirectoryCommitCountersUpdatedOnFrontendLoop( |
195 syncer::ModelType type, | 191 syncer::ModelType type, |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 | 361 |
366 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; | 362 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; |
367 | 363 |
368 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); | 364 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); |
369 }; | 365 }; |
370 | 366 |
371 } // namespace browser_sync | 367 } // namespace browser_sync |
372 | 368 |
373 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ | 369 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
374 | 370 |
OLD | NEW |