summaryrefslogtreecommitdiffstats
path: root/net/quic/quic_http_utils.h
blob: a62b9ef3bd8e0afdf8336540f6a51dfda9813e03 (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
// Copyright 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_QUIC_HTTP_UTILS_H_
#define NET_QUIC_QUIC_HTTP_UTILS_H_

#include "base/values.h"
#include "net/base/net_export.h"
#include "net/base/request_priority.h"
#include "net/quic/quic_protocol.h"
#include "net/spdy/spdy_header_block.h"

namespace net {

NET_EXPORT_PRIVATE QuicPriority ConvertRequestPriorityToQuicPriority(
    RequestPriority priority);

NET_EXPORT_PRIVATE RequestPriority ConvertQuicPriorityToRequestPriority(
    QuicPriority priority);

// Converts a SpdyHeaderBlock and priority into NetLog event parameters.  Caller
// takes ownership of returned value.
NET_EXPORT base::Value* QuicRequestNetLogCallback(
    const SpdyHeaderBlock* headers,
    QuicPriority priority,
    NetLog::LogLevel log_level);

}  // namespace net

#endif  // NET_QUIC_QUIC_HTTP_UTILS_H_