diff options
Diffstat (limited to 'chromium/chrome/common/client_hints/client_hints.h')
-rw-r--r-- | chromium/chrome/common/client_hints/client_hints.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/chromium/chrome/common/client_hints/client_hints.h b/chromium/chrome/common/client_hints/client_hints.h new file mode 100644 index 00000000000..a904642a1bb --- /dev/null +++ b/chromium/chrome/common/client_hints/client_hints.h @@ -0,0 +1,28 @@ +// Copyright 2017 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 CHROME_COMMON_CLIENT_HINTS_CLIENT_HINTS_H_ +#define CHROME_COMMON_CLIENT_HINTS_CLIENT_HINTS_H_ + +#include "components/content_settings/core/common/content_settings.h" + +class GURL; + +namespace blink { +struct WebEnabledClientHints; +} + +namespace client_hints { + +// Retrieves the persistent client hints that should be set when fetching a +// resource from |url|. The method updates |client_hints| with the result. +// |client_hints_rules| contains the content settings for the client hints. +void GetAllowedClientHintsFromSource( + const GURL& url, + const ContentSettingsForOneType& client_hints_rules, + blink::WebEnabledClientHints* client_hints); + +} // namespace client_hints + +#endif // CHROME_COMMON_CLIENT_HINTS_CLIENT_HINTS_H_ |