| Index: third_party/WebKit/Source/core/loader/FrameClientHintsPreferencesContext.h
|
| diff --git a/third_party/WebKit/Source/core/loader/FrameClientHintsPreferencesContext.h b/third_party/WebKit/Source/core/loader/FrameClientHintsPreferencesContext.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..260842af3b3c6d7679ad5246d71b7b919ecaf544
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/loader/FrameClientHintsPreferencesContext.h
|
| @@ -0,0 +1,32 @@
|
| +// 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 FrameClientHintsPreferencesContext_h
|
| +#define FrameClientHintsPreferencesContext_h
|
| +
|
| +#include "core/fetch/ClientHintsPreferences.h"
|
| +#include "core/frame/Frame.h"
|
| +#include "platform/heap/Persistent.h"
|
| +#include "wtf/Allocator.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class FrameClientHintsPreferencesContext final
|
| + : public ClientHintsPreferences::Context {
|
| + STACK_ALLOCATED();
|
| +
|
| + public:
|
| + explicit FrameClientHintsPreferencesContext(Frame*);
|
| +
|
| + void countClientHintsDPR() override;
|
| + void countClientHintsResourceWidth() override;
|
| + void countClientHintsViewportWidth() override;
|
| +
|
| + private:
|
| + Member<Frame> m_frame;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // FrameClientHintsPreferencesContext_h
|
|
|