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_stream.h" | 5 #include "net/spdy/spdy_stream.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 private: | 82 private: |
83 const base::WeakPtr<SpdyStream> stream_; | 83 const base::WeakPtr<SpdyStream> stream_; |
84 }; | 84 }; |
85 | 85 |
86 SpdyStream::SpdyStream(SpdyStreamType type, | 86 SpdyStream::SpdyStream(SpdyStreamType type, |
87 const base::WeakPtr<SpdySession>& session, | 87 const base::WeakPtr<SpdySession>& session, |
88 const GURL& url, | 88 const GURL& url, |
89 RequestPriority priority, | 89 RequestPriority priority, |
90 int32_t initial_send_window_size, | 90 int32_t initial_send_window_size, |
91 int32_t max_recv_window_size, | 91 int32_t max_recv_window_size, |
92 const BoundNetLog& net_log) | 92 const NetLogWithSource& net_log) |
93 : type_(type), | 93 : type_(type), |
94 stream_id_(0), | 94 stream_id_(0), |
95 url_(url), | 95 url_(url), |
96 priority_(priority), | 96 priority_(priority), |
97 send_stalled_by_flow_control_(false), | 97 send_stalled_by_flow_control_(false), |
98 send_window_size_(initial_send_window_size), | 98 send_window_size_(initial_send_window_size), |
99 max_recv_window_size_(max_recv_window_size), | 99 max_recv_window_size_(max_recv_window_size), |
100 recv_window_size_(max_recv_window_size), | 100 recv_window_size_(max_recv_window_size), |
101 unacked_recv_window_bytes_(0), | 101 unacked_recv_window_bytes_(0), |
102 session_(session), | 102 session_(session), |
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
935 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, | 935 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, |
936 state); | 936 state); |
937 break; | 937 break; |
938 } | 938 } |
939 return description; | 939 return description; |
940 } | 940 } |
941 | 941 |
942 #undef STATE_CASE | 942 #undef STATE_CASE |
943 | 943 |
944 } // namespace net | 944 } // namespace net |
OLD | NEW |