Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host.h

Issue 23754021: Invalidation trickles mega-patch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 syncer::PassphraseType type, 498 syncer::PassphraseType type,
499 base::Time explicit_passphrase_time); 499 base::Time explicit_passphrase_time);
500 500
501 void HandleStopSyncingPermanentlyOnFrontendLoop(); 501 void HandleStopSyncingPermanentlyOnFrontendLoop();
502 502
503 // Dispatched to from OnConnectionStatusChange to handle updating 503 // Dispatched to from OnConnectionStatusChange to handle updating
504 // frontend UI components. 504 // frontend UI components.
505 void HandleConnectionStatusChangeOnFrontendLoop( 505 void HandleConnectionStatusChangeOnFrontendLoop(
506 syncer::ConnectionStatus status); 506 syncer::ConnectionStatus status);
507 507
508 // syncer::InvalidationHandler-like functions.
509 void HandleInvalidatorStateChangeOnFrontendLoop(
510 syncer::InvalidatorState state);
511 void HandleIncomingInvalidationOnFrontendLoop(
512 const syncer::ObjectIdInvalidationMap& invalidation_map);
513
514 // NotificationObserver implementation. 508 // NotificationObserver implementation.
515 virtual void Observe( 509 virtual void Observe(
516 int type, 510 int type,
517 const content::NotificationSource& source, 511 const content::NotificationSource& source,
518 const content::NotificationDetails& details) OVERRIDE; 512 const content::NotificationDetails& details) OVERRIDE;
519 513
520 // InvalidationHandler implementation. 514 // InvalidationHandler implementation.
521 virtual void OnInvalidatorStateChange( 515 virtual void OnInvalidatorStateChange(
522 syncer::InvalidatorState state) OVERRIDE; 516 syncer::InvalidatorState state) OVERRIDE;
523 virtual void OnIncomingInvalidation( 517 virtual void OnIncomingInvalidation(
524 const syncer::ObjectIdInvalidationMap& invalidation_map) OVERRIDE; 518 const syncer::ObjectIdInvalidationMap& invalidations) OVERRIDE;
525 519
526 // Handles stopping the core's SyncManager, accounting for whether 520 // Handles stopping the core's SyncManager, accounting for whether
527 // initialization is done yet. 521 // initialization is done yet.
528 void StopSyncManagerForShutdown(); 522 void StopSyncManagerForShutdown();
529 523
530 base::WeakPtrFactory<SyncBackendHost> weak_ptr_factory_; 524 base::WeakPtrFactory<SyncBackendHost> weak_ptr_factory_;
531 525
532 content::NotificationRegistrar notification_registrar_; 526 content::NotificationRegistrar notification_registrar_;
533 527
534 // A reference to the MessageLoop used to construct |this|, so we know how 528 // A reference to the MessageLoop used to construct |this|, so we know how
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 582
589 invalidation::InvalidationService* invalidator_; 583 invalidation::InvalidationService* invalidator_;
590 bool invalidation_handler_registered_; 584 bool invalidation_handler_registered_;
591 585
592 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); 586 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost);
593 }; 587 };
594 588
595 } // namespace browser_sync 589 } // namespace browser_sync
596 590
597 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 591 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud/cloud_policy_invalidator_unittest.cc ('k') | chrome/browser/sync/glue/sync_backend_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698