Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: net/spdy/spdy_session.h

Issue 5712009: Increase the initial spdy concurrent stream limit to 10 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698