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

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

Issue 2801243002: More tweaks to <script nonce> hiding. (Closed)
Patch Set: Moved tests. Created 3 years, 7 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/ScriptElementBase.h
diff --git a/third_party/WebKit/Source/core/dom/ScriptElementBase.h b/third_party/WebKit/Source/core/dom/ScriptElementBase.h
index 3c131c112755e6b13a532be230b73a8dd2911587..bd1bcd2b485569824a4baca00b80a6fc34b6f98f 100644
--- a/third_party/WebKit/Source/core/dom/ScriptElementBase.h
+++ b/third_party/WebKit/Source/core/dom/ScriptElementBase.h
@@ -60,7 +60,7 @@ class CORE_EXPORT ScriptElementBase : public GarbageCollectedMixin {
virtual bool HasSourceAttribute() const = 0;
virtual bool IsConnected() const = 0;
virtual bool HasChildren() const = 0;
- virtual bool IsNonceableElement() const = 0;
+ virtual const AtomicString& GetNonceForElement() const = 0;
virtual AtomicString InitiatorName() const = 0;
virtual bool AllowInlineScriptForCSP(const AtomicString& nonce,
@@ -72,9 +72,6 @@ class CORE_EXPORT ScriptElementBase : public GarbageCollectedMixin {
ScriptLoader* Loader() const { return loader_.Get(); }
- AtomicString nonce() const { return nonce_; }
- void setNonce(const String& nonce) { nonce_ = AtomicString(nonce); }
-
DECLARE_VIRTUAL_TRACE();
protected:
@@ -83,9 +80,6 @@ class CORE_EXPORT ScriptElementBase : public GarbageCollectedMixin {
bool created_during_document_write);
Member<ScriptLoader> loader_;
-
- private:
- AtomicString nonce_;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/dom/NoncedElement.idl ('k') | third_party/WebKit/Source/core/dom/ScriptLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698