| 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 #include "core/fetch/ClientHintsPreferences.h" | 5 #include "platform/loader/fetch/ClientHintsPreferences.h" |
| 6 | 6 |
| 7 #include "platform/RuntimeEnabledFeatures.h" | 7 #include "platform/RuntimeEnabledFeatures.h" |
| 8 #include "platform/network/HTTPParsers.h" | 8 #include "platform/network/HTTPParsers.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 ClientHintsPreferences::ClientHintsPreferences() | 12 ClientHintsPreferences::ClientHintsPreferences() |
| 13 : m_shouldSendDPR(false), | 13 : m_shouldSendDPR(false), |
| 14 m_shouldSendResourceWidth(false), | 14 m_shouldSendResourceWidth(false), |
| 15 m_shouldSendViewportWidth(false) {} | 15 m_shouldSendViewportWidth(false) {} |
| (...skipping 26 matching lines...) Expand all Loading... |
| 42 } | 42 } |
| 43 | 43 |
| 44 if (acceptClientHintsHeader.contains("viewport-width")) { | 44 if (acceptClientHintsHeader.contains("viewport-width")) { |
| 45 if (context) | 45 if (context) |
| 46 context->countClientHintsViewportWidth(); | 46 context->countClientHintsViewportWidth(); |
| 47 m_shouldSendViewportWidth = true; | 47 m_shouldSendViewportWidth = true; |
| 48 } | 48 } |
| 49 } | 49 } |
| 50 | 50 |
| 51 } // namespace blink | 51 } // namespace blink |
| OLD | NEW |