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

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

Issue 116533006: Control invalidations network channel from TiclInvalidationService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 11 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
« no previous file with comments | « sync/notifier/gcm_network_channel_unittest.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 Invalidator that wraps an invalidation 5 // An implementation of Invalidator 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 // NonBlockingInvalidator. 10 // NonBlockingInvalidator.
(...skipping 22 matching lines...) Expand all
33 namespace syncer { 33 namespace syncer {
34 34
35 // This class must live on the IO thread. 35 // This class must live on the IO thread.
36 class SYNC_EXPORT_PRIVATE InvalidationNotifier 36 class SYNC_EXPORT_PRIVATE InvalidationNotifier
37 : public Invalidator, 37 : public Invalidator,
38 public SyncInvalidationListener::Delegate, 38 public SyncInvalidationListener::Delegate,
39 public base::NonThreadSafe { 39 public base::NonThreadSafe {
40 public: 40 public:
41 // |invalidation_state_tracker| must be initialized. 41 // |invalidation_state_tracker| must be initialized.
42 InvalidationNotifier( 42 InvalidationNotifier(
43 scoped_ptr<notifier::PushClient> push_client, 43 scoped_ptr<SyncNetworkChannel> network_channel,
44 const std::string& invalidator_client_id, 44 const std::string& invalidator_client_id,
45 const UnackedInvalidationsMap& saved_invalidations, 45 const UnackedInvalidationsMap& saved_invalidations,
46 const std::string& invalidation_bootstrap_data, 46 const std::string& invalidation_bootstrap_data,
47 const WeakHandle<InvalidationStateTracker>& 47 const WeakHandle<InvalidationStateTracker>&
48 invalidation_state_tracker, 48 invalidation_state_tracker,
49 const std::string& client_info); 49 const std::string& client_info);
50 50
51 virtual ~InvalidationNotifier(); 51 virtual ~InvalidationNotifier();
52 52
53 // Invalidator implementation. 53 // Invalidator implementation.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 // The invalidation listener. 97 // The invalidation listener.
98 SyncInvalidationListener invalidation_listener_; 98 SyncInvalidationListener invalidation_listener_;
99 99
100 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier); 100 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier);
101 }; 101 };
102 102
103 } // namespace syncer 103 } // namespace syncer
104 104
105 #endif // SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ 105 #endif // SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_
OLDNEW
« no previous file with comments | « sync/notifier/gcm_network_channel_unittest.cc ('k') | sync/notifier/invalidation_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698