| OLD | NEW |
| 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" | |
| 10 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 11 #include "components/invalidation/invalidation_handler.h" | 10 #include "components/invalidation/invalidation_handler.h" |
| 12 #include "google/cacheinvalidation/include/invalidation-client-factory.h" | 11 #include "google/cacheinvalidation/include/invalidation-client-factory.h" |
| 13 #include "jingle/notifier/listener/push_client.h" | 12 #include "jingle/notifier/listener/push_client.h" |
| 14 #include "net/url_request/url_request_context.h" | 13 #include "net/url_request/url_request_context.h" |
| 15 | 14 |
| 16 namespace syncer { | 15 namespace syncer { |
| 17 | 16 |
| 18 InvalidationNotifier::InvalidationNotifier( | 17 InvalidationNotifier::InvalidationNotifier( |
| 19 scoped_ptr<SyncNetworkChannel> network_channel, | 18 scoped_ptr<SyncNetworkChannel> network_channel, |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 DCHECK(CalledOnValidThread()); | 90 DCHECK(CalledOnValidThread()); |
| 92 registrar_.DispatchInvalidationsToHandlers(invalidation_map); | 91 registrar_.DispatchInvalidationsToHandlers(invalidation_map); |
| 93 } | 92 } |
| 94 | 93 |
| 95 void InvalidationNotifier::OnInvalidatorStateChange(InvalidatorState state) { | 94 void InvalidationNotifier::OnInvalidatorStateChange(InvalidatorState state) { |
| 96 DCHECK(CalledOnValidThread()); | 95 DCHECK(CalledOnValidThread()); |
| 97 registrar_.UpdateInvalidatorState(state); | 96 registrar_.UpdateInvalidatorState(state); |
| 98 } | 97 } |
| 99 | 98 |
| 100 } // namespace syncer | 99 } // namespace syncer |
| OLD | NEW |