| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ClientHintsPreferences_h | 5 #ifndef ClientHintsPreferences_h |
| 6 #define ClientHintsPreferences_h | 6 #define ClientHintsPreferences_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "wtf/Allocator.h" | 9 #include "wtf/Allocator.h" |
| 10 #include "wtf/text/WTFString.h" | 10 #include "wtf/text/WTFString.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class CORE_EXPORT ClientHintsPreferences { | 14 class PLATFORM_EXPORT ClientHintsPreferences { |
| 15 DISALLOW_NEW(); | 15 DISALLOW_NEW(); |
| 16 | 16 |
| 17 public: | 17 public: |
| 18 class Context { | 18 class Context { |
| 19 public: | 19 public: |
| 20 virtual void countClientHintsDPR() = 0; | 20 virtual void countClientHintsDPR() = 0; |
| 21 virtual void countClientHintsResourceWidth() = 0; | 21 virtual void countClientHintsResourceWidth() = 0; |
| 22 virtual void countClientHintsViewportWidth() = 0; | 22 virtual void countClientHintsViewportWidth() = 0; |
| 23 | 23 |
| 24 protected: | 24 protected: |
| (...skipping 20 matching lines...) Expand all Loading... |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 bool m_shouldSendDPR; | 47 bool m_shouldSendDPR; |
| 48 bool m_shouldSendResourceWidth; | 48 bool m_shouldSendResourceWidth; |
| 49 bool m_shouldSendViewportWidth; | 49 bool m_shouldSendViewportWidth; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace blink | 52 } // namespace blink |
| 53 | 53 |
| 54 #endif | 54 #endif |
| OLD | NEW |