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

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

Issue 2157963002: Improve grammar in some comments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: maxiumum Created 4 years, 5 months 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
« no previous file with comments | « net/disk_cache/backend_unittest.cc ('k') | net/tools/balsa/balsa_headers_token_utils.cc » ('j') | 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) 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 #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 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 const int kMaxSpdyFrameChunkSize = (2 * kMss) - 8; 60 const int kMaxSpdyFrameChunkSize = (2 * kMss) - 8;
61 61
62 // Default value of SETTINGS_INITIAL_WINDOW_SIZE per protocol specification. 62 // Default value of SETTINGS_INITIAL_WINDOW_SIZE per protocol specification.
63 // A session is always created with this initial window size. 63 // A session is always created with this initial window size.
64 const int32_t kDefaultInitialWindowSize = 65535; 64 const int32_t kDefaultInitialWindowSize = 65535;
65 65
66 // Maximum number of concurrent streams we will create, unless the server 66 // Maximum number of concurrent streams we will create, unless the server
67 // sends a SETTINGS frame with a different value. 67 // sends a SETTINGS frame with a different value.
68 const size_t kInitialMaxConcurrentStreams = 100; 68 const size_t kInitialMaxConcurrentStreams = 100;
69 69
70 // Specifies the maxiumum concurrent streams server could send (via push). 70 // Specifies the maximum concurrent streams server could send (via push).
71 const int kMaxConcurrentPushedStreams = 1000; 71 const int kMaxConcurrentPushedStreams = 1000;
72 72
73 // If more than this many bytes have been read or more than that many 73 // If more than this many bytes have been read or more than that many
74 // milliseconds have passed, return ERR_IO_PENDING from ReadLoop. 74 // milliseconds have passed, return ERR_IO_PENDING from ReadLoop.
75 const int kYieldAfterBytesRead = 32 * 1024; 75 const int kYieldAfterBytesRead = 32 * 1024;
76 const int kYieldAfterDurationMilliseconds = 20; 76 const int kYieldAfterDurationMilliseconds = 20;
77 77
78 // First and last valid stream IDs. As we always act as the client, 78 // First and last valid stream IDs. As we always act as the client,
79 // start at 1 for the first stream id. 79 // start at 1 for the first stream id.
80 const SpdyStreamId kFirstStreamId = 1; 80 const SpdyStreamId kFirstStreamId = 1;
(...skipping 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1203 // Used for posting asynchronous IO tasks. We use this even though 1203 // Used for posting asynchronous IO tasks. We use this even though
1204 // SpdySession is refcounted because we don't need to keep the SpdySession 1204 // SpdySession is refcounted because we don't need to keep the SpdySession
1205 // alive if the last reference is within a RunnableMethod. Just revoke the 1205 // alive if the last reference is within a RunnableMethod. Just revoke the
1206 // method. 1206 // method.
1207 base::WeakPtrFactory<SpdySession> weak_factory_; 1207 base::WeakPtrFactory<SpdySession> weak_factory_;
1208 }; 1208 };
1209 1209
1210 } // namespace net 1210 } // namespace net
1211 1211
1212 #endif // NET_SPDY_SPDY_SESSION_H_ 1212 #endif // NET_SPDY_SPDY_SESSION_H_
OLDNEW
« no previous file with comments | « net/disk_cache/backend_unittest.cc ('k') | net/tools/balsa/balsa_headers_token_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698