| 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 // This class implements the OAuth2 client for the Chromoting host. | 5 // This class implements the OAuth2 client for the Chromoting host. |
| 6 | 6 |
| 7 #ifndef REMOTING_HOST_OAUTH_CLIENT_H_ | 7 #ifndef REMOTING_HOST_OAUTH_CLIENT_H_ |
| 8 #define REMOTING_HOST_OAUTH_CLIENT_H_ | 8 #define REMOTING_HOST_OAUTH_CLIENT_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 virtual void OnOAuthError() OVERRIDE; | 55 virtual void OnOAuthError() OVERRIDE; |
| 56 virtual void OnNetworkError(int response_code) OVERRIDE; | 56 virtual void OnNetworkError(int response_code) OVERRIDE; |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 void RefreshToken(); | 59 void RefreshToken(); |
| 60 | 60 |
| 61 // TODO(jamiewalch): Move these to the ChromotingHostContext class so | 61 // TODO(jamiewalch): Move these to the ChromotingHostContext class so |
| 62 // that the URLRequestContextGetter is available for other purposes. | 62 // that the URLRequestContextGetter is available for other purposes. |
| 63 base::Thread network_thread_; | 63 base::Thread network_thread_; |
| 64 base::Thread file_thread_; | 64 base::Thread file_thread_; |
| 65 scoped_ptr<URLRequestContextGetter> url_request_context_getter_; | 65 scoped_refptr<URLRequestContextGetter> url_request_context_getter_; |
| 66 scoped_ptr<GaiaOAuthClient> gaia_oauth_client_; | 66 scoped_ptr<GaiaOAuthClient> gaia_oauth_client_; |
| 67 std::string refresh_token_; | 67 std::string refresh_token_; |
| 68 OAuthClient::Delegate* delegate_; | 68 OAuthClient::Delegate* delegate_; |
| 69 scoped_refptr<base::MessageLoopProxy> message_loop_; | 69 scoped_refptr<base::MessageLoopProxy> message_loop_; |
| 70 | 70 |
| 71 DISALLOW_COPY_AND_ASSIGN(OAuthClient); | 71 DISALLOW_COPY_AND_ASSIGN(OAuthClient); |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 } // namespace remoting | 74 } // namespace remoting |
| 75 | 75 |
| 76 #endif // REMOTING_HOST_OAUTH_CLIENT_H_ | 76 #endif // REMOTING_HOST_OAUTH_CLIENT_H_ |
| OLD | NEW |