Switch global error menu icon to vectorized MD asset
[chromium-blink-merge.git] / net / tools / quic / spdy_balsa_utils.h
blob55389b6619d0f6ae5a9d9f7e119b5619c55761b0
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.
5 #ifndef NET_TOOLS_QUIC_SPDY_BALSA_UTILS_H_
6 #define NET_TOOLS_QUIC_SPDY_BALSA_UTILS_H_
8 #include <string>
10 #include "net/quic/quic_protocol.h"
11 #include "net/spdy/spdy_framer.h"
12 #include "net/spdy/spdy_header_block.h"
13 #include "net/spdy/spdy_protocol.h"
14 #include "net/tools/balsa/balsa_headers.h"
16 namespace net {
17 namespace tools {
19 class SpdyBalsaUtils {
20 public:
21 static std::string SerializeResponseHeaders(
22 const BalsaHeaders& response_headers,
23 QuicVersion quic_version);
25 static SpdyHeaderBlock RequestHeadersToSpdyHeaders(
26 const BalsaHeaders& request_headers,
27 QuicVersion quic_version);
29 static SpdyHeaderBlock ResponseHeadersToSpdyHeaders(
30 const BalsaHeaders& response_headers,
31 QuicVersion quic_version);
33 static void SpdyHeadersToResponseHeaders(const SpdyHeaderBlock& block,
34 BalsaHeaders* headers,
35 QuicVersion quic_version);
37 static void SpdyHeadersToRequestHeaders(const SpdyHeaderBlock& block,
38 BalsaHeaders* headers,
39 QuicVersion quic_version);
41 private:
42 DISALLOW_COPY_AND_ASSIGN(SpdyBalsaUtils);
45 } // namespace tools
46 } // namespace net
48 #endif // NET_TOOLS_QUIC_SPDY_BALSA_UTILS_H_