| 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); |
| 181 | 182 |
| 182 // Downloading of control types failed and will be retried. Invokes the | 183 // Downloading of control types failed and will be retried. Invokes the |
| 183 // frontend's sync configure retry method. | 184 // frontend's sync configure retry method. |
| 184 void HandleControlTypesDownloadRetry(); | 185 void HandleControlTypesDownloadRetry(); |
| 185 | 186 |
| 186 // Forwards a ProtocolEvent to the frontend. Will not be called unless a | 187 // Forwards a ProtocolEvent to the frontend. Will not be called unless a |
| 187 // call to SetForwardProtocolEvents() explicitly requested that we start | 188 // call to SetForwardProtocolEvents() explicitly requested that we start |
| 188 // forwarding these events. | 189 // forwarding these events. |
| 189 void HandleProtocolEventOnFrontendLoop(syncer::ProtocolEvent* event); | 190 void HandleProtocolEventOnFrontendLoop(syncer::ProtocolEvent* event); |
| 190 | 191 |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 | 366 |
| 366 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; | 367 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; |
| 367 | 368 |
| 368 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); | 369 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); |
| 369 }; | 370 }; |
| 370 | 371 |
| 371 } // namespace browser_sync | 372 } // namespace browser_sync |
| 372 | 373 |
| 373 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ | 374 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
| 374 | 375 |
| OLD | NEW |