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

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: Fix build. 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
akalin 2011/03/10 04:26:45 #include <string>
Agrawal 2011/03/11 01:13:07 Done.
9 #include "chrome/browser/sync/sessions/session_state.h"
10
11 namespace sync_notifier {
12
13 class SyncNotifierObserver {
14 public:
15 SyncNotifierObserver() {}
16 virtual ~SyncNotifierObserver() {}
17
18 virtual void OnIncomingNotification(
19 const browser_sync::sessions::TypePayloadMap& type_payloads) = 0;
20 virtual void OnNotificationStateChange(bool notifications_enabled) = 0;
21
22 // TODO(nileshagrawal): Find a way to hide state handling inside the
23 // sync notifier implementation.
24 virtual void StoreCookie(const std::string& cookie) = 0;
akalin 2011/03/10 04:26:45 Rename to WriteState or StoreState, matching exist
Agrawal 2011/03/11 01:13:07 Done.
25 };
26 } // namespace sync_notifier
27 #endif // CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698