| 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/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/values.h" | 14 #include "base/values.h" |
| 14 | 15 |
| 15 namespace net { | 16 namespace net { |
| 16 class URLRequestContextGetter; | 17 class URLRequestContextGetter; |
| 17 } | 18 } |
| 18 | 19 |
| 19 // A helper class to get and refresh OAuth2 refresh and access tokens. | 20 // A helper class to get and refresh OAuth2 refresh and access tokens. |
| 20 // Also exposes utility methods for fetching user email and token information. | 21 // Also exposes utility methods for fetching user email and token information. |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 138 |
| 138 private: | 139 private: |
| 139 // The guts of the implementation live in this class. | 140 // The guts of the implementation live in this class. |
| 140 class Core; | 141 class Core; |
| 141 scoped_refptr<Core> core_; | 142 scoped_refptr<Core> core_; |
| 142 DISALLOW_COPY_AND_ASSIGN(GaiaOAuthClient); | 143 DISALLOW_COPY_AND_ASSIGN(GaiaOAuthClient); |
| 143 }; | 144 }; |
| 144 } | 145 } |
| 145 | 146 |
| 146 #endif // GOOGLE_APIS_GAIA_GAIA_OAUTH_CLIENT_H_ | 147 #endif // GOOGLE_APIS_GAIA_GAIA_OAUTH_CLIENT_H_ |
| OLD | NEW |