| 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/fetch/ResourceFetcher.h" | |
| 12 #include "core/inspector/ConsoleMessage.h" | 11 #include "core/inspector/ConsoleMessage.h" |
| 13 #include "core/loader/FrameLoaderClient.h" | 12 #include "core/loader/FrameLoaderClient.h" |
| 14 #include "core/page/NetworkStateNotifier.h" | 13 #include "core/page/NetworkStateNotifier.h" |
| 15 #include "platform/Histogram.h" | 14 #include "platform/Histogram.h" |
| 16 #include "platform/RuntimeEnabledFeatures.h" | 15 #include "platform/RuntimeEnabledFeatures.h" |
| 17 #include "platform/fonts/FontCache.h" | 16 #include "platform/fonts/FontCache.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" |
| 19 #include "platform/loader/fetch/ResourceFetcher.h" |
| 20 #include "platform/network/ResourceLoadPriority.h" | 20 #include "platform/network/ResourceLoadPriority.h" |
| 21 #include "public/platform/WebEffectiveConnectionType.h" | 21 #include "public/platform/WebEffectiveConnectionType.h" |
| 22 #include "wtf/CurrentTime.h" | 22 #include "wtf/CurrentTime.h" |
| 23 | 23 |
| 24 namespace blink { | 24 namespace blink { |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 bool isEffectiveConnectionTypeSlowFor(Document* document) { | 28 bool isEffectiveConnectionTypeSlowFor(Document* document) { |
| 29 WebEffectiveConnectionType type = | 29 WebEffectiveConnectionType type = |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 return Miss; | 466 return Miss; |
| 467 case FromUnknown: | 467 case FromUnknown: |
| 468 // Fall through. | 468 // Fall through. |
| 469 default: | 469 default: |
| 470 NOTREACHED(); | 470 NOTREACHED(); |
| 471 } | 471 } |
| 472 return Miss; | 472 return Miss; |
| 473 } | 473 } |
| 474 | 474 |
| 475 } // namespace blink | 475 } // namespace blink |
| OLD | NEW |