OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef NET_TOOLS_QUIC_SPDY_BALSA_UTILS_H_ | |
6 #define NET_TOOLS_QUIC_SPDY_BALSA_UTILS_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/macros.h" | |
11 #include "net/quic/core/quic_protocol.h" | |
12 #include "net/spdy/spdy_framer.h" | |
13 #include "net/spdy/spdy_header_block.h" | |
14 #include "net/spdy/spdy_protocol.h" | |
15 #include "net/tools/balsa/balsa_headers.h" | |
16 | |
17 namespace net { | |
18 | |
19 class SpdyBalsaUtils { | |
20 public: | |
21 static std::string SerializeResponseHeaders( | |
22 const BalsaHeaders& response_headers); | |
23 | |
24 static SpdyHeaderBlock RequestHeadersToSpdyHeaders( | |
25 const BalsaHeaders& request_headers); | |
26 | |
27 static SpdyHeaderBlock ResponseHeadersToSpdyHeaders( | |
28 const BalsaHeaders& response_headers); | |
29 | |
30 static void SpdyHeadersToResponseHeaders(const SpdyHeaderBlock& block, | |
31 BalsaHeaders* headers); | |
32 | |
33 static void SpdyHeadersToRequestHeaders(const SpdyHeaderBlock& block, | |
34 BalsaHeaders* headers); | |
35 | |
36 private: | |
37 DISALLOW_COPY_AND_ASSIGN(SpdyBalsaUtils); | |
38 }; | |
39 | |
40 } // namespace net | |
41 | |
42 #endif // NET_TOOLS_QUIC_SPDY_BALSA_UTILS_H_ | |
OLD | NEW |