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: sync/notifier/invalidation_notifier.h

Issue 10824161: [Sync] Avoid unregistering object IDs on shutdown (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 4 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
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 scoped_ptr<notifier::PushClient> push_client, 42 scoped_ptr<notifier::PushClient> push_client,
43 const InvalidationVersionMap& initial_max_invalidation_versions, 43 const InvalidationVersionMap& initial_max_invalidation_versions,
44 const std::string& initial_invalidation_state, 44 const std::string& initial_invalidation_state,
45 const WeakHandle<InvalidationStateTracker>& 45 const WeakHandle<InvalidationStateTracker>&
46 invalidation_state_tracker, 46 invalidation_state_tracker,
47 const std::string& client_info); 47 const std::string& client_info);
48 48
49 virtual ~InvalidationNotifier(); 49 virtual ~InvalidationNotifier();
50 50
51 // SyncNotifier implementation. 51 // SyncNotifier implementation.
52 virtual void UpdateRegisteredIds(SyncNotifierObserver* handler, 52 virtual void SetHandler(const std::string& handler_name,
53 SyncNotifierObserver* handler) OVERRIDE;
54 virtual void UpdateRegisteredIds(const std::string& handler_name,
53 const ObjectIdSet& ids) OVERRIDE; 55 const ObjectIdSet& ids) OVERRIDE;
54 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE; 56 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE;
55 virtual void SetStateDeprecated(const std::string& state) OVERRIDE; 57 virtual void SetStateDeprecated(const std::string& state) OVERRIDE;
56 virtual void UpdateCredentials( 58 virtual void UpdateCredentials(
57 const std::string& email, const std::string& token) OVERRIDE; 59 const std::string& email, const std::string& token) OVERRIDE;
58 virtual void SendNotification(ModelTypeSet changed_types) OVERRIDE; 60 virtual void SendNotification(ModelTypeSet changed_types) OVERRIDE;
59 61
60 // ChromeInvalidationClient::Listener implementation. 62 // ChromeInvalidationClient::Listener implementation.
61 virtual void OnInvalidate(const ObjectIdPayloadMap& id_payloads) OVERRIDE; 63 virtual void OnInvalidate(const ObjectIdPayloadMap& id_payloads) OVERRIDE;
62 virtual void OnNotificationsEnabled() OVERRIDE; 64 virtual void OnNotificationsEnabled() OVERRIDE;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 99
98 // The invalidation client. 100 // The invalidation client.
99 ChromeInvalidationClient invalidation_client_; 101 ChromeInvalidationClient invalidation_client_;
100 102
101 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier); 103 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier);
102 }; 104 };
103 105
104 } // namespace syncer 106 } // namespace syncer
105 107
106 #endif // SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ 108 #endif // SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698