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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // Reports backend initialization success. Includes some objects from sync | 170 // Reports backend initialization success. Includes some objects from sync |
171 // manager initialization to be passed back to the UI thread. | 171 // manager initialization to be passed back to the UI thread. |
172 // | 172 // |
173 // |sync_context_proxy| points to an object owned by the SyncManager. | 173 // |sync_context_proxy| points to an object owned by the SyncManager. |
174 // Ownership is not transferred, but we can obtain our own copy of the object | 174 // Ownership is not transferred, but we can obtain our own copy of the object |
175 // using its Clone() method. | 175 // using its Clone() method. |
176 virtual void HandleInitializationSuccessOnFrontendLoop( | 176 virtual void HandleInitializationSuccessOnFrontendLoop( |
177 const syncer::WeakHandle<syncer::JsBackend> js_backend, | 177 const syncer::WeakHandle<syncer::JsBackend> js_backend, |
178 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener> | 178 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener> |
179 debug_info_listener, | 179 debug_info_listener, |
180 syncer::SyncContextProxy* sync_context_proxy, | 180 syncer::SyncContextProxy* sync_context_proxy); |
181 const std::string& cache_guid); | |
182 | 181 |
183 // Downloading of control types failed and will be retried. Invokes the | 182 // Downloading of control types failed and will be retried. Invokes the |
184 // frontend's sync configure retry method. | 183 // frontend's sync configure retry method. |
185 void HandleControlTypesDownloadRetry(); | 184 void HandleControlTypesDownloadRetry(); |
186 | 185 |
187 // Forwards a ProtocolEvent to the frontend. Will not be called unless a | 186 // Forwards a ProtocolEvent to the frontend. Will not be called unless a |
188 // call to SetForwardProtocolEvents() explicitly requested that we start | 187 // call to SetForwardProtocolEvents() explicitly requested that we start |
189 // forwarding these events. | 188 // forwarding these events. |
190 void HandleProtocolEventOnFrontendLoop(syncer::ProtocolEvent* event); | 189 void HandleProtocolEventOnFrontendLoop(syncer::ProtocolEvent* event); |
191 | 190 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 | 365 |
367 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; | 366 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; |
368 | 367 |
369 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); | 368 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); |
370 }; | 369 }; |
371 | 370 |
372 } // namespace browser_sync | 371 } // namespace browser_sync |
373 | 372 |
374 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ | 373 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
375 | 374 |
OLD | NEW |