| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 26 matching lines...) Expand all Loading... |
| 37 // somewhat arbitrary, but is reasonably small and ensures that we elicit | 37 // somewhat arbitrary, but is reasonably small and ensures that we elicit |
| 38 // ACKs quickly from TCP (because TCP tries to only ACK every other packet). | 38 // ACKs quickly from TCP (because TCP tries to only ACK every other packet). |
| 39 const int kMss = 1430; | 39 const int kMss = 1430; |
| 40 const int kMaxSpdyFrameChunkSize = (2 * kMss) - spdy::SpdyFrame::size(); | 40 const int kMaxSpdyFrameChunkSize = (2 * kMss) - spdy::SpdyFrame::size(); |
| 41 | 41 |
| 42 class BoundNetLog; | 42 class BoundNetLog; |
| 43 class SpdySettingsStorage; | 43 class SpdySettingsStorage; |
| 44 class SpdyStream; | 44 class SpdyStream; |
| 45 class SSLInfo; | 45 class SSLInfo; |
| 46 | 46 |
| 47 class NET_API SpdySession : public base::RefCounted<SpdySession>, | 47 class NET_EXPORT SpdySession : public base::RefCounted<SpdySession>, |
| 48 public spdy::SpdyFramerVisitorInterface { | 48 public spdy::SpdyFramerVisitorInterface { |
| 49 public: | 49 public: |
| 50 // Create a new SpdySession. | 50 // Create a new SpdySession. |
| 51 // |host_port_proxy_pair| is the host/port that this session connects to, and | 51 // |host_port_proxy_pair| is the host/port that this session connects to, and |
| 52 // the proxy configuration settings that it's using. | 52 // the proxy configuration settings that it's using. |
| 53 // |spdy_session_pool| is the SpdySessionPool that owns us. Its lifetime must | 53 // |spdy_session_pool| is the SpdySessionPool that owns us. Its lifetime must |
| 54 // strictly be greater than |this|. | 54 // strictly be greater than |this|. |
| 55 // |session| is the HttpNetworkSession. |net_log| is the NetLog that we log | 55 // |session| is the HttpNetworkSession. |net_log| is the NetLog that we log |
| 56 // network events to. | 56 // network events to. |
| 57 SpdySession(const HostPortProxyPair& host_port_proxy_pair, | 57 SpdySession(const HostPortProxyPair& host_port_proxy_pair, |
| 58 SpdySessionPool* spdy_session_pool, | 58 SpdySessionPool* spdy_session_pool, |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 const spdy::SpdyControlFlags flags_; | 461 const spdy::SpdyControlFlags flags_; |
| 462 const spdy::SpdyStreamId id_; | 462 const spdy::SpdyStreamId id_; |
| 463 const spdy::SpdyStreamId associated_stream_; | 463 const spdy::SpdyStreamId associated_stream_; |
| 464 | 464 |
| 465 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySynParameter); | 465 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySynParameter); |
| 466 }; | 466 }; |
| 467 | 467 |
| 468 } // namespace net | 468 } // namespace net |
| 469 | 469 |
| 470 #endif // NET_SPDY_SPDY_SESSION_H_ | 470 #endif // NET_SPDY_SPDY_SESSION_H_ |
| OLD | NEW |