diff options
Diffstat (limited to 'net/http/http_network_transaction.h')
-rw-r--r-- | net/http/http_network_transaction.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/net/http/http_network_transaction.h b/net/http/http_network_transaction.h index 40c9a17..147c0fc 100644 --- a/net/http/http_network_transaction.h +++ b/net/http/http_network_transaction.h @@ -77,8 +77,19 @@ class HttpNetworkTransaction : public HttpTransaction { int DoReadBody(); int DoReadBodyComplete(int result); + // TODO(eroman): temp instrumentation to track down a bug. + struct Bug3772 { + unsigned char true_count; + unsigned char false_count; + int connect_result; + bool reused_socket; + Bug3772() : true_count(0), false_count(0), connect_result(0), + reused_socket(false) { } + }; + Bug3772 bug_3772_; + // Called when header_buf_ contains the complete response headers. - int DidReadResponseHeaders(int* /*temp hack*/); + int DidReadResponseHeaders(Bug3772* /*temp hack*/); // Called to handle a certificate error. Returns OK if the error should be // ignored. Otherwise, stores the certificate in response_.ssl_info and @@ -234,9 +245,6 @@ class HttpNetworkTransaction : public HttpTransaction { char* read_buf_; int read_buf_len_; - // TODO(eroman): temp instrumentation to track down a bug. - int bug_3772_state_; - enum State { STATE_RESOLVE_PROXY, STATE_RESOLVE_PROXY_COMPLETE, |