| 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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
| 12 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
| 13 #include "google_apis/gaia/google_service_auth_error.h" | 14 #include "google_apis/gaia/google_service_auth_error.h" |
| 14 #include "google_apis/gaia/oauth2_access_token_consumer.h" | 15 #include "google_apis/gaia/oauth2_access_token_consumer.h" |
| 15 | 16 |
| 16 OAuth2TokenServiceRequest::TokenServiceProvider::TokenServiceProvider() { | 17 OAuth2TokenServiceRequest::TokenServiceProvider::TokenServiceProvider() { |
| 17 } | 18 } |
| 18 | 19 |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 const std::string& account_id) | 364 const std::string& account_id) |
| 364 : account_id_(account_id) { | 365 : account_id_(account_id) { |
| 365 DCHECK(!account_id_.empty()); | 366 DCHECK(!account_id_.empty()); |
| 366 } | 367 } |
| 367 | 368 |
| 368 void OAuth2TokenServiceRequest::StartWithCore(const scoped_refptr<Core>& core) { | 369 void OAuth2TokenServiceRequest::StartWithCore(const scoped_refptr<Core>& core) { |
| 369 DCHECK(core.get()); | 370 DCHECK(core.get()); |
| 370 core_ = core; | 371 core_ = core; |
| 371 core_->Start(); | 372 core_->Start(); |
| 372 } | 373 } |
| OLD | NEW |