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
content / browser / origin_trials / origin_trials_utils.h [blame]
// Copyright 2022 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_BROWSER_ORIGIN_TRIALS_ORIGIN_TRIALS_UTILS_H_
#define CONTENT_BROWSER_ORIGIN_TRIALS_ORIGIN_TRIALS_UTILS_H_
#include <string>
#include <vector>
namespace net {
class HttpResponseHeaders;
} // namespace net
namespace content {
// Get values of the "Origin-Trial" header.
std::vector<std::string> GetOriginTrialHeaderValues(
const net::HttpResponseHeaders* headers);
// Get values of the "Critical-Origin-Trial" header.
std::vector<std::string> GetCriticalOriginTrialHeaderValues(
const net::HttpResponseHeaders* headers);
} // namespace content
#endif // CONTENT_BROWSER_ORIGIN_TRIALS_ORIGIN_TRIALS_UTILS_H_