| 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 #ifndef GOOGLE_APIS_GAIA_OAUTH2_TOKEN_SERVICE_REQUEST_H_ | 5 #ifndef GOOGLE_APIS_GAIA_OAUTH2_TOKEN_SERVICE_REQUEST_H_ |
| 6 #define GOOGLE_APIS_GAIA_OAUTH2_TOKEN_SERVICE_REQUEST_H_ | 6 #define GOOGLE_APIS_GAIA_OAUTH2_TOKEN_SERVICE_REQUEST_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 14 #include "base/threading/non_thread_safe.h" | 15 #include "base/threading/non_thread_safe.h" |
| 15 #include "google_apis/gaia/oauth2_token_service.h" | 16 #include "google_apis/gaia/oauth2_token_service.h" |
| 16 | 17 |
| 17 // OAuth2TokenServiceRequest represents an asynchronous request to an | 18 // OAuth2TokenServiceRequest represents an asynchronous request to an |
| 18 // OAuth2TokenService that may live in another thread. | 19 // OAuth2TokenService that may live in another thread. |
| 19 // | 20 // |
| 20 // An OAuth2TokenServiceRequest can be created and started from any thread. | 21 // An OAuth2TokenServiceRequest can be created and started from any thread. |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 98 |
| 98 void StartWithCore(const scoped_refptr<Core>& core); | 99 void StartWithCore(const scoped_refptr<Core>& core); |
| 99 | 100 |
| 100 const std::string account_id_; | 101 const std::string account_id_; |
| 101 scoped_refptr<Core> core_; | 102 scoped_refptr<Core> core_; |
| 102 | 103 |
| 103 DISALLOW_COPY_AND_ASSIGN(OAuth2TokenServiceRequest); | 104 DISALLOW_COPY_AND_ASSIGN(OAuth2TokenServiceRequest); |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 #endif // GOOGLE_APIS_GAIA_OAUTH2_TOKEN_SERVICE_REQUEST_H_ | 107 #endif // GOOGLE_APIS_GAIA_OAUTH2_TOKEN_SERVICE_REQUEST_H_ |
| OLD | NEW |