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

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

Issue 2870030: Implement SSLClientSocketPool. (Closed)
Patch Set: Rebase and fix mac compile error Created 10 years, 5 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 27 matching lines...) Expand all
38 bool tunnel); 38 bool tunnel);
39 39
40 // On destruction Disconnect() is called. 40 // On destruction Disconnect() is called.
41 virtual ~HttpProxyClientSocket(); 41 virtual ~HttpProxyClientSocket();
42 42
43 // If Connect (or its callback) returns PROXY_AUTH_REQUESTED, then 43 // If Connect (or its callback) returns PROXY_AUTH_REQUESTED, then
44 // credentials should be added to the HttpAuthController before calling 44 // credentials should be added to the HttpAuthController before calling
45 // RestartWithAuth. 45 // RestartWithAuth.
46 int RestartWithAuth(CompletionCallback* callback); 46 int RestartWithAuth(CompletionCallback* callback);
47 47
48 // Indicates if RestartWithAuth needs to be called. i.e. if Connect
49 // returned PROXY_AUTH_REQUESTED. Only valid after Connect has been called.
50 bool NeedsRestartWithAuth() const;
51
48 const HttpResponseInfo* GetResponseInfo() const { 52 const HttpResponseInfo* GetResponseInfo() const {
49 return response_.headers ? &response_ : NULL; 53 return response_.headers ? &response_ : NULL;
50 } 54 }
51 55
52 // ClientSocket methods: 56 // ClientSocket methods:
53 57
54 // Authenticates to the Http Proxy and then passes data freely. 58 // Authenticates to the Http Proxy and then passes data freely.
55 virtual int Connect(CompletionCallback* callback); 59 virtual int Connect(CompletionCallback* callback);
56 virtual void Disconnect(); 60 virtual void Disconnect();
57 virtual bool IsConnected() const; 61 virtual bool IsConnected() const;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 std::string request_headers_; 136 std::string request_headers_;
133 137
134 const BoundNetLog net_log_; 138 const BoundNetLog net_log_;
135 139
136 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket); 140 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket);
137 }; 141 };
138 142
139 } // namespace net 143 } // namespace net
140 144
141 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ 145 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698