OLD | NEW |
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_header_block.h" | 10 #include "net/spdy/spdy_header_block.h" |
11 #include "net/spdy/spdy_protocol.h" | 11 #include "net/spdy/spdy_protocol.h" |
12 #include "net/tools/flip_server/balsa_headers.h" | 12 #include "net/tools/flip_server/balsa_headers.h" |
13 | 13 |
14 namespace net { | 14 namespace net { |
| 15 namespace tools { |
15 | 16 |
16 class SpdyUtils { | 17 class SpdyUtils { |
17 public: | 18 public: |
18 static std::string SerializeRequestHeaders( | 19 static std::string SerializeRequestHeaders( |
19 const BalsaHeaders& request_headers); | 20 const BalsaHeaders& request_headers); |
20 | 21 |
21 static std::string SerializeResponseHeaders( | 22 static std::string SerializeResponseHeaders( |
22 const BalsaHeaders& response_headers); | 23 const BalsaHeaders& response_headers); |
23 | 24 |
24 static bool FillBalsaRequestHeaders(const SpdyHeaderBlock& header_block, | 25 static bool FillBalsaRequestHeaders(const SpdyHeaderBlock& header_block, |
25 BalsaHeaders* request_headers); | 26 BalsaHeaders* request_headers); |
26 | 27 |
27 static bool FillBalsaResponseHeaders(const SpdyHeaderBlock& header_block, | 28 static bool FillBalsaResponseHeaders(const SpdyHeaderBlock& header_block, |
28 BalsaHeaders* response_headers); | 29 BalsaHeaders* response_headers); |
29 }; | 30 }; |
30 | 31 |
| 32 } // namespace tools |
31 } // namespace net | 33 } // namespace net |
32 | 34 |
33 #endif // NET_TOOLS_QUIC_SPDY_UTILS_H_ | 35 #endif // NET_TOOLS_QUIC_SPDY_UTILS_H_ |
OLD | NEW |