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

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

Issue 6621062: Refactor sync notifier out of sync api. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: 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_H_
7 #define CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_H_
8
9 #include "chrome/browser/sync/notifier/sync_notifier_callback.h"
10 #include "chrome/browser/sync/syncable/model_type.h"
11
12 namespace sync_notifier {
13
14 class SyncNotifier {
15 public:
16 virtual void Login(
akalin 2011/03/08 02:48:30 have a public virtual destructor
Agrawal 2011/03/08 23:07:28 Done. Thanks for pointing out.
17 const std::string& email, const std::string& token,
akalin 2011/03/08 02:48:30 need #include string
Agrawal 2011/03/08 23:07:28 Done.
18 const std::string& state,
19 SyncNotifierCallback* sync_notifier_callback) = 0;
akalin 2011/03/08 02:48:30 I think that instead of bundling SyncNotifierCallb
Agrawal 2011/03/09 01:57:04 Done. Thanks for the suggestion.
20
21 virtual void UpdateEnabledTypes(const syncable::ModelTypeSet& types) = 0;
22 virtual void Logout() = 0;
akalin 2011/03/08 02:48:30 I think there's no need for an explicit Logout() i
Agrawal 2011/03/09 01:57:04 Done.
23 };
24 } // namespace sync_notifier
25
26 #endif // CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_H_
27
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698