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

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

Issue 2504883003: Loading: move *StyleSheetResource to core/loader/resource (Closed)
Patch Set: [rebase] Created 4 years 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 // 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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/LinkStyle.h ('k') | third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698