| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/html/LinkStyle.h" | 5 #include "core/html/LinkStyle.h" |
| 6 | 6 |
| 7 #include "core/css/StyleSheetContents.h" | 7 #include "core/css/StyleSheetContents.h" |
| 8 #include "core/fetch/CSSStyleSheetResource.h" | |
| 9 #include "core/frame/LocalFrame.h" | 8 #include "core/frame/LocalFrame.h" |
| 10 #include "core/frame/SubresourceIntegrity.h" | 9 #include "core/frame/SubresourceIntegrity.h" |
| 11 #include "core/frame/csp/ContentSecurityPolicy.h" | 10 #include "core/frame/csp/ContentSecurityPolicy.h" |
| 12 #include "core/html/CrossOriginAttribute.h" | 11 #include "core/html/CrossOriginAttribute.h" |
| 13 #include "core/html/HTMLLinkElement.h" | 12 #include "core/html/HTMLLinkElement.h" |
| 14 #include "core/loader/FrameLoaderClient.h" | 13 #include "core/loader/FrameLoaderClient.h" |
| 14 #include "core/loader/resource/CSSStyleSheetResource.h" |
| 15 #include "platform/ContentType.h" | 15 #include "platform/ContentType.h" |
| 16 #include "platform/Histogram.h" | 16 #include "platform/Histogram.h" |
| 17 #include "platform/MIMETypeRegistry.h" | 17 #include "platform/MIMETypeRegistry.h" |
| 18 | 18 |
| 19 namespace blink { | 19 namespace blink { |
| 20 | 20 |
| 21 using namespace HTMLNames; | 21 using namespace HTMLNames; |
| 22 | 22 |
| 23 static bool styleSheetTypeIsSupported(const String& type) { | 23 static bool styleSheetTypeIsSupported(const String& type) { |
| 24 String trimmedType = ContentType(type).type(); | 24 String trimmedType = ContentType(type).type(); |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 removePendingSheet(); | 421 removePendingSheet(); |
| 422 } | 422 } |
| 423 | 423 |
| 424 DEFINE_TRACE(LinkStyle) { | 424 DEFINE_TRACE(LinkStyle) { |
| 425 visitor->trace(m_sheet); | 425 visitor->trace(m_sheet); |
| 426 LinkResource::trace(visitor); | 426 LinkResource::trace(visitor); |
| 427 ResourceOwner<StyleSheetResource>::trace(visitor); | 427 ResourceOwner<StyleSheetResource>::trace(visitor); |
| 428 } | 428 } |
| 429 | 429 |
| 430 } // namespace blink | 430 } // namespace blink |
| OLD | NEW |