| 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/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/tracked_objects.h" | 13 #include "base/tracked_objects.h" |
| 14 #include "components/invalidation/invalidation_util.h" |
| 14 #include "components/invalidation/object_id_invalidation_map.h" | 15 #include "components/invalidation/object_id_invalidation_map.h" |
| 15 #include "components/invalidation/registration_manager.h" | 16 #include "components/invalidation/registration_manager.h" |
| 16 #include "google/cacheinvalidation/include/invalidation-client.h" | 17 #include "google/cacheinvalidation/include/invalidation-client.h" |
| 17 #include "google/cacheinvalidation/include/types.h" | 18 #include "google/cacheinvalidation/include/types.h" |
| 18 #include "jingle/notifier/listener/push_client.h" | 19 #include "jingle/notifier/listener/push_client.h" |
| 19 #include "sync/internal_api/public/base/invalidation_util.h" | |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 const char kApplicationName[] = "chrome-sync"; | 23 const char kApplicationName[] = "chrome-sync"; |
| 24 | 24 |
| 25 } // namespace | 25 } // namespace |
| 26 | 26 |
| 27 namespace syncer { | 27 namespace syncer { |
| 28 | 28 |
| 29 SyncInvalidationListener::Delegate::~Delegate() {} | 29 SyncInvalidationListener::Delegate::~Delegate() {} |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 } | 434 } |
| 435 | 435 |
| 436 void SyncInvalidationListener::OnNetworkChannelStateChanged( | 436 void SyncInvalidationListener::OnNetworkChannelStateChanged( |
| 437 InvalidatorState invalidator_state) { | 437 InvalidatorState invalidator_state) { |
| 438 DCHECK(CalledOnValidThread()); | 438 DCHECK(CalledOnValidThread()); |
| 439 push_client_state_ = invalidator_state; | 439 push_client_state_ = invalidator_state; |
| 440 EmitStateChange(); | 440 EmitStateChange(); |
| 441 } | 441 } |
| 442 | 442 |
| 443 } // namespace syncer | 443 } // namespace syncer |
| OLD | NEW |