| 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 "google_apis/gaia/oauth2_token_service_request.h" | 5 #include "google_apis/gaia/oauth2_token_service_request.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
| 14 #include "base/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
| 15 #include "google_apis/gaia/google_service_auth_error.h" | 15 #include "google_apis/gaia/google_service_auth_error.h" |
| 16 #include "google_apis/gaia/oauth2_access_token_consumer.h" | 16 #include "google_apis/gaia/oauth2_access_token_consumer.h" |
| 17 | 17 |
| 18 OAuth2TokenServiceRequest::TokenServiceProvider::TokenServiceProvider() { | 18 OAuth2TokenServiceRequest::TokenServiceProvider::TokenServiceProvider() { |
| 19 } | 19 } |
| 20 | 20 |
| 21 OAuth2TokenServiceRequest::TokenServiceProvider::~TokenServiceProvider() { | 21 OAuth2TokenServiceRequest::TokenServiceProvider::~TokenServiceProvider() { |
| 22 } | 22 } |
| 23 | 23 |
| 24 // Core serves as the base class for OAuth2TokenService operations. Each | 24 // Core serves as the base class for OAuth2TokenService operations. Each |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 const std::string& account_id) | 366 const std::string& account_id) |
| 367 : account_id_(account_id) { | 367 : account_id_(account_id) { |
| 368 DCHECK(!account_id_.empty()); | 368 DCHECK(!account_id_.empty()); |
| 369 } | 369 } |
| 370 | 370 |
| 371 void OAuth2TokenServiceRequest::StartWithCore(const scoped_refptr<Core>& core) { | 371 void OAuth2TokenServiceRequest::StartWithCore(const scoped_refptr<Core>& core) { |
| 372 DCHECK(core.get()); | 372 DCHECK(core.get()); |
| 373 core_ = core; | 373 core_ = core; |
| 374 core_->Start(); | 374 core_->Start(); |
| 375 } | 375 } |
| OLD | NEW |