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

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

Issue 10398051: [Sync] Replace TalkMediator*/MediatorThread* with PushClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments, fix test Created 8 years, 7 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/all_status.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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // Our observers (which must live on the same thread). 103 // Our observers (which must live on the same thread).
104 ObserverList<SyncNotifierObserver> observers_; 104 ObserverList<SyncNotifierObserver> observers_;
105 105
106 // The client ID to pass to |chrome_invalidation_client_|. 106 // The client ID to pass to |chrome_invalidation_client_|.
107 std::string invalidation_client_id_; 107 std::string invalidation_client_id_;
108 108
109 // The state to pass to |chrome_invalidation_client_|. 109 // The state to pass to |chrome_invalidation_client_|.
110 std::string invalidation_state_; 110 std::string invalidation_state_;
111 111
112 // The XMPP connection manager. 112 // The XMPP connection manager.
113 // TODO(akalin): Use PushClient instead.
113 scoped_ptr<notifier::Login> login_; 114 scoped_ptr<notifier::Login> login_;
114 115
115 // The invalidation client. 116 // The invalidation client.
116 ChromeInvalidationClient invalidation_client_; 117 ChromeInvalidationClient invalidation_client_;
117 118
118 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier); 119 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier);
119 }; 120 };
120 121
121 } // namespace sync_notifier 122 } // namespace sync_notifier
122 123
123 #endif // SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ 124 #endif // SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/all_status.cc ('k') | sync/notifier/invalidation_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698