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

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

Issue 8790015: Make SpdyFrame::size a constant instead of a static method so gcc can optimize the call away. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fff Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « net/spdy/spdy_protocol_test.cc ('k') | net/spdy/spdy_session.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) 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
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
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_
OLDNEW
« no previous file with comments | « net/spdy/spdy_protocol_test.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698