| 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_http_stream.h" | 5 #include "net/spdy/spdy_http_stream.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <list> | 8 #include <list> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.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/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
| 17 #include "base/threading/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/host_port_pair.h" | 19 #include "net/base/host_port_pair.h" |
| 20 #include "net/base/upload_data_stream.h" | 20 #include "net/base/upload_data_stream.h" |
| 21 #include "net/http/http_request_headers.h" | 21 #include "net/http/http_request_headers.h" |
| 22 #include "net/http/http_request_info.h" | 22 #include "net/http/http_request_info.h" |
| 23 #include "net/http/http_response_info.h" | 23 #include "net/http/http_response_info.h" |
| 24 #include "net/log/net_log.h" | |
| 25 #include "net/log/net_log_event_type.h" | 24 #include "net/log/net_log_event_type.h" |
| 25 #include "net/log/net_log_with_source.h" |
| 26 #include "net/spdy/spdy_header_block.h" | 26 #include "net/spdy/spdy_header_block.h" |
| 27 #include "net/spdy/spdy_http_utils.h" | 27 #include "net/spdy/spdy_http_utils.h" |
| 28 #include "net/spdy/spdy_protocol.h" | 28 #include "net/spdy/spdy_protocol.h" |
| 29 #include "net/spdy/spdy_session.h" | 29 #include "net/spdy/spdy_session.h" |
| 30 | 30 |
| 31 namespace net { | 31 namespace net { |
| 32 | 32 |
| 33 const size_t SpdyHttpStream::kRequestBodyBufferSize = 1 << 14; // 16KB | 33 const size_t SpdyHttpStream::kRequestBodyBufferSize = 1 << 14; // 16KB |
| 34 | 34 |
| 35 SpdyHttpStream::SpdyHttpStream(const base::WeakPtr<SpdySession>& spdy_session, | 35 SpdyHttpStream::SpdyHttpStream(const base::WeakPtr<SpdySession>& spdy_session, |
| (...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 details->connection_info = HttpResponseInfo::CONNECTION_INFO_HTTP2; | 607 details->connection_info = HttpResponseInfo::CONNECTION_INFO_HTTP2; |
| 608 return; | 608 return; |
| 609 } | 609 } |
| 610 | 610 |
| 611 void SpdyHttpStream::SetPriority(RequestPriority priority) { | 611 void SpdyHttpStream::SetPriority(RequestPriority priority) { |
| 612 // TODO(akalin): Plumb this through to |stream_request_| and | 612 // TODO(akalin): Plumb this through to |stream_request_| and |
| 613 // |stream_|. | 613 // |stream_|. |
| 614 } | 614 } |
| 615 | 615 |
| 616 } // namespace net | 616 } // namespace net |
| OLD | NEW |