summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/loader/frame_client_hints_preferences_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/loader/frame_client_hints_preferences_context.h')
-rw-r--r--chromium/third_party/blink/renderer/core/loader/frame_client_hints_preferences_context.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/loader/frame_client_hints_preferences_context.h b/chromium/third_party/blink/renderer/core/loader/frame_client_hints_preferences_context.h
new file mode 100644
index 00000000000..4be4bc4a6af
--- /dev/null
+++ b/chromium/third_party/blink/renderer/core/loader/frame_client_hints_preferences_context.h
@@ -0,0 +1,31 @@
+// Copyright 2016 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 THIRD_PARTY_BLINK_RENDERER_CORE_LOADER_FRAME_CLIENT_HINTS_PREFERENCES_CONTEXT_H_
+#define THIRD_PARTY_BLINK_RENDERER_CORE_LOADER_FRAME_CLIENT_HINTS_PREFERENCES_CONTEXT_H_
+
+#include "third_party/blink/renderer/platform/heap/persistent.h"
+#include "third_party/blink/renderer/platform/loader/fetch/client_hints_preferences.h"
+#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
+
+namespace blink {
+
+class LocalFrame;
+
+class FrameClientHintsPreferencesContext final
+ : public ClientHintsPreferences::Context {
+ STACK_ALLOCATED();
+
+ public:
+ explicit FrameClientHintsPreferencesContext(LocalFrame*);
+
+ void CountClientHints(network::mojom::WebClientHintsType) override;
+
+ private:
+ LocalFrame* frame_;
+};
+
+} // namespace blink
+
+#endif // THIRD_PARTY_BLINK_RENDERER_CORE_LOADER_FRAME_CLIENT_HINTS_PREFERENCES_CONTEXT_H_