Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: remoting/host/oauth_client.h

Issue 9950108: Fixing double deletetion of remoting::URLRequestContextGetter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/host/oauth_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/oauth_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698