| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_GAIA_OAUTH_CLIENT_H_ | 5 #ifndef GOOGLE_APIS_GAIA_GAIA_OAUTH_CLIENT_H_ |
| 6 #define GOOGLE_APIS_GAIA_GAIA_OAUTH_CLIENT_H_ | 6 #define GOOGLE_APIS_GAIA_GAIA_OAUTH_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/message_loop/message_loop_proxy.h" | |
| 14 #include "base/values.h" | 13 #include "base/values.h" |
| 15 | 14 |
| 16 namespace net { | 15 namespace net { |
| 17 class URLRequestContextGetter; | 16 class URLRequestContextGetter; |
| 18 } | 17 } |
| 19 | 18 |
| 20 // A helper class to get and refresh OAuth2 refresh and access tokens. | 19 // A helper class to get and refresh OAuth2 refresh and access tokens. |
| 21 // Also exposes utility methods for fetching user email and token information. | 20 // Also exposes utility methods for fetching user email and token information. |
| 22 // | 21 // |
| 23 // Supports one request at a time; for parallel requests, create multiple | 22 // Supports one request at a time; for parallel requests, create multiple |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 137 |
| 139 private: | 138 private: |
| 140 // The guts of the implementation live in this class. | 139 // The guts of the implementation live in this class. |
| 141 class Core; | 140 class Core; |
| 142 scoped_refptr<Core> core_; | 141 scoped_refptr<Core> core_; |
| 143 DISALLOW_COPY_AND_ASSIGN(GaiaOAuthClient); | 142 DISALLOW_COPY_AND_ASSIGN(GaiaOAuthClient); |
| 144 }; | 143 }; |
| 145 } | 144 } |
| 146 | 145 |
| 147 #endif // GOOGLE_APIS_GAIA_GAIA_OAUTH_CLIENT_H_ | 146 #endif // GOOGLE_APIS_GAIA_GAIA_OAUTH_CLIENT_H_ |
| OLD | NEW |