OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/css/RemoteFontFaceSource.h" | 5 #include "core/css/RemoteFontFaceSource.h" |
6 | 6 |
7 #include "core/css/CSSCustomFontData.h" | 7 #include "core/css/CSSCustomFontData.h" |
8 #include "core/css/CSSFontFace.h" | 8 #include "core/css/CSSFontFace.h" |
9 #include "core/css/CSSFontSelector.h" | 9 #include "core/css/CSSFontSelector.h" |
10 #include "core/dom/Document.h" | 10 #include "core/dom/Document.h" |
11 #include "core/frame/LocalFrameClient.h" | 11 #include "core/frame/LocalFrameClient.h" |
12 #include "core/inspector/ConsoleMessage.h" | 12 #include "core/inspector/ConsoleMessage.h" |
13 #include "core/page/NetworkStateNotifier.h" | |
14 #include "platform/Histogram.h" | 13 #include "platform/Histogram.h" |
15 #include "platform/RuntimeEnabledFeatures.h" | 14 #include "platform/RuntimeEnabledFeatures.h" |
16 #include "platform/fonts/FontCache.h" | 15 #include "platform/fonts/FontCache.h" |
17 #include "platform/fonts/FontCustomPlatformData.h" | 16 #include "platform/fonts/FontCustomPlatformData.h" |
18 #include "platform/fonts/FontDescription.h" | 17 #include "platform/fonts/FontDescription.h" |
19 #include "platform/fonts/SimpleFontData.h" | 18 #include "platform/fonts/SimpleFontData.h" |
20 #include "platform/loader/fetch/ResourceFetcher.h" | 19 #include "platform/loader/fetch/ResourceFetcher.h" |
| 20 #include "platform/network/NetworkStateNotifier.h" |
21 #include "platform/network/ResourceLoadPriority.h" | 21 #include "platform/network/ResourceLoadPriority.h" |
22 #include "public/platform/WebEffectiveConnectionType.h" | 22 #include "public/platform/WebEffectiveConnectionType.h" |
23 #include "wtf/CurrentTime.h" | 23 #include "wtf/CurrentTime.h" |
24 | 24 |
25 namespace blink { | 25 namespace blink { |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 bool isEffectiveConnectionTypeSlowFor(Document* document) { | 29 bool isEffectiveConnectionTypeSlowFor(Document* document) { |
30 WebEffectiveConnectionType type = | 30 WebEffectiveConnectionType type = |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 return Miss; | 478 return Miss; |
479 case FromUnknown: | 479 case FromUnknown: |
480 // Fall through. | 480 // Fall through. |
481 default: | 481 default: |
482 NOTREACHED(); | 482 NOTREACHED(); |
483 } | 483 } |
484 return Miss; | 484 return Miss; |
485 } | 485 } |
486 | 486 |
487 } // namespace blink | 487 } // namespace blink |
OLD | NEW |