OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "sync/notifier/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 "google/cacheinvalidation/include/invalidation-client.h" | 14 #include "google/cacheinvalidation/include/invalidation-client.h" |
15 #include "google/cacheinvalidation/include/types.h" | 15 #include "google/cacheinvalidation/include/types.h" |
(...skipping 418 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 |