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

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

Issue 2780533002: Use Referrer-Policy headers for CSS stylesheets (Closed)
Patch Set: updates Created 3 years, 8 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 // 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 #ifndef LinkStyle_h 5 #ifndef LinkStyle_h
6 #define LinkStyle_h 6 #define LinkStyle_h
7 7
8 #include "core/dom/Node.h" 8 #include "core/dom/Node.h"
9 #include "core/dom/StyleEngine.h" 9 #include "core/dom/StyleEngine.h"
10 #include "core/html/LinkResource.h" 10 #include "core/html/LinkResource.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 return m_disabledState == EnabledViaScript; 54 return m_disabledState == EnabledViaScript;
55 } 55 }
56 bool isUnset() const { return m_disabledState == Unset; } 56 bool isUnset() const { return m_disabledState == Unset; }
57 57
58 CSSStyleSheet* sheet() const { return m_sheet.get(); } 58 CSSStyleSheet* sheet() const { return m_sheet.get(); }
59 59
60 private: 60 private:
61 // From StyleSheetResourceClient 61 // From StyleSheetResourceClient
62 void setCSSStyleSheet(const String& href, 62 void setCSSStyleSheet(const String& href,
63 const KURL& baseURL, 63 const KURL& baseURL,
64 ReferrerPolicy,
64 const String& charset, 65 const String& charset,
65 const CSSStyleSheetResource*) override; 66 const CSSStyleSheetResource*) override;
66 String debugName() const override { return "LinkStyle"; } 67 String debugName() const override { return "LinkStyle"; }
67 enum LoadReturnValue { Loaded, NotNeeded, Bail }; 68 enum LoadReturnValue { Loaded, NotNeeded, Bail };
68 LoadReturnValue loadStylesheetIfNeeded(const LinkRequestBuilder&, 69 LoadReturnValue loadStylesheetIfNeeded(const LinkRequestBuilder&,
69 const String& type); 70 const String& type);
70 71
71 enum DisabledState { Unset, EnabledViaScript, Disabled }; 72 enum DisabledState { Unset, EnabledViaScript, Disabled };
72 73
73 enum PendingSheetType { None, NonBlocking, Blocking }; 74 enum PendingSheetType { None, NonBlocking, Blocking };
(...skipping 16 matching lines...) Expand all
90 StyleEngineContext m_styleEngineContext; 91 StyleEngineContext m_styleEngineContext;
91 bool m_loading; 92 bool m_loading;
92 bool m_firedLoad; 93 bool m_firedLoad;
93 bool m_loadedSheet; 94 bool m_loadedSheet;
94 bool m_fetchFollowingCORS; 95 bool m_fetchFollowingCORS;
95 }; 96 };
96 97
97 } // namespace blink 98 } // namespace blink
98 99
99 #endif 100 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp ('k') | third_party/WebKit/Source/core/html/LinkStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698