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

Unified Diff: net/http/http_proxy_client_socket.h

Issue 4935001: Allow a non-200 (or non-407) response for a CONNECT request from an HTTPS pro... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Cleaned up Created 10 years 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 side-by-side diff with in-line comments
Download patch
Index: net/http/http_proxy_client_socket.h
===================================================================
--- net/http/http_proxy_client_socket.h (revision 68026)
+++ net/http/http_proxy_client_socket.h (working copy)
@@ -13,11 +13,12 @@
#include "net/base/completion_callback.h"
#include "net/base/host_port_pair.h"
#include "net/base/net_log.h"
+#include "net/http/connect_response_http_stream.h"
+#include "net/http/http_proxy_tunnel_client_socket.h"
#include "net/http/http_auth_controller.h"
#include "net/http/http_request_headers.h"
#include "net/http/http_request_info.h"
#include "net/http/http_response_info.h"
-#include "net/socket/client_socket.h"
class GURL;
@@ -32,7 +33,7 @@
class HttpStreamParser;
class IOBuffer;
-class HttpProxyClientSocket : public ClientSocket {
+class HttpProxyClientSocket : public HttpProxyTunnelClientSocket {
public:
// Takes ownership of |transport_socket|, which should already be connected
// by the time Connect() is called. If tunnel is true then on Connect()
@@ -45,7 +46,8 @@
HttpAuthCache* http_auth_cache,
HttpAuthHandlerFactory* http_auth_handler_factory,
bool tunnel,
- bool using_spdy);
+ bool using_spdy,
+ bool is_https_proxy);
vandebo (ex-Chrome) 2010/12/04 00:30:37 Can you look at proxy_server instead of passing is
Ryan Hamilton 2010/12/09 21:19:35 Alas not. proxy_server is merely a HostPortPair,
// On destruction Disconnect() is called.
virtual ~HttpProxyClientSocket();
@@ -55,10 +57,14 @@
// RestartWithAuth.
int RestartWithAuth(CompletionCallback* callback);
- const HttpResponseInfo* GetResponseInfo() const {
+ const HttpResponseInfo* GetConnectResponseInfo() const {
return response_.headers ? &response_ : NULL;
}
+ virtual HttpStream* GetConnectResponseStream() {
vandebo (ex-Chrome) 2010/12/04 00:30:37 This should probably go in the .cpp file (and take
Ryan Hamilton 2010/12/09 21:19:35 Done.
+ return new ConnectResponseHttpStream(http_stream_parser_.release());
+ }
+
const scoped_refptr<HttpAuthController>& auth_controller() {
return auth_;
}
@@ -155,6 +161,8 @@
const bool tunnel_;
// If true, then the connection to the proxy is a SPDY connection.
const bool using_spdy_;
+ // If true, then SSL is used to communicate with this proxy
+ const bool is_https_proxy_;
std::string request_line_;
HttpRequestHeaders request_headers_;

Powered by Google App Engine
This is Rietveld 408576698