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 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/message_loop_proxy.h" | 11 #include "base/message_loop/message_loop_proxy.h" |
12 | 12 |
13 namespace net { | 13 namespace net { |
14 class URLRequestContextGetter; | 14 class URLRequestContextGetter; |
15 } | 15 } |
16 | 16 |
17 // A helper class to get and refresh OAuth tokens given an authorization code. | 17 // A helper class to get and refresh OAuth tokens given an authorization code. |
18 namespace gaia { | 18 namespace gaia { |
19 | 19 |
20 struct OAuthClientInfo { | 20 struct OAuthClientInfo { |
21 std::string client_id; | 21 std::string client_id; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 private: | 69 private: |
70 // The guts of the implementation live in this class. | 70 // The guts of the implementation live in this class. |
71 class Core; | 71 class Core; |
72 scoped_refptr<Core> core_; | 72 scoped_refptr<Core> core_; |
73 DISALLOW_COPY_AND_ASSIGN(GaiaOAuthClient); | 73 DISALLOW_COPY_AND_ASSIGN(GaiaOAuthClient); |
74 }; | 74 }; |
75 } | 75 } |
76 | 76 |
77 #endif // GOOGLE_APIS_GAIA_GAIA_OAUTH_CLIENT_H_ | 77 #endif // GOOGLE_APIS_GAIA_GAIA_OAUTH_CLIENT_H_ |
OLD | NEW |