| 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/single_thread_task_runner.h" | 7 #include "base/single_thread_task_runner.h" |
| 8 #include "base/thread_task_runner_handle.h" | 8 #include "base/thread_task_runner_handle.h" |
| 9 #include "chrome/browser/invalidation/gcm_invalidation_bridge.h" | 9 #include "chrome/browser/invalidation/gcm_invalidation_bridge.h" |
| 10 #include "chrome/browser/services/gcm/gcm_service.h" | 10 #include "chrome/browser/services/gcm/gcm_service.h" |
| 11 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | |
| 12 #include "chrome/browser/signin/signin_manager_factory.h" | 11 #include "chrome/browser/signin/signin_manager_factory.h" |
| 13 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 12 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
| 14 #include "components/signin/core/browser/signin_manager.h" | 13 #include "components/signin/core/browser/signin_manager.h" |
| 15 #include "google_apis/gaia/gaia_constants.h" | 14 #include "google_apis/gaia/gaia_constants.h" |
| 16 #include "google_apis/gaia/identity_provider.h" | 15 #include "google_apis/gaia/identity_provider.h" |
| 17 | 16 |
| 18 namespace invalidation { | 17 namespace invalidation { |
| 19 namespace { | 18 namespace { |
| 20 // For 3rd party developers SenderId should come from application dashboard when | 19 // For 3rd party developers SenderId should come from application dashboard when |
| 21 // server side application is registered with Google. Android invalidations use | 20 // server side application is registered with Google. Android invalidations use |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 } | 311 } |
| 313 | 312 |
| 314 void GCMInvalidationBridge::OnSendError( | 313 void GCMInvalidationBridge::OnSendError( |
| 315 const std::string& app_id, | 314 const std::string& app_id, |
| 316 const gcm::GCMClient::SendErrorDetails& send_error_details) { | 315 const gcm::GCMClient::SendErrorDetails& send_error_details) { |
| 317 // cacheinvalidation doesn't send messages over GCM. | 316 // cacheinvalidation doesn't send messages over GCM. |
| 318 NOTREACHED(); | 317 NOTREACHED(); |
| 319 } | 318 } |
| 320 | 319 |
| 321 } // namespace invalidation | 320 } // namespace invalidation |
| OLD | NEW |