123730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved.
223730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
323730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// found in the LICENSE file.
423730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
523730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)#ifndef NET_HTTP_HTTP_LOG_UTIL_
623730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)#define NET_HTTP_HTTP_LOG_UTIL_
723730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
823730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)#include <string>
923730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
1023730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)#include "net/base/net_export.h"
1123730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)#include "net/base/net_log.h"
1223730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
1323730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)namespace net {
1423730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
1523730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// Given an HTTP header |header| with value |value|, returns the elided version
1623730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// of the header value at |log_level|.
1723730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)NET_EXPORT_PRIVATE std::string ElideHeaderValueForNetLog(
1823730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)    NetLog::LogLevel log_level,
1923730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)    const std::string& header,
2023730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)    const std::string& value);
2123730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
2223730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)}  // namespace net
2323730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
2423730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)#endif  // NET_HTTP_HTTP_LOG_UTIL_
25