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 #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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 // If more than this many bytes have been read or more than that many | 76 // If more than this many bytes have been read or more than that many |
77 // milliseconds have passed, return ERR_IO_PENDING from ReadLoop. | 77 // milliseconds have passed, return ERR_IO_PENDING from ReadLoop. |
78 const int kYieldAfterBytesRead = 32 * 1024; | 78 const int kYieldAfterBytesRead = 32 * 1024; |
79 const int kYieldAfterDurationMilliseconds = 20; | 79 const int kYieldAfterDurationMilliseconds = 20; |
80 | 80 |
81 // First and last valid stream IDs. As we always act as the client, | 81 // First and last valid stream IDs. As we always act as the client, |
82 // start at 1 for the first stream id. | 82 // start at 1 for the first stream id. |
83 const SpdyStreamId kFirstStreamId = 1; | 83 const SpdyStreamId kFirstStreamId = 1; |
84 const SpdyStreamId kLastStreamId = 0x7fffffff; | 84 const SpdyStreamId kLastStreamId = 0x7fffffff; |
85 | 85 |
| 86 struct LoadTimingInfo; |
86 class NetLogWithSource; | 87 class NetLogWithSource; |
87 struct LoadTimingInfo; | |
88 class ProxyDelegate; | 88 class ProxyDelegate; |
89 class SpdyStream; | 89 class SpdyStream; |
90 class SSLInfo; | 90 class SSLInfo; |
91 class TransportSecurityState; | 91 class TransportSecurityState; |
92 | 92 |
93 // NOTE: There's an enum of the same name (also with numeric suffixes) | 93 // NOTE: There's an enum of the same name (also with numeric suffixes) |
94 // in histograms.xml. Be sure to add new values there also. | 94 // in histograms.xml. Be sure to add new values there also. |
95 enum SpdyProtocolErrorDetails { | 95 enum SpdyProtocolErrorDetails { |
96 // SpdyFramer::SpdyError mappings. | 96 // SpdyFramer::SpdyError mappings. |
97 SPDY_ERROR_NO_ERROR = 0, | 97 SPDY_ERROR_NO_ERROR = 0, |
(...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1210 // Used for posting asynchronous IO tasks. We use this even though | 1210 // Used for posting asynchronous IO tasks. We use this even though |
1211 // SpdySession is refcounted because we don't need to keep the SpdySession | 1211 // SpdySession is refcounted because we don't need to keep the SpdySession |
1212 // alive if the last reference is within a RunnableMethod. Just revoke the | 1212 // alive if the last reference is within a RunnableMethod. Just revoke the |
1213 // method. | 1213 // method. |
1214 base::WeakPtrFactory<SpdySession> weak_factory_; | 1214 base::WeakPtrFactory<SpdySession> weak_factory_; |
1215 }; | 1215 }; |
1216 | 1216 |
1217 } // namespace net | 1217 } // namespace net |
1218 | 1218 |
1219 #endif // NET_SPDY_SPDY_SESSION_H_ | 1219 #endif // NET_SPDY_SPDY_SESSION_H_ |
OLD | NEW |