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

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

Issue 10870080: Add SPDY request headers to DevTools. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Back to CL #6 Created 8 years, 3 months 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/buffered_spdy_framer.h ('k') | net/spdy/spdy_header_block.h » ('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) 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_FRAMER_H_ 5 #ifndef NET_SPDY_SPDY_FRAMER_H_
6 #define NET_SPDY_SPDY_FRAMER_H_ 6 #define NET_SPDY_SPDY_FRAMER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 #include <utility> 11 #include <utility>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/gtest_prod_util.h" 15 #include "base/gtest_prod_util.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/sys_byteorder.h" 17 #include "base/sys_byteorder.h"
18 #include "net/base/net_export.h" 18 #include "net/base/net_export.h"
19 #include "net/spdy/spdy_header_block.h"
19 #include "net/spdy/spdy_protocol.h" 20 #include "net/spdy/spdy_protocol.h"
20 21
21 typedef struct z_stream_s z_stream; // Forward declaration for zlib. 22 typedef struct z_stream_s z_stream; // Forward declaration for zlib.
22 23
23 namespace net { 24 namespace net {
24 25
25 class HttpProxyClientSocketPoolTest; 26 class HttpProxyClientSocketPoolTest;
26 class HttpNetworkLayer; 27 class HttpNetworkLayer;
27 class HttpNetworkTransactionTest; 28 class HttpNetworkTransactionTest;
28 class SpdyHttpStreamTest; 29 class SpdyHttpStreamTest;
29 class SpdyNetworkTransactionTest; 30 class SpdyNetworkTransactionTest;
30 class SpdyProxyClientSocketTest; 31 class SpdyProxyClientSocketTest;
31 class SpdySessionTest; 32 class SpdySessionTest;
32 class SpdyStreamTest; 33 class SpdyStreamTest;
33 class SpdyWebSocketStreamTest; 34 class SpdyWebSocketStreamTest;
34 class WebSocketJobTest; 35 class WebSocketJobTest;
35 36
36 class SpdyFramer; 37 class SpdyFramer;
37 class SpdyFrameBuilder; 38 class SpdyFrameBuilder;
38 class SpdyFramerTest; 39 class SpdyFramerTest;
39 40
40 namespace test { 41 namespace test {
41 42
42 class TestSpdyVisitor; 43 class TestSpdyVisitor;
43 44
44 } // namespace test 45 } // namespace test
45 46
46 // A datastructure for holding a set of headers from either a
47 // SYN_STREAM or SYN_REPLY frame.
48 typedef std::map<std::string, std::string> SpdyHeaderBlock;
49
50 // A datastructure for holding the ID and flag fields for SETTINGS. 47 // A datastructure for holding the ID and flag fields for SETTINGS.
51 // Conveniently handles converstion to/from wire format. 48 // Conveniently handles converstion to/from wire format.
52 class NET_EXPORT_PRIVATE SettingsFlagsAndId { 49 class NET_EXPORT_PRIVATE SettingsFlagsAndId {
53 public: 50 public:
54 static SettingsFlagsAndId FromWireFormat(int version, uint32 wire); 51 static SettingsFlagsAndId FromWireFormat(int version, uint32 wire);
55 52
56 SettingsFlagsAndId() : flags_(0), id_(0) {} 53 SettingsFlagsAndId() : flags_(0), id_(0) {}
57 54
58 // TODO(hkhalil): restrict to enums instead of free-form ints. 55 // TODO(hkhalil): restrict to enums instead of free-form ints.
59 SettingsFlagsAndId(uint8 flags, uint32 id); 56 SettingsFlagsAndId(uint8 flags, uint32 id);
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 // starts with HTTP. If it does, we likely have an HTTP response. This 598 // starts with HTTP. If it does, we likely have an HTTP response. This
602 // isn't guaranteed though: we could have gotten a settings frame and then 599 // isn't guaranteed though: we could have gotten a settings frame and then
603 // corrupt data that just looks like HTTP, but deterministic checking requires 600 // corrupt data that just looks like HTTP, but deterministic checking requires
604 // a lot more state. 601 // a lot more state.
605 bool probable_http_response_; 602 bool probable_http_response_;
606 }; 603 };
607 604
608 } // namespace net 605 } // namespace net
609 606
610 #endif // NET_SPDY_SPDY_FRAMER_H_ 607 #endif // NET_SPDY_SPDY_FRAMER_H_
OLDNEW
« no previous file with comments | « net/spdy/buffered_spdy_framer.h ('k') | net/spdy/spdy_header_block.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698