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

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

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/http/http_network_transaction.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_NETWORK_TRANSACTION_H_ 5 #ifndef NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
6 #define NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 6 #define NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 void BuildRequestHeaders(bool using_proxy); 179 void BuildRequestHeaders(bool using_proxy);
180 180
181 // Writes a log message to help debugging in the field when we block a proxy 181 // Writes a log message to help debugging in the field when we block a proxy
182 // response to a CONNECT request. 182 // response to a CONNECT request.
183 void LogBlockedTunnelResponse(int response_code) const; 183 void LogBlockedTunnelResponse(int response_code) const;
184 184
185 // Called to handle a client certificate request. 185 // Called to handle a client certificate request.
186 int HandleCertificateRequest(int error); 186 int HandleCertificateRequest(int error);
187 187
188 // Called wherever ERR_HTTP_1_1_REQUIRED or
189 // ERR_PROXY_HTTP_1_1_REQUIRED has to be handled.
190 int HandleHttp11Required(int error);
191
188 // Called to possibly handle a client authentication error. 192 // Called to possibly handle a client authentication error.
189 void HandleClientAuthError(int error); 193 void HandleClientAuthError(int error);
190 194
191 // Called to possibly recover from an SSL handshake error. Sets next_state_ 195 // Called to possibly recover from an SSL handshake error. Sets next_state_
192 // and returns OK if recovering from the error. Otherwise, the same error 196 // and returns OK if recovering from the error. Otherwise, the same error
193 // code is returned. 197 // code is returned.
194 int HandleSSLHandshakeError(int error); 198 int HandleSSLHandshakeError(int error);
195 199
196 // Called to possibly recover from the given error. Sets next_state_ and 200 // Called to possibly recover from the given error. Sets next_state_ and
197 // returns OK if recovering from the error. Otherwise, the same error code 201 // returns OK if recovering from the error. Otherwise, the same error code
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 322
319 BeforeNetworkStartCallback before_network_start_callback_; 323 BeforeNetworkStartCallback before_network_start_callback_;
320 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; 324 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_;
321 325
322 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); 326 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction);
323 }; 327 };
324 328
325 } // namespace net 329 } // namespace net
326 330
327 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 331 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
OLDNEW
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698