OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 | 477 |
478 // Dispatched to from OnConnectionStatusChange to handle updating | 478 // Dispatched to from OnConnectionStatusChange to handle updating |
479 // frontend UI components. | 479 // frontend UI components. |
480 void HandleConnectionStatusChangeOnFrontendLoop( | 480 void HandleConnectionStatusChangeOnFrontendLoop( |
481 syncer::ConnectionStatus status); | 481 syncer::ConnectionStatus status); |
482 | 482 |
483 // syncer::InvalidationHandler-like functions. | 483 // syncer::InvalidationHandler-like functions. |
484 void HandleInvalidatorStateChangeOnFrontendLoop( | 484 void HandleInvalidatorStateChangeOnFrontendLoop( |
485 syncer::InvalidatorState state); | 485 syncer::InvalidatorState state); |
486 void HandleIncomingInvalidationOnFrontendLoop( | 486 void HandleIncomingInvalidationOnFrontendLoop( |
487 const syncer::ObjectIdInvalidationMap& invalidation_map, | 487 const syncer::ObjectIdInvalidationMap& invalidation_map); |
488 syncer::IncomingInvalidationSource source); | |
489 | 488 |
490 // NotificationObserver implementation. | 489 // NotificationObserver implementation. |
491 virtual void Observe( | 490 virtual void Observe( |
492 int type, | 491 int type, |
493 const content::NotificationSource& source, | 492 const content::NotificationSource& source, |
494 const content::NotificationDetails& details) OVERRIDE; | 493 const content::NotificationDetails& details) OVERRIDE; |
495 | 494 |
496 // Handles stopping the core's SyncManager, accounting for whether | 495 // Handles stopping the core's SyncManager, accounting for whether |
497 // initialization is done yet. | 496 // initialization is done yet. |
498 void StopSyncManagerForShutdown(const base::Closure& closure); | 497 void StopSyncManagerForShutdown(const base::Closure& closure); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 // HandleInitializationCompletedOnFrontendLoop. | 559 // HandleInitializationCompletedOnFrontendLoop. |
561 syncer::WeakHandle<syncer::JsBackend> js_backend_; | 560 syncer::WeakHandle<syncer::JsBackend> js_backend_; |
562 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; | 561 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; |
563 | 562 |
564 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 563 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
565 }; | 564 }; |
566 | 565 |
567 } // namespace browser_sync | 566 } // namespace browser_sync |
568 | 567 |
569 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 568 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
OLD | NEW |