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/chromium/spdy_http_stream.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <list> | 8 #include <list> |
9 #include <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/callback_helpers.h" | 13 #include "base/callback_helpers.h" |
14 #include "base/location.h" | 14 #include "base/location.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.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_event_type.h" | 24 #include "net/log/net_log_event_type.h" |
25 #include "net/log/net_log_with_source.h" | 25 #include "net/log/net_log_with_source.h" |
| 26 #include "net/spdy/chromium/spdy_http_utils.h" |
| 27 #include "net/spdy/chromium/spdy_session.h" |
| 28 #include "net/spdy/core/spdy_header_block.h" |
| 29 #include "net/spdy/core/spdy_protocol.h" |
26 #include "net/spdy/platform/api/spdy_string.h" | 30 #include "net/spdy/platform/api/spdy_string.h" |
27 #include "net/spdy/spdy_header_block.h" | |
28 #include "net/spdy/spdy_http_utils.h" | |
29 #include "net/spdy/spdy_protocol.h" | |
30 #include "net/spdy/spdy_session.h" | |
31 | 31 |
32 namespace net { | 32 namespace net { |
33 | 33 |
34 const size_t SpdyHttpStream::kRequestBodyBufferSize = 1 << 14; // 16KB | 34 const size_t SpdyHttpStream::kRequestBodyBufferSize = 1 << 14; // 16KB |
35 | 35 |
36 SpdyHttpStream::SpdyHttpStream(const base::WeakPtr<SpdySession>& spdy_session, | 36 SpdyHttpStream::SpdyHttpStream(const base::WeakPtr<SpdySession>& spdy_session, |
37 bool direct, | 37 bool direct, |
38 NetLogSource source_dependency) | 38 NetLogSource source_dependency) |
39 : MultiplexedHttpStream(MultiplexedSessionHandle(spdy_session)), | 39 : MultiplexedHttpStream(MultiplexedSessionHandle(spdy_session)), |
40 spdy_session_(spdy_session), | 40 spdy_session_(spdy_session), |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 details->connection_info = HttpResponseInfo::CONNECTION_INFO_HTTP2; | 586 details->connection_info = HttpResponseInfo::CONNECTION_INFO_HTTP2; |
587 return; | 587 return; |
588 } | 588 } |
589 | 589 |
590 void SpdyHttpStream::SetPriority(RequestPriority priority) { | 590 void SpdyHttpStream::SetPriority(RequestPriority priority) { |
591 // TODO(akalin): Plumb this through to |stream_request_| and | 591 // TODO(akalin): Plumb this through to |stream_request_| and |
592 // |stream_|. | 592 // |stream_|. |
593 } | 593 } |
594 | 594 |
595 } // namespace net | 595 } // namespace net |
OLD | NEW |