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 #ifndef NET_SPDY_SPDY_SESSION_H_ | 5 #ifndef NET_SPDY_SPDY_SESSION_H_ |
6 #define NET_SPDY_SPDY_SESSION_H_ | 6 #define NET_SPDY_SPDY_SESSION_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <list> | 10 #include <list> |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 friend class base::RefCounted<SpdySession>; | 200 friend class base::RefCounted<SpdySession>; |
201 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, GetActivePushStream); | 201 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, GetActivePushStream); |
202 | 202 |
203 enum State { | 203 enum State { |
204 IDLE, | 204 IDLE, |
205 CONNECTING, | 205 CONNECTING, |
206 CONNECTED, | 206 CONNECTED, |
207 CLOSED | 207 CLOSED |
208 }; | 208 }; |
209 | 209 |
210 enum { kDefaultMaxConcurrentStreams = 6 }; // TODO(mbelshe) remove this | 210 enum { kDefaultMaxConcurrentStreams = 10 }; |
211 | 211 |
212 struct PendingCreateStream { | 212 struct PendingCreateStream { |
213 const GURL* url; | 213 const GURL* url; |
214 RequestPriority priority; | 214 RequestPriority priority; |
215 scoped_refptr<SpdyStream>* spdy_stream; | 215 scoped_refptr<SpdyStream>* spdy_stream; |
216 const BoundNetLog* stream_net_log; | 216 const BoundNetLog* stream_net_log; |
217 CompletionCallback* callback; | 217 CompletionCallback* callback; |
218 | 218 |
219 PendingCreateStream(const GURL& url, RequestPriority priority, | 219 PendingCreateStream(const GURL& url, RequestPriority priority, |
220 scoped_refptr<SpdyStream>* spdy_stream, | 220 scoped_refptr<SpdyStream>* spdy_stream, |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 const spdy::SpdyControlFlags flags_; | 452 const spdy::SpdyControlFlags flags_; |
453 const spdy::SpdyStreamId id_; | 453 const spdy::SpdyStreamId id_; |
454 const spdy::SpdyStreamId associated_stream_; | 454 const spdy::SpdyStreamId associated_stream_; |
455 | 455 |
456 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySynParameter); | 456 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySynParameter); |
457 }; | 457 }; |
458 | 458 |
459 } // namespace net | 459 } // namespace net |
460 | 460 |
461 #endif // NET_SPDY_SPDY_SESSION_H_ | 461 #endif // NET_SPDY_SPDY_SESSION_H_ |
OLD | NEW |