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

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

Issue 10696087: [Sync] Move ModelType and related classes to 'syncer' namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort headers, update copyrights Created 8 years, 5 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/internal_api/write_node.cc ('k') | sync/notifier/invalidation_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 // An implementation of SyncNotifier that wraps an invalidation 5 // An implementation of SyncNotifier that wraps an invalidation
6 // client. Handles the details of connecting to XMPP and hooking it 6 // client. Handles the details of connecting to XMPP and hooking it
7 // up to the invalidation client. 7 // up to the invalidation client.
8 // 8 //
9 // You probably don't want to use this directly; use 9 // You probably don't want to use this directly; use
10 // NonBlockingInvalidationNotifier. 10 // NonBlockingInvalidationNotifier.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 virtual ~InvalidationNotifier(); 50 virtual ~InvalidationNotifier();
51 51
52 // SyncNotifier implementation. 52 // SyncNotifier implementation.
53 virtual void AddObserver(SyncNotifierObserver* observer) OVERRIDE; 53 virtual void AddObserver(SyncNotifierObserver* observer) OVERRIDE;
54 virtual void RemoveObserver(SyncNotifierObserver* observer) OVERRIDE; 54 virtual void RemoveObserver(SyncNotifierObserver* observer) OVERRIDE;
55 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE; 55 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE;
56 virtual void SetStateDeprecated(const std::string& state) OVERRIDE; 56 virtual void SetStateDeprecated(const std::string& state) OVERRIDE;
57 virtual void UpdateCredentials( 57 virtual void UpdateCredentials(
58 const std::string& email, const std::string& token) OVERRIDE; 58 const std::string& email, const std::string& token) OVERRIDE;
59 virtual void UpdateEnabledTypes( 59 virtual void UpdateEnabledTypes(
60 syncable::ModelTypeSet enabled_types) OVERRIDE; 60 syncer::ModelTypeSet enabled_types) OVERRIDE;
61 virtual void SendNotification( 61 virtual void SendNotification(
62 syncable::ModelTypeSet changed_types) OVERRIDE; 62 syncer::ModelTypeSet changed_types) OVERRIDE;
63 63
64 // ChromeInvalidationClient::Listener implementation. 64 // ChromeInvalidationClient::Listener implementation.
65 virtual void OnInvalidate(const ObjectIdPayloadMap& id_payloads) OVERRIDE; 65 virtual void OnInvalidate(const ObjectIdPayloadMap& id_payloads) OVERRIDE;
66 virtual void OnNotificationsEnabled() OVERRIDE; 66 virtual void OnNotificationsEnabled() OVERRIDE;
67 virtual void OnNotificationsDisabled( 67 virtual void OnNotificationsDisabled(
68 NotificationsDisabledReason reason) OVERRIDE; 68 NotificationsDisabledReason reason) OVERRIDE;
69 69
70 private: 70 private:
71 // We start off in the STOPPED state. When we get our initial 71 // We start off in the STOPPED state. When we get our initial
72 // credentials, we connect and move to the CONNECTING state. When 72 // credentials, we connect and move to the CONNECTING state. When
(...skipping 29 matching lines...) Expand all
102 102
103 // The invalidation client. 103 // The invalidation client.
104 ChromeInvalidationClient invalidation_client_; 104 ChromeInvalidationClient invalidation_client_;
105 105
106 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier); 106 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier);
107 }; 107 };
108 108
109 } // namespace syncer 109 } // namespace syncer
110 110
111 #endif // SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ 111 #endif // SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/write_node.cc ('k') | sync/notifier/invalidation_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698