| 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/location.h" | 6 #include "base/location.h" |
| 7 #include "base/macros.h" |
| 7 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
| 8 #include "base/thread_task_runner_handle.h" | 9 #include "base/thread_task_runner_handle.h" |
| 9 #include "components/gcm_driver/gcm_driver.h" | 10 #include "components/gcm_driver/gcm_driver.h" |
| 10 #include "components/invalidation/impl/gcm_invalidation_bridge.h" | 11 #include "components/invalidation/impl/gcm_invalidation_bridge.h" |
| 11 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 12 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
| 12 #include "components/signin/core/browser/signin_manager.h" | 13 #include "components/signin/core/browser/signin_manager.h" |
| 13 #include "google_apis/gaia/gaia_constants.h" | 14 #include "google_apis/gaia/gaia_constants.h" |
| 14 #include "google_apis/gaia/identity_provider.h" | 15 #include "google_apis/gaia/identity_provider.h" |
| 15 | 16 |
| 16 namespace invalidation { | 17 namespace invalidation { |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 | 368 |
| 368 void GCMInvalidationBridge::OnDisconnected() { | 369 void GCMInvalidationBridge::OnDisconnected() { |
| 369 core_thread_task_runner_->PostTask( | 370 core_thread_task_runner_->PostTask( |
| 370 FROM_HERE, | 371 FROM_HERE, |
| 371 base::Bind(&GCMInvalidationBridge::Core::OnConnectionStateChanged, | 372 base::Bind(&GCMInvalidationBridge::Core::OnConnectionStateChanged, |
| 372 core_, | 373 core_, |
| 373 false)); | 374 false)); |
| 374 } | 375 } |
| 375 | 376 |
| 376 } // namespace invalidation | 377 } // namespace invalidation |
| OLD | NEW |