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

Unified Diff: Source/core/fetch/CSSStyleSheetResource.h

Issue 954233003: Enable SRI only for same origin and CORS content. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/fetch/CSSStyleSheetResource.h
diff --git a/Source/core/fetch/CSSStyleSheetResource.h b/Source/core/fetch/CSSStyleSheetResource.h
index 01da2164af51667a669bbb9929b47c3f10effc70..b0783fac9c848eaff15d68e8f2414272adb02237 100644
--- a/Source/core/fetch/CSSStyleSheetResource.h
+++ b/Source/core/fetch/CSSStyleSheetResource.h
@@ -51,6 +51,9 @@ public:
PassRefPtrWillBeRawPtr<StyleSheetContents> restoreParsedStyleSheet(const CSSParserContext&);
void saveParsedStyleSheet(PassRefPtrWillBeRawPtr<StyleSheetContents>);
+ void setCORSNeededAndFailed() { m_corsNeededAndFailed = true; }
+ bool isCORSNeededAndFailed() const { return m_corsNeededAndFailed; }
Mike West 2015/02/26 08:44:52 "CORS needed" for what? CORS isn't needed to load
jww 2015/03/06 02:16:42 Agreed and done (that is, moved to Resource).
+
protected:
virtual bool isSafeToUnlock() const override;
virtual void destroyDecodedDataIfPossible() override;
@@ -63,6 +66,8 @@ private:
String m_decodedSheetText;
RefPtrWillBeMember<StyleSheetContents> m_parsedStyleSheetCache;
+
+ bool m_corsNeededAndFailed;
};
DEFINE_RESOURCE_TYPE_CASTS(CSSStyleSheet);

Powered by Google App Engine
This is Rietveld 408576698