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

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

Issue 2801243002: More tweaks to <script nonce> hiding. (Closed)
Patch Set: Element. Created 3 years, 8 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 50d3f2a3893f991ba51114fd42e7610f8e96a950..c2c522f3fd4dc8e51fb4596ee65707cfb4b1e5c6 100644
--- a/third_party/WebKit/Source/core/dom/ScriptElementBase.h
+++ b/third_party/WebKit/Source/core/dom/ScriptElementBase.h
@@ -59,7 +59,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,
@@ -71,9 +71,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:
@@ -82,9 +79,6 @@ class CORE_EXPORT ScriptElementBase : public GarbageCollectedMixin {
bool created_during_document_write);
Member<ScriptLoader> loader_;
-
- private:
- AtomicString nonce_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698