Index: Source/core/css/CSSStyleSheet.h |
diff --git a/Source/core/css/CSSStyleSheet.h b/Source/core/css/CSSStyleSheet.h |
index 87cd4fd20410622e205b819bdee43a44466232d8..a26e032201c7c4696f4f1f08ee291680d43d0ec6 100644 |
--- a/Source/core/css/CSSStyleSheet.h |
+++ b/Source/core/css/CSSStyleSheet.h |
@@ -36,6 +36,7 @@ class CSSStyleSheet; |
class Document; |
class ExceptionState; |
class MediaQuerySet; |
+class SecurityOrigin; |
class StyleSheetContents; |
enum StyleSheetUpdateType { |
@@ -87,6 +88,8 @@ public: |
MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); } |
void setMediaQueries(PassRefPtrWillBeRawPtr<MediaQuerySet>); |
void setTitle(const String& title) { m_title = title; } |
+ // Set by LinkStyle iff CORS-enabled fetch of stylesheet succeeded from this origin. |
+ void setAllowRuleAccessFromOrigin(PassRefPtr<SecurityOrigin> allowedOrigin); |
class RuleMutationScope { |
WTF_MAKE_NONCOPYABLE(RuleMutationScope); |
@@ -136,6 +139,8 @@ private: |
String m_title; |
RefPtrWillBeMember<MediaQuerySet> m_mediaQueries; |
+ RefPtr<SecurityOrigin> m_allowRuleAccessFromOrigin; |
+ |
RawPtrWillBeMember<Node> m_ownerNode; |
RawPtrWillBeMember<CSSRule> m_ownerRule; |