Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Unified Diff: third_party/WebKit/Source/core/fetch/ClientHintsPreferences.h

Issue 2584423002: Loading: move core/fetch to platform/loader/fetch (Closed)
Patch Set: another try Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698