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 19 matching lines...) Expand all Loading... |
30 #include "net/spdy/spdy_protocol.h" | 30 #include "net/spdy/spdy_protocol.h" |
31 #include "net/spdy/spdy_session_pool.h" | 31 #include "net/spdy/spdy_session_pool.h" |
32 | 32 |
33 namespace net { | 33 namespace net { |
34 | 34 |
35 // This is somewhat arbitrary and not really fixed, but it will always work | 35 // This is somewhat arbitrary and not really fixed, but it will always work |
36 // reasonably with ethernet. Chop the world into 2-packet chunks. This is | 36 // reasonably with ethernet. Chop the world into 2-packet chunks. This is |
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::kHeaderSize; |
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_EXPORT 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. |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 const spdy::SpdyControlFlags flags_; | 612 const spdy::SpdyControlFlags flags_; |
613 const spdy::SpdyStreamId id_; | 613 const spdy::SpdyStreamId id_; |
614 const spdy::SpdyStreamId associated_stream_; | 614 const spdy::SpdyStreamId associated_stream_; |
615 | 615 |
616 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySynParameter); | 616 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySynParameter); |
617 }; | 617 }; |
618 | 618 |
619 } // namespace net | 619 } // namespace net |
620 | 620 |
621 #endif // NET_SPDY_SPDY_SESSION_H_ | 621 #endif // NET_SPDY_SPDY_SESSION_H_ |
OLD | NEW |