
Generated mechanically as follows:
git ls-files '*.h' | grep -E '^content/' | \
xargs parallel cpplint.py --filter=-,+build/header_guard -- 2>&1 | \
grep build/header_guard | tools/apply_cpplint_header_guard.py
Bug: 1200694
Change-Id: Iaf6b1c84150d617c3eecc69fb0751ad76dd7fe3a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2839364
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#874577}
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
// Copyright 2019 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 CONTENT_TEST_MOCK_CLIENT_HINTS_UTILS_H_
|
|
#define CONTENT_TEST_MOCK_CLIENT_HINTS_UTILS_H_
|
|
|
|
#include "content/public/common/origin_util.h"
|
|
#include "third_party/blink/public/platform/web_client_hints_type.h"
|
|
#include "third_party/blink/public/platform/web_url.h"
|
|
|
|
namespace content {
|
|
|
|
struct ClientHintsPersistencyData {
|
|
blink::WebEnabledClientHints client_hints;
|
|
base::Time expiration;
|
|
};
|
|
|
|
using ClientHintsContainer =
|
|
std::map<const url::Origin, ClientHintsPersistencyData>;
|
|
|
|
bool PersistClientHintsHelper(
|
|
const GURL& url,
|
|
const blink::WebEnabledClientHints& enabled_client_hints,
|
|
base::TimeDelta expiration_duration,
|
|
ClientHintsContainer* container);
|
|
|
|
void GetAllowedClientHintsFromSourceHelper(
|
|
const GURL& url,
|
|
const ClientHintsContainer& container,
|
|
blink::WebEnabledClientHints* client_hints);
|
|
|
|
} // namespace content
|
|
|
|
#endif // CONTENT_TEST_MOCK_CLIENT_HINTS_UTILS_H_
|