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

Side by Side Diff: sync/notifier/sync_notifier_observer.h

Issue 10451060: sync: migrate invalidation state from syncable::Directory to InvalidationStorage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: include order Created 8 years, 6 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
« no previous file with comments | « sync/notifier/sync_notifier_factory.cc ('k') | sync/sync.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_ 5 #ifndef SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_
6 #define SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_ 6 #define SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 class SyncNotifierObserver { 22 class SyncNotifierObserver {
23 public: 23 public:
24 SyncNotifierObserver() {} 24 SyncNotifierObserver() {}
25 virtual ~SyncNotifierObserver() {} 25 virtual ~SyncNotifierObserver() {}
26 26
27 virtual void OnIncomingNotification( 27 virtual void OnIncomingNotification(
28 const syncable::ModelTypePayloadMap& type_payloads, 28 const syncable::ModelTypePayloadMap& type_payloads,
29 IncomingNotificationSource source) = 0; 29 IncomingNotificationSource source) = 0;
30 virtual void OnNotificationStateChange(bool notifications_enabled) = 0; 30 virtual void OnNotificationStateChange(bool notifications_enabled) = 0;
31
32 // TODO(nileshagrawal): Find a way to hide state handling inside the
33 // sync notifier implementation.
34 virtual void StoreState(const std::string& state) = 0;
35 }; 31 };
36 32
37 } // namespace sync_notifier 33 } // namespace sync_notifier
38 34
39 #endif // SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_ 35 #endif // SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_
OLDNEW
« no previous file with comments | « sync/notifier/sync_notifier_factory.cc ('k') | sync/sync.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698