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

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

Issue 6621062: Refactor sync notifier out of sync api. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Minox fixes. Created 9 years, 9 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
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5
6 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_
7 #define CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_
8
9 #include <string>
10
11 #include "chrome/browser/sync/sessions/session_state.h"
12
13 namespace sync_notifier {
14
15 class SyncNotifierObserver {
16 public:
17 SyncNotifierObserver() {}
18 virtual ~SyncNotifierObserver() {}
19
20 virtual void OnIncomingNotification(
21 const browser_sync::sessions::TypePayloadMap& type_payloads) = 0;
22 virtual void OnNotificationStateChange(bool notifications_enabled) = 0;
23
24 // TODO(nileshagrawal): Find a way to hide state handling inside the
25 // sync notifier implementation.
26 virtual void StoreState(const std::string& state) = 0;
27 };
28 } // namespace sync_notifier
29 #endif // CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/notifier/sync_notifier_impl.cc ('k') | chrome/browser/sync/profile_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698