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

Side by Side Diff: trunk/src/net/tools/quic/spdy_utils.h

Issue 15018013: Revert 198736 "Land Recent QUIC changes" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 7 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
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_TOOLS_QUIC_SPDY_UTILS_H_ 5 #ifndef NET_TOOLS_QUIC_SPDY_UTILS_H_
6 #define NET_TOOLS_QUIC_SPDY_UTILS_H_ 6 #define NET_TOOLS_QUIC_SPDY_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/spdy/spdy_framer.h"
11 #include "net/spdy/spdy_header_block.h" 10 #include "net/spdy/spdy_header_block.h"
12 #include "net/spdy/spdy_protocol.h" 11 #include "net/spdy/spdy_protocol.h"
13 #include "net/tools/flip_server/balsa_headers.h" 12 #include "net/tools/flip_server/balsa_headers.h"
14 13
15 namespace net { 14 namespace net {
16 namespace tools { 15 namespace tools {
17 16
18 class SpdyUtils { 17 class SpdyUtils {
19 public: 18 public:
20 static std::string SerializeRequestHeaders( 19 static std::string SerializeRequestHeaders(
21 const BalsaHeaders& request_headers); 20 const BalsaHeaders& request_headers);
22 21
23 static std::string SerializeResponseHeaders( 22 static std::string SerializeResponseHeaders(
24 const BalsaHeaders& response_headers); 23 const BalsaHeaders& response_headers);
25 24
26 static bool FillBalsaRequestHeaders(const SpdyHeaderBlock& header_block, 25 static bool FillBalsaRequestHeaders(const SpdyHeaderBlock& header_block,
27 BalsaHeaders* request_headers); 26 BalsaHeaders* request_headers);
28 27
29 static bool FillBalsaResponseHeaders(const SpdyHeaderBlock& header_block, 28 static bool FillBalsaResponseHeaders(const SpdyHeaderBlock& header_block,
30 BalsaHeaders* response_headers); 29 BalsaHeaders* response_headers);
31
32 static SpdyHeaderBlock RequestHeadersToSpdyHeaders(
33 const BalsaHeaders& request_headers);
34
35 static SpdyHeaderBlock ResponseHeadersToSpdyHeaders(
36 const BalsaHeaders& response_headers);
37
38 static std::string SerializeUncompressedHeaders(
39 const SpdyHeaderBlock& headers);
40 }; 30 };
41 31
42 } // namespace tools 32 } // namespace tools
43 } // namespace net 33 } // namespace net
44 34
45 #endif // NET_TOOLS_QUIC_SPDY_UTILS_H_ 35 #endif // NET_TOOLS_QUIC_SPDY_UTILS_H_
OLDNEW
« no previous file with comments | « trunk/src/net/tools/quic/quic_spdy_server_stream.cc ('k') | trunk/src/net/tools/quic/spdy_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698