blob: 86f6d3a5c47582300780c3f851b1de82f06e246a [file] [log] [blame]
// 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_