| 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 "core/fetch/ClientHintsPreferences.h" |
| 6 | 6 |
| 7 #include "core/fetch/ResourceFetcher.h" | 7 #include "core/fetch/ResourceFetcher.h" |
| 8 #include "platform/RuntimeEnabledFeatures.h" | 8 #include "platform/RuntimeEnabledFeatures.h" |
| 9 #include "platform/network/HTTPParsers.h" | 9 #include "platform/network/HTTPParsers.h" |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 m_shouldSendResourceWidth = true; | 43 m_shouldSendResourceWidth = true; |
| 44 } | 44 } |
| 45 | 45 |
| 46 if (acceptClientHintsHeader.contains("viewport-width")) { | 46 if (acceptClientHintsHeader.contains("viewport-width")) { |
| 47 if (fetcher) | 47 if (fetcher) |
| 48 fetcher->context().countClientHintsViewportWidth(); | 48 fetcher->context().countClientHintsViewportWidth(); |
| 49 m_shouldSendViewportWidth = true; | 49 m_shouldSendViewportWidth = true; |
| 50 } | 50 } |
| 51 } | 51 } |
| 52 | 52 |
| 53 } | 53 } // namespace blink |
| OLD | NEW |