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

Side by Side Diff: chrome/browser/sync/glue/bridged_sync_notifier.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 | « no previous file | chrome/browser/sync/glue/bridged_sync_notifier.cc » ('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 CHROME_BROWSER_SYNC_GLUE_BRIDGED_SYNC_NOTIFIER_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_BRIDGED_SYNC_NOTIFIER_H_
6 #define CHROME_BROWSER_SYNC_GLUE_BRIDGED_SYNC_NOTIFIER_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_BRIDGED_SYNC_NOTIFIER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "sync/notifier/sync_notifier.h" 10 #include "sync/notifier/sync_notifier.h"
(...skipping 17 matching lines...) Expand all
28 virtual ~BridgedSyncNotifier(); 28 virtual ~BridgedSyncNotifier();
29 29
30 // SyncNotifier implementation. Passes through all calls to the delegate. 30 // SyncNotifier implementation. Passes through all calls to the delegate.
31 // AddObserver/RemoveObserver will also register/deregister |observer| with 31 // AddObserver/RemoveObserver will also register/deregister |observer| with
32 // the bridge. 32 // the bridge.
33 virtual void AddObserver( 33 virtual void AddObserver(
34 sync_notifier::SyncNotifierObserver* observer) OVERRIDE; 34 sync_notifier::SyncNotifierObserver* observer) OVERRIDE;
35 virtual void RemoveObserver( 35 virtual void RemoveObserver(
36 sync_notifier::SyncNotifierObserver* observer) OVERRIDE; 36 sync_notifier::SyncNotifierObserver* observer) OVERRIDE;
37 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE; 37 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE;
38 virtual void SetState(const std::string& state) OVERRIDE; 38 virtual void SetStateDeprecated(const std::string& state) OVERRIDE;
39 virtual void UpdateCredentials( 39 virtual void UpdateCredentials(
40 const std::string& email, const std::string& token) OVERRIDE; 40 const std::string& email, const std::string& token) OVERRIDE;
41 virtual void UpdateEnabledTypes( 41 virtual void UpdateEnabledTypes(
42 syncable::ModelTypeSet enabled_types) OVERRIDE; 42 syncable::ModelTypeSet enabled_types) OVERRIDE;
43 virtual void SendNotification( 43 virtual void SendNotification(
44 syncable::ModelTypeSet changed_types) OVERRIDE; 44 syncable::ModelTypeSet changed_types) OVERRIDE;
45 45
46 private: 46 private:
47 // The notification bridge that we register the observers with. 47 // The notification bridge that we register the observers with.
48 ChromeSyncNotificationBridge* bridge_; 48 ChromeSyncNotificationBridge* bridge_;
49 49
50 // The delegate we are wrapping. 50 // The delegate we are wrapping.
51 scoped_ptr<sync_notifier::SyncNotifier> delegate_; 51 scoped_ptr<sync_notifier::SyncNotifier> delegate_;
52 }; 52 };
53 53
54 } // namespace browser_sync 54 } // namespace browser_sync
55 55
56 #endif // CHROME_BROWSER_SYNC_GLUE_BRIDGED_SYNC_NOTIFIER_H_ 56 #endif // CHROME_BROWSER_SYNC_GLUE_BRIDGED_SYNC_NOTIFIER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/glue/bridged_sync_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698