| Index: third_party/WebKit/Source/core/fetch/ClientHintsPreferences.h
|
| diff --git a/third_party/WebKit/Source/core/fetch/ClientHintsPreferences.h b/third_party/WebKit/Source/core/fetch/ClientHintsPreferences.h
|
| deleted file mode 100644
|
| index 996fd3aad9a40a784c70ac446bf8f3ef6340e785..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/Source/core/fetch/ClientHintsPreferences.h
|
| +++ /dev/null
|
| @@ -1,54 +0,0 @@
|
| -// Copyright 2015 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 ClientHintsPreferences_h
|
| -#define ClientHintsPreferences_h
|
| -
|
| -#include "core/CoreExport.h"
|
| -#include "wtf/Allocator.h"
|
| -#include "wtf/text/WTFString.h"
|
| -
|
| -namespace blink {
|
| -
|
| -class CORE_EXPORT ClientHintsPreferences {
|
| - DISALLOW_NEW();
|
| -
|
| - public:
|
| - class Context {
|
| - public:
|
| - virtual void countClientHintsDPR() = 0;
|
| - virtual void countClientHintsResourceWidth() = 0;
|
| - virtual void countClientHintsViewportWidth() = 0;
|
| -
|
| - protected:
|
| - virtual ~Context() {}
|
| - };
|
| -
|
| - ClientHintsPreferences();
|
| -
|
| - void updateFrom(const ClientHintsPreferences&);
|
| - void updateFromAcceptClientHintsHeader(const String& headerValue, Context*);
|
| -
|
| - bool shouldSendDPR() const { return m_shouldSendDPR; }
|
| - void setShouldSendDPR(bool should) { m_shouldSendDPR = should; }
|
| -
|
| - bool shouldSendResourceWidth() const { return m_shouldSendResourceWidth; }
|
| - void setShouldSendResourceWidth(bool should) {
|
| - m_shouldSendResourceWidth = should;
|
| - }
|
| -
|
| - bool shouldSendViewportWidth() const { return m_shouldSendViewportWidth; }
|
| - void setShouldSendViewportWidth(bool should) {
|
| - m_shouldSendViewportWidth = should;
|
| - }
|
| -
|
| - private:
|
| - bool m_shouldSendDPR;
|
| - bool m_shouldSendResourceWidth;
|
| - bool m_shouldSendViewportWidth;
|
| -};
|
| -
|
| -} // namespace blink
|
| -
|
| -#endif
|
|
|