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

Side by Side Diff: net/spdy/spdy_proxy_client_socket.h

Issue 8502024: Allow chrome to handle 407 auth challenges to CONNECT requests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: fix typo in unittest Created 9 years, 1 month 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/proxy_client_socket.h ('k') | net/spdy/spdy_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ 5 #ifndef NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_
6 #define NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ 6 #define NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <list> 10 #include <list>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 const HostPortPair& endpoint, 46 const HostPortPair& endpoint,
47 const GURL& url, 47 const GURL& url,
48 const HostPortPair& proxy_server, 48 const HostPortPair& proxy_server,
49 HttpAuthCache* auth_cache, 49 HttpAuthCache* auth_cache,
50 HttpAuthHandlerFactory* auth_handler_factory); 50 HttpAuthHandlerFactory* auth_handler_factory);
51 51
52 52
53 // On destruction Disconnect() is called. 53 // On destruction Disconnect() is called.
54 virtual ~SpdyProxyClientSocket(); 54 virtual ~SpdyProxyClientSocket();
55 55
56 const scoped_refptr<HttpAuthController>& auth_controller() {
57 return auth_;
58 }
59
60 // ProxyClientSocket methods: 56 // ProxyClientSocket methods:
61 virtual const HttpResponseInfo* GetConnectResponseInfo() const OVERRIDE; 57 virtual const HttpResponseInfo* GetConnectResponseInfo() const OVERRIDE;
62
63 // In the event of a non-200 response to the CONNECT request, this
64 // method may be called to return an HttpStream in order to read
65 // the response body.
66 virtual HttpStream* CreateConnectResponseStream() OVERRIDE; 58 virtual HttpStream* CreateConnectResponseStream() OVERRIDE;
59 virtual int RestartWithAuth(OldCompletionCallback* callback) OVERRIDE;
60 virtual const scoped_refptr<HttpAuthController>& auth_controller() OVERRIDE;
67 61
68 // StreamSocket methods: 62 // StreamSocket methods:
69 virtual int Connect(OldCompletionCallback* callback) OVERRIDE; 63 virtual int Connect(OldCompletionCallback* callback) OVERRIDE;
70 virtual void Disconnect() OVERRIDE; 64 virtual void Disconnect() OVERRIDE;
71 virtual bool IsConnected() const OVERRIDE; 65 virtual bool IsConnected() const OVERRIDE;
72 virtual bool IsConnectedAndIdle() const OVERRIDE; 66 virtual bool IsConnectedAndIdle() const OVERRIDE;
73 virtual const BoundNetLog& NetLog() const OVERRIDE; 67 virtual const BoundNetLog& NetLog() const OVERRIDE;
74 virtual void SetSubresourceSpeculation() OVERRIDE; 68 virtual void SetSubresourceSpeculation() OVERRIDE;
75 virtual void SetOmniboxSpeculation() OVERRIDE; 69 virtual void SetOmniboxSpeculation() OVERRIDE;
76 virtual bool WasEverUsed() const OVERRIDE; 70 virtual bool WasEverUsed() const OVERRIDE;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 scoped_ptr<SpdyHttpStream> response_stream_; 161 scoped_ptr<SpdyHttpStream> response_stream_;
168 162
169 const BoundNetLog net_log_; 163 const BoundNetLog net_log_;
170 164
171 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); 165 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket);
172 }; 166 };
173 167
174 } // namespace net 168 } // namespace net
175 169
176 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ 170 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « net/http/proxy_client_socket.h ('k') | net/spdy/spdy_proxy_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698