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

Side by Side Diff: components/invalidation/invalidation_notifier.cc

Issue 653203005: Roll WebRTC 7546:7549. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Decreased the number of gyp changes in this patch since thats the only major change (the reset is j… Created 6 years, 1 month 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 | « components/invalidation/DEPS ('k') | content/browser/renderer_host/p2p/socket_host.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "components/invalidation/invalidation_notifier.h" 5 #include "components/invalidation/invalidation_notifier.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
11 #include "components/invalidation/invalidation_handler.h" 11 #include "components/invalidation/invalidation_handler.h"
12 #include "google/cacheinvalidation/include/invalidation-client-factory.h" 12 #include "google/cacheinvalidation/include/invalidation-client-factory.h"
13 #include "jingle/notifier/listener/push_client.h" 13 #include "jingle/notifier/listener/push_client.h"
14 #include "net/url_request/url_request_context.h" 14 #include "net/url_request/url_request_context.h"
15 #include "talk/xmpp/jid.h" 15 #include "webrtc/libjingle/xmpp/jid.h"
16 #include "talk/xmpp/xmppclientsettings.h" 16 #include "webrtc/libjingle/xmpp/xmppclientsettings.h"
17 17
18 namespace syncer { 18 namespace syncer {
19 19
20 InvalidationNotifier::InvalidationNotifier( 20 InvalidationNotifier::InvalidationNotifier(
21 scoped_ptr<SyncNetworkChannel> network_channel, 21 scoped_ptr<SyncNetworkChannel> network_channel,
22 const std::string& invalidator_client_id, 22 const std::string& invalidator_client_id,
23 const UnackedInvalidationsMap& saved_invalidations, 23 const UnackedInvalidationsMap& saved_invalidations,
24 const std::string& invalidation_bootstrap_data, 24 const std::string& invalidation_bootstrap_data,
25 const base::WeakPtr<InvalidationStateTracker>& invalidation_state_tracker, 25 const base::WeakPtr<InvalidationStateTracker>& invalidation_state_tracker,
26 scoped_refptr<base::SingleThreadTaskRunner> 26 scoped_refptr<base::SingleThreadTaskRunner>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 DCHECK(CalledOnValidThread()); 91 DCHECK(CalledOnValidThread());
92 registrar_.DispatchInvalidationsToHandlers(invalidation_map); 92 registrar_.DispatchInvalidationsToHandlers(invalidation_map);
93 } 93 }
94 94
95 void InvalidationNotifier::OnInvalidatorStateChange(InvalidatorState state) { 95 void InvalidationNotifier::OnInvalidatorStateChange(InvalidatorState state) {
96 DCHECK(CalledOnValidThread()); 96 DCHECK(CalledOnValidThread());
97 registrar_.UpdateInvalidatorState(state); 97 registrar_.UpdateInvalidatorState(state);
98 } 98 }
99 99
100 } // namespace syncer 100 } // namespace syncer
OLDNEW
« no previous file with comments | « components/invalidation/DEPS ('k') | content/browser/renderer_host/p2p/socket_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698