blob: ac13c2e591f1c5517e30c3f451fe9d7d98de59b6 [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 {
const SpdyMajorVersion kDefaultSpdyMajorVersion = SPDY3;
class NET_EXPORT_PRIVATE SpdyUtils {
public:
static SpdyMajorVersion GetSpdyVersionForQuicVersion(
QuicVersion quic_version);
static std::string SerializeUncompressedHeaders(
const SpdyHeaderBlock& headers,
QuicVersion version);
static SpdyHeaderBlock ConvertSpdy3ResponseHeadersToSpdy4(
SpdyHeaderBlock response_headers);
private:
DISALLOW_COPY_AND_ASSIGN(SpdyUtils);
};
} // namespace net
#endif // NET_QUIC_SPDY_UTILS_H_