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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp

Issue 1976463003: Preload scan external CSS for @import (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add CORE_EXPORT to StyleSheetResourceClient Created 4 years, 4 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 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/ 3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/
4 * Copyright (C) 2010 Google Inc. All Rights Reserved. 4 * Copyright (C) 2010 Google Inc. All Rights Reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 27 matching lines...) Expand all
38 #include "core/frame/LocalFrame.h" 38 #include "core/frame/LocalFrame.h"
39 #include "core/frame/Settings.h" 39 #include "core/frame/Settings.h"
40 #include "core/frame/SubresourceIntegrity.h" 40 #include "core/frame/SubresourceIntegrity.h"
41 #include "core/html/CrossOriginAttribute.h" 41 #include "core/html/CrossOriginAttribute.h"
42 #include "core/html/HTMLImageElement.h" 42 #include "core/html/HTMLImageElement.h"
43 #include "core/html/HTMLMetaElement.h" 43 #include "core/html/HTMLMetaElement.h"
44 #include "core/html/LinkRelAttribute.h" 44 #include "core/html/LinkRelAttribute.h"
45 #include "core/html/parser/HTMLParserIdioms.h" 45 #include "core/html/parser/HTMLParserIdioms.h"
46 #include "core/html/parser/HTMLSrcsetParser.h" 46 #include "core/html/parser/HTMLSrcsetParser.h"
47 #include "core/html/parser/HTMLTokenizer.h" 47 #include "core/html/parser/HTMLTokenizer.h"
48 #include "core/html/parser/ResourcePreloader.h"
48 #include "core/loader/LinkLoader.h" 49 #include "core/loader/LinkLoader.h"
49 #include "platform/ContentType.h" 50 #include "platform/ContentType.h"
50 #include "platform/Histogram.h" 51 #include "platform/Histogram.h"
51 #include "platform/MIMETypeRegistry.h" 52 #include "platform/MIMETypeRegistry.h"
52 #include "platform/TraceEvent.h" 53 #include "platform/TraceEvent.h"
53 #include <memory> 54 #include <memory>
54 55
55 namespace blink { 56 namespace blink {
56 57
57 namespace { 58 namespace {
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 ASSERT(document); 811 ASSERT(document);
811 doHtmlPreloadScanning = !document->settings() || document->settings()->doHtm lPreloadScanning(); 812 doHtmlPreloadScanning = !document->settings() || document->settings()->doHtm lPreloadScanning();
812 doDocumentWritePreloadScanning = doHtmlPreloadScanning && document->frame() && document->frame()->isMainFrame(); 813 doDocumentWritePreloadScanning = doHtmlPreloadScanning && document->frame() && document->frame()->isMainFrame();
813 defaultViewportMinWidth = document->viewportDefaultMinWidth(); 814 defaultViewportMinWidth = document->viewportDefaultMinWidth();
814 viewportMetaZeroValuesQuirk = document->settings() && document->settings()-> viewportMetaZeroValuesQuirk(); 815 viewportMetaZeroValuesQuirk = document->settings() && document->settings()-> viewportMetaZeroValuesQuirk();
815 viewportMetaEnabled = document->settings() && document->settings()->viewport MetaEnabled(); 816 viewportMetaEnabled = document->settings() && document->settings()->viewport MetaEnabled();
816 referrerPolicy = document->getReferrerPolicy(); 817 referrerPolicy = document->getReferrerPolicy();
817 } 818 }
818 819
819 } // namespace blink 820 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698