| 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/sync_invalidation_listener.h" | 5 #include "components/invalidation/sync_invalidation_listener.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 15 #include "base/thread_task_runner_handle.h" | 15 #include "base/thread_task_runner_handle.h" |
| 16 #include "base/tracked_objects.h" | 16 #include "base/tracked_objects.h" |
| 17 #include "components/invalidation/invalidation_util.h" | 17 #include "components/invalidation/base/invalidation_util.h" |
| 18 #include "components/invalidation/object_id_invalidation_map.h" | 18 #include "components/invalidation/base/object_id_invalidation_map.h" |
| 19 #include "components/invalidation/registration_manager.h" | 19 #include "components/invalidation/registration_manager.h" |
| 20 #include "google/cacheinvalidation/include/invalidation-client.h" | 20 #include "google/cacheinvalidation/include/invalidation-client.h" |
| 21 #include "google/cacheinvalidation/include/types.h" | 21 #include "google/cacheinvalidation/include/types.h" |
| 22 #include "jingle/notifier/listener/push_client.h" | 22 #include "jingle/notifier/listener/push_client.h" |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 const char kApplicationName[] = "chrome-sync"; | 26 const char kApplicationName[] = "chrome-sync"; |
| 27 | 27 |
| 28 } // namespace | 28 } // namespace |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 } | 452 } |
| 453 | 453 |
| 454 void SyncInvalidationListener::OnNetworkChannelStateChanged( | 454 void SyncInvalidationListener::OnNetworkChannelStateChanged( |
| 455 InvalidatorState invalidator_state) { | 455 InvalidatorState invalidator_state) { |
| 456 DCHECK(CalledOnValidThread()); | 456 DCHECK(CalledOnValidThread()); |
| 457 push_client_state_ = invalidator_state; | 457 push_client_state_ = invalidator_state; |
| 458 EmitStateChange(); | 458 EmitStateChange(); |
| 459 } | 459 } |
| 460 | 460 |
| 461 } // namespace syncer | 461 } // namespace syncer |
| OLD | NEW |