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