OLD | NEW |
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 #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 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/callback_helpers.h" | 12 #include "base/callback_helpers.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
17 #include "base/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
18 #include "base/values.h" | 18 #include "base/values.h" |
19 #include "net/base/auth.h" | 19 #include "net/base/auth.h" |
20 #include "net/base/io_buffer.h" | 20 #include "net/base/io_buffer.h" |
21 #include "net/http/http_auth_cache.h" | 21 #include "net/http/http_auth_cache.h" |
22 #include "net/http/http_auth_handler_factory.h" | 22 #include "net/http/http_auth_handler_factory.h" |
23 #include "net/http/http_request_info.h" | 23 #include "net/http/http_request_info.h" |
24 #include "net/http/http_response_headers.h" | 24 #include "net/http/http_response_headers.h" |
25 #include "net/http/proxy_connect_redirect_http_stream.h" | 25 #include "net/http/proxy_connect_redirect_http_stream.h" |
26 #include "net/spdy/spdy_http_utils.h" | 26 #include "net/spdy/spdy_http_utils.h" |
27 #include "url/gurl.h" | 27 #include "url/gurl.h" |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 } else if (!read_callback_.is_null()) { | 526 } else if (!read_callback_.is_null()) { |
527 // If we have a read_callback_, the we need to make sure we call it back. | 527 // If we have a read_callback_, the we need to make sure we call it back. |
528 OnDataReceived(std::unique_ptr<SpdyBuffer>()); | 528 OnDataReceived(std::unique_ptr<SpdyBuffer>()); |
529 } | 529 } |
530 // This may have been deleted by read_callback_, so check first. | 530 // This may have been deleted by read_callback_, so check first. |
531 if (weak_ptr.get() && !write_callback.is_null()) | 531 if (weak_ptr.get() && !write_callback.is_null()) |
532 write_callback.Run(ERR_CONNECTION_CLOSED); | 532 write_callback.Run(ERR_CONNECTION_CLOSED); |
533 } | 533 } |
534 | 534 |
535 } // namespace net | 535 } // namespace net |
OLD | NEW |