| 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 virtual void Observe( | 253 virtual void Observe( |
| 254 int type, | 254 int type, |
| 255 const content::NotificationSource& source, | 255 const content::NotificationSource& source, |
| 256 const content::NotificationDetails& details) OVERRIDE; | 256 const content::NotificationDetails& details) OVERRIDE; |
| 257 | 257 |
| 258 // InvalidationHandler implementation. | 258 // InvalidationHandler implementation. |
| 259 virtual void OnInvalidatorStateChange( | 259 virtual void OnInvalidatorStateChange( |
| 260 syncer::InvalidatorState state) OVERRIDE; | 260 syncer::InvalidatorState state) OVERRIDE; |
| 261 virtual void OnIncomingInvalidation( | 261 virtual void OnIncomingInvalidation( |
| 262 const syncer::ObjectIdInvalidationMap& invalidation_map) OVERRIDE; | 262 const syncer::ObjectIdInvalidationMap& invalidation_map) OVERRIDE; |
| 263 virtual std::string GetOwnerName() const OVERRIDE; |
| 263 | 264 |
| 264 content::NotificationRegistrar notification_registrar_; | 265 content::NotificationRegistrar notification_registrar_; |
| 265 | 266 |
| 266 // A reference to the MessageLoop used to construct |this|, so we know how | 267 // A reference to the MessageLoop used to construct |this|, so we know how |
| 267 // to safely talk back to the SyncFrontend. | 268 // to safely talk back to the SyncFrontend. |
| 268 base::MessageLoop* const frontend_loop_; | 269 base::MessageLoop* const frontend_loop_; |
| 269 | 270 |
| 270 Profile* const profile_; | 271 Profile* const profile_; |
| 271 | 272 |
| 272 // Name used for debugging (set from profile_->GetDebugName()). | 273 // Name used for debugging (set from profile_->GetDebugName()). |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 | 317 |
| 317 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; | 318 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; |
| 318 | 319 |
| 319 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); | 320 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); |
| 320 }; | 321 }; |
| 321 | 322 |
| 322 } // namespace browser_sync | 323 } // namespace browser_sync |
| 323 | 324 |
| 324 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ | 325 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
| 325 | 326 |
| OLD | NEW |