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

Unified Diff: third_party/WebKit/Source/core/dom/ScriptLoaderClient.h

Issue 2644143005: Adjust the <script nonce>-hiding experiment (Closed)
Patch Set: webexposed Created 3 years, 11 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: third_party/WebKit/Source/core/dom/ScriptLoaderClient.h
diff --git a/third_party/WebKit/Source/core/dom/ScriptLoaderClient.h b/third_party/WebKit/Source/core/dom/ScriptLoaderClient.h
index 406627f5263f2fce28b66b1b46255bf4ad85067c..3e9fd7ed9ac79467943a03de6331b91203eb7faa 100644
--- a/third_party/WebKit/Source/core/dom/ScriptLoaderClient.h
+++ b/third_party/WebKit/Source/core/dom/ScriptLoaderClient.h
@@ -43,9 +43,11 @@ class CORE_EXPORT ScriptLoaderClient {
virtual bool deferAttributeValue() const = 0;
virtual bool hasSourceAttribute() const = 0;
- virtual AtomicString nonce() const = 0;
- virtual void setNonce(const String&) = 0;
- virtual void clearNonce() = 0;
+ AtomicString nonce() const { return m_nonce; }
+ void setNonce(const String& nonce) { m_nonce = AtomicString(nonce); }
+
+ private:
+ AtomicString m_nonce;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptLoader.cpp ('k') | third_party/WebKit/Source/core/html/HTMLScriptElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698