blob: 7ed0bae3d4c7a48017c7270c2e3fddcdec3dbb17 [file] [log] [blame]
// Copyright 2018 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 COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_COMMON_HEADER_UTIL_H_
#define COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_COMMON_HEADER_UTIL_H_
#include "content/public/common/previews_state.h"
#include "content/public/common/resource_type.h"
class GURL;
namespace net {
class HttpRequestHeaders;
}
namespace data_reduction_proxy {
// Adds a previews-specific directive to the Chrome-Proxy-Accept-Transform
// header if needed.
void MaybeSetAcceptTransformHeader(const GURL& url,
content::ResourceType resource_type,
content::PreviewsState previews_state,
net::HttpRequestHeaders* headers);
} // namespace data_reduction_proxy
#endif // COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_COMMON_HEADER_UTIL_H_