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

Side by Side Diff: third_party/WebKit/Source/platform/loader/fetch/ClientHintsPreferences.cpp

Issue 2584423002: Loading: move core/fetch to platform/loader/fetch (Closed)
Patch Set: another try Created 3 years, 10 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698