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

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

Issue 9316101: Revert 118950 - Allow chrome to handle 407 auth challenges to CONNECT requests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 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_stream_factory_impl_request.cc ('k') | net/socket/client_socket_pool_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
OLDNEW
1 // Copyright (c) 2012 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_HTTP_PROXY_CLIENT_SOCKET_H_ 5 #ifndef NET_HTTP_PROXY_CLIENT_SOCKET_H_
6 #define NET_HTTP_PROXY_CLIENT_SOCKET_H_ 6 #define NET_HTTP_PROXY_CLIENT_SOCKET_H_
7 #pragma once 7 #pragma once
8 8
9 #include "net/socket/stream_socket.h" 9 #include "net/socket/stream_socket.h"
10 10
11 namespace net { 11 namespace net {
12 12
13 class HttpStream; 13 class HttpStream;
14 class HttpResponseInfo; 14 class HttpResponseInfo;
15 class HttpAuthController;
16 15
17 class NET_EXPORT_PRIVATE ProxyClientSocket : public StreamSocket { 16 class NET_EXPORT_PRIVATE ProxyClientSocket : public StreamSocket {
18 public: 17 public:
19 ProxyClientSocket() {} 18 ProxyClientSocket() {}
20 virtual ~ProxyClientSocket() {} 19 virtual ~ProxyClientSocket() {}
21 20
22 // Returns the HttpResponseInfo (including HTTP Headers) from 21 // Returns the HttpResponseInfo (including HTTP Headers) from
23 // the response to the CONNECT request. 22 // the response to the CONNECT request.
24 virtual const HttpResponseInfo* GetConnectResponseInfo() const = 0; 23 virtual const HttpResponseInfo* GetConnectResponseInfo() const = 0;
25 24
26 // Transfers ownership of a newly created HttpStream to the caller 25 // Transfers ownership of a newly created HttpStream to the caller
27 // which can be used to read the response body. 26 // which can be used to read the response body.
28 virtual HttpStream* CreateConnectResponseStream() = 0; 27 virtual HttpStream* CreateConnectResponseStream() = 0;
29 28
30 // Returns the HttpAuthController which can be used
31 // to interact with an HTTP Proxy Authorization Required (407) request.
32 virtual const scoped_refptr<HttpAuthController>& GetAuthController() = 0;
33
34 // If Connect (or its callback) returns PROXY_AUTH_REQUESTED, then
35 // credentials should be added to the HttpAuthController before calling
36 // RestartWithAuth.
37 virtual int RestartWithAuth(const CompletionCallback& callback) = 0;
38
39 private: 29 private:
40 DISALLOW_COPY_AND_ASSIGN(ProxyClientSocket); 30 DISALLOW_COPY_AND_ASSIGN(ProxyClientSocket);
41 }; 31 };
42 32
43 } // namespace net 33 } // namespace net
44 34
45 #endif // NET_HTTP_PROXY_CLIENT_SOCKET_H_ 35 #endif // NET_HTTP_PROXY_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « net/http/http_stream_factory_impl_request.cc ('k') | net/socket/client_socket_pool_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698