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

Side by Side Diff: net/http/http_proxy_client_socket.h

Issue 9959033: Move NextProto enum to a new file net/socket/next_proto.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address wtc's comments 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 | « net/http/http_pipelined_stream.cc ('k') | net/http/http_proxy_client_socket.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 #ifndef NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ 5 #ifndef NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_
6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 28 matching lines...) Expand all
39 // this socket will establish an Http tunnel. 39 // this socket will establish an Http tunnel.
40 HttpProxyClientSocket(ClientSocketHandle* transport_socket, 40 HttpProxyClientSocket(ClientSocketHandle* transport_socket,
41 const GURL& request_url, 41 const GURL& request_url,
42 const std::string& user_agent, 42 const std::string& user_agent,
43 const HostPortPair& endpoint, 43 const HostPortPair& endpoint,
44 const HostPortPair& proxy_server, 44 const HostPortPair& proxy_server,
45 HttpAuthCache* http_auth_cache, 45 HttpAuthCache* http_auth_cache,
46 HttpAuthHandlerFactory* http_auth_handler_factory, 46 HttpAuthHandlerFactory* http_auth_handler_factory,
47 bool tunnel, 47 bool tunnel,
48 bool using_spdy, 48 bool using_spdy,
49 SSLClientSocket::NextProto protocol_negotiated, 49 NextProto protocol_negotiated,
50 bool is_https_proxy); 50 bool is_https_proxy);
51 51
52 // On destruction Disconnect() is called. 52 // On destruction Disconnect() is called.
53 virtual ~HttpProxyClientSocket(); 53 virtual ~HttpProxyClientSocket();
54 54
55 // ProxyClientSocket implementation. 55 // ProxyClientSocket implementation.
56 virtual const HttpResponseInfo* GetConnectResponseInfo() const OVERRIDE; 56 virtual const HttpResponseInfo* GetConnectResponseInfo() const OVERRIDE;
57 virtual HttpStream* CreateConnectResponseStream() OVERRIDE; 57 virtual HttpStream* CreateConnectResponseStream() OVERRIDE;
58 virtual int RestartWithAuth(const CompletionCallback& callback) OVERRIDE; 58 virtual int RestartWithAuth(const CompletionCallback& callback) OVERRIDE;
59 virtual const scoped_refptr<HttpAuthController>& GetAuthController() const 59 virtual const scoped_refptr<HttpAuthController>& GetAuthController() const
60 OVERRIDE; 60 OVERRIDE;
61 virtual bool IsUsingSpdy() const OVERRIDE; 61 virtual bool IsUsingSpdy() const OVERRIDE;
62 virtual SSLClientSocket::NextProto GetProtocolNegotiated() const OVERRIDE; 62 virtual NextProto GetProtocolNegotiated() const OVERRIDE;
63 63
64 // StreamSocket implementation. 64 // StreamSocket implementation.
65 virtual int Connect(const CompletionCallback& callback) OVERRIDE; 65 virtual int Connect(const CompletionCallback& callback) OVERRIDE;
66 virtual void Disconnect() OVERRIDE; 66 virtual void Disconnect() OVERRIDE;
67 virtual bool IsConnected() const OVERRIDE; 67 virtual bool IsConnected() const OVERRIDE;
68 virtual bool IsConnectedAndIdle() const OVERRIDE; 68 virtual bool IsConnectedAndIdle() const OVERRIDE;
69 virtual const BoundNetLog& NetLog() const OVERRIDE; 69 virtual const BoundNetLog& NetLog() const OVERRIDE;
70 virtual void SetSubresourceSpeculation() OVERRIDE; 70 virtual void SetSubresourceSpeculation() OVERRIDE;
71 virtual void SetOmniboxSpeculation() OVERRIDE; 71 virtual void SetOmniboxSpeculation() OVERRIDE;
72 virtual bool WasEverUsed() const OVERRIDE; 72 virtual bool WasEverUsed() const OVERRIDE;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 scoped_ptr<ClientSocketHandle> transport_; 144 scoped_ptr<ClientSocketHandle> transport_;
145 145
146 // The hostname and port of the endpoint. This is not necessarily the one 146 // The hostname and port of the endpoint. This is not necessarily the one
147 // specified by the URL, due to Alternate-Protocol or fixed testing ports. 147 // specified by the URL, due to Alternate-Protocol or fixed testing ports.
148 const HostPortPair endpoint_; 148 const HostPortPair endpoint_;
149 scoped_refptr<HttpAuthController> auth_; 149 scoped_refptr<HttpAuthController> auth_;
150 const bool tunnel_; 150 const bool tunnel_;
151 // If true, then the connection to the proxy is a SPDY connection. 151 // If true, then the connection to the proxy is a SPDY connection.
152 const bool using_spdy_; 152 const bool using_spdy_;
153 // Protocol negotiated with the server. 153 // Protocol negotiated with the server.
154 SSLClientSocket::NextProto protocol_negotiated_; 154 NextProto protocol_negotiated_;
155 // If true, then SSL is used to communicate with this proxy 155 // If true, then SSL is used to communicate with this proxy
156 const bool is_https_proxy_; 156 const bool is_https_proxy_;
157 157
158 std::string request_line_; 158 std::string request_line_;
159 HttpRequestHeaders request_headers_; 159 HttpRequestHeaders request_headers_;
160 160
161 const BoundNetLog net_log_; 161 const BoundNetLog net_log_;
162 162
163 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket); 163 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket);
164 }; 164 };
165 165
166 } // namespace net 166 } // namespace net
167 167
168 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ 168 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « net/http/http_pipelined_stream.cc ('k') | net/http/http_proxy_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698