summaryrefslogtreecommitdiffstats
path: root/chromium/net/quic/spdy_utils.h
blob: 86f6d3a5c47582300780c3f851b1de82f06e246a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef NET_QUIC_SPDY_UTILS_H_
#define NET_QUIC_SPDY_UTILS_H_

#include <string>

#include "net/base/net_export.h"
#include "net/quic/quic_protocol.h"
#include "net/spdy/spdy_framer.h"

namespace net {

class NET_EXPORT_PRIVATE SpdyUtils {
 public:
  static SpdyMajorVersion GetSpdyVersionForQuicVersion(
      QuicVersion quic_version);

  static SpdyHeaderBlock ConvertSpdy3ResponseHeadersToSpdy4(
      SpdyHeaderBlock response_headers);

  static std::string SerializeUncompressedHeaders(
      const SpdyHeaderBlock& headers,
      QuicVersion version);

 private:
  DISALLOW_COPY_AND_ASSIGN(SpdyUtils);
};

}  // namespace net

#endif  // NET_QUIC_SPDY_UTILS_H_