| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 struct LoadTimingInfo; |
| 87 class NetLog; |
| 87 class NetLogWithSource; | 88 class NetLogWithSource; |
| 88 class ProxyDelegate; | 89 class ProxyDelegate; |
| 89 class SpdyStream; | 90 class SpdyStream; |
| 90 class SSLInfo; | 91 class SSLInfo; |
| 91 class TransportSecurityState; | 92 class TransportSecurityState; |
| 92 | 93 |
| 93 // NOTE: There's an enum of the same name (also with numeric suffixes) | 94 // 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. | 95 // in histograms.xml. Be sure to add new values there also. |
| 95 enum SpdyProtocolErrorDetails { | 96 enum SpdyProtocolErrorDetails { |
| 96 // SpdyFramer::SpdyError mappings. | 97 // SpdyFramer::SpdyError mappings. |
| (...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1199 // Used for posting asynchronous IO tasks. We use this even though | 1200 // Used for posting asynchronous IO tasks. We use this even though |
| 1200 // SpdySession is refcounted because we don't need to keep the SpdySession | 1201 // SpdySession is refcounted because we don't need to keep the SpdySession |
| 1201 // alive if the last reference is within a RunnableMethod. Just revoke the | 1202 // alive if the last reference is within a RunnableMethod. Just revoke the |
| 1202 // method. | 1203 // method. |
| 1203 base::WeakPtrFactory<SpdySession> weak_factory_; | 1204 base::WeakPtrFactory<SpdySession> weak_factory_; |
| 1204 }; | 1205 }; |
| 1205 | 1206 |
| 1206 } // namespace net | 1207 } // namespace net |
| 1207 | 1208 |
| 1208 #endif // NET_SPDY_SPDY_SESSION_H_ | 1209 #endif // NET_SPDY_SPDY_SESSION_H_ |
| OLD | NEW |