| 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 "platform/Histogram.h" | 13 #include "platform/Histogram.h" |
| 14 #include "platform/RuntimeEnabledFeatures.h" | 14 #include "platform/RuntimeEnabledFeatures.h" |
| 15 #include "platform/fonts/FontCache.h" | 15 #include "platform/fonts/FontCache.h" |
| 16 #include "platform/fonts/FontCustomPlatformData.h" | 16 #include "platform/fonts/FontCustomPlatformData.h" |
| 17 #include "platform/fonts/FontDescription.h" | 17 #include "platform/fonts/FontDescription.h" |
| 18 #include "platform/fonts/SimpleFontData.h" | 18 #include "platform/fonts/SimpleFontData.h" |
| 19 #include "platform/loader/fetch/ResourceFetcher.h" | 19 #include "platform/loader/fetch/ResourceFetcher.h" |
| 20 #include "platform/loader/fetch/ResourceLoadPriority.h" | 20 #include "platform/loader/fetch/ResourceLoadPriority.h" |
| 21 #include "platform/network/NetworkStateNotifier.h" | 21 #include "platform/network/NetworkStateNotifier.h" |
| 22 #include "platform/wtf/CurrentTime.h" |
| 22 #include "public/platform/WebEffectiveConnectionType.h" | 23 #include "public/platform/WebEffectiveConnectionType.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 = |
| 31 document->GetFrame()->Loader().Client()->GetEffectiveConnectionType(); | 31 document->GetFrame()->Loader().Client()->GetEffectiveConnectionType(); |
| 32 | 32 |
| 33 WebEffectiveConnectionType threshold_type = | 33 WebEffectiveConnectionType threshold_type = |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 return kMiss; | 485 return kMiss; |
| 486 case kFromUnknown: | 486 case kFromUnknown: |
| 487 // Fall through. | 487 // Fall through. |
| 488 default: | 488 default: |
| 489 NOTREACHED(); | 489 NOTREACHED(); |
| 490 } | 490 } |
| 491 return kMiss; | 491 return kMiss; |
| 492 } | 492 } |
| 493 | 493 |
| 494 } // namespace blink | 494 } // namespace blink |
| OLD | NEW |