summaryrefslogtreecommitdiff
path: root/chromium/chrome/common/client_hints/client_hints.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-02-13 10:55:42 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-03-05 13:33:38 +0000
commit248b70b82a40964d5594eb04feca0fa36716185d (patch)
tree44e31d9dd0ac2cb79f48633eefbc5496e013c347 /chromium/chrome/common/client_hints/client_hints.h
parentcabfcdd1db482729ded525feae56911a99792773 (diff)
downloadqtwebengine-chromium-248b70b82a40964d5594eb04feca0fa36716185d.tar.gz
BASELINE: Update Chromium to 79.0.3945.147
And new simplified snapshot filter Change-Id: I7c692bedd5b3833f05565bd6f6939115350b233a Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/chrome/common/client_hints/client_hints.h')
-rw-r--r--chromium/chrome/common/client_hints/client_hints.h28
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_