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

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

Issue 2628733005: Experiment with hiding <script>'s 'nonce' content attribute. (Closed)
Patch Set: Ugh. 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 4ba7d5919fffe7475286fa0e893dcd145a833d57..406627f5263f2fce28b66b1b46255bf4ad85067c 100644
--- a/third_party/WebKit/Source/core/dom/ScriptLoaderClient.h
+++ b/third_party/WebKit/Source/core/dom/ScriptLoaderClient.h
@@ -22,6 +22,7 @@
#define ScriptLoaderClient_h
#include "core/CoreExport.h"
+#include "wtf/text/AtomicString.h"
#include "wtf/text/WTFString.h"
namespace blink {
@@ -41,6 +42,10 @@ class CORE_EXPORT ScriptLoaderClient {
virtual bool asyncAttributeValue() const = 0;
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;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698