| OLD | NEW |
| 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 #include "net/spdy/spdy_proxy_client_socket.h" | 5 #include "net/spdy/spdy_proxy_client_socket.h" |
| 6 | 6 |
| 7 #include <algorithm> // min | 7 #include <algorithm> // min |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
| 12 #include "net/base/auth.h" | 12 #include "net/base/auth.h" |
| 13 #include "net/base/io_buffer.h" | 13 #include "net/base/io_buffer.h" |
| 14 #include "net/base/net_util.h" | 14 #include "net/base/net_util.h" |
| 15 #include "net/http/http_auth_cache.h" | 15 #include "net/http/http_auth_cache.h" |
| 16 #include "net/http/http_auth_handler_factory.h" | 16 #include "net/http/http_auth_handler_factory.h" |
| 17 #include "net/http/http_net_log_params.h" | 17 #include "net/http/http_net_log_params.h" |
| 18 #include "net/http/http_proxy_utils.h" | 18 #include "net/http/http_proxy_utils.h" |
| 19 #include "net/http/http_response_headers.h" |
| 19 #include "net/spdy/spdy_http_utils.h" | 20 #include "net/spdy/spdy_http_utils.h" |
| 20 | 21 |
| 21 namespace net { | 22 namespace net { |
| 22 | 23 |
| 23 SpdyProxyClientSocket::SpdyProxyClientSocket( | 24 SpdyProxyClientSocket::SpdyProxyClientSocket( |
| 24 SpdyStream* spdy_stream, | 25 SpdyStream* spdy_stream, |
| 25 const std::string& user_agent, | 26 const std::string& user_agent, |
| 26 const HostPortPair& endpoint, | 27 const HostPortPair& endpoint, |
| 27 const GURL& url, | 28 const GURL& url, |
| 28 const HostPortPair& proxy_server, | 29 const HostPortPair& proxy_server, |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 read_callback->Run(status); | 456 read_callback->Run(status); |
| 456 } else if (read_callback_) { | 457 } else if (read_callback_) { |
| 457 // If we have a read_callback, the we need to make sure we call it back | 458 // If we have a read_callback, the we need to make sure we call it back |
| 458 OnDataReceived(NULL, 0); | 459 OnDataReceived(NULL, 0); |
| 459 } | 460 } |
| 460 if (write_callback) | 461 if (write_callback) |
| 461 write_callback->Run(ERR_CONNECTION_CLOSED); | 462 write_callback->Run(ERR_CONNECTION_CLOSED); |
| 462 } | 463 } |
| 463 | 464 |
| 464 } // namespace net | 465 } // namespace net |
| OLD | NEW |