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

content / public / browser / frame_accept_header.h [blame]

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_PUBLIC_BROWSER_FRAME_ACCEPT_HEADER_H_
#define CONTENT_PUBLIC_BROWSER_FRAME_ACCEPT_HEADER_H_

#include <string>

#include "content/common/content_export.h"

namespace content {
class BrowserContext;

// The value that should be set for the "Accept" header for frame navigations.
// Includes signed exchange and image decoder information (when applicable) that
// are not available from the network service. This may also accept signed
// exchange responses when |allow_sxg_responses| is true.
CONTENT_EXPORT std::string FrameAcceptHeaderValue(
    bool allow_sxg_responses,
    BrowserContext* browser_context);

}  // namespace content

#endif  // CONTENT_PUBLIC_BROWSER_FRAME_ACCEPT_HEADER_H_