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

Unified Diff: Source/core/dom/Document.h

Issue 1136883003: Expose Document::isPrivilegedContext from WebDocument (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index 4320b318f260bc8a231bbec5994ad393e2fef6fc..dc85fd4e6c1ffe5c4b9a9f3e2fb2988f69a5e263 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -1069,7 +1069,7 @@ public:
NthIndexCache* nthIndexCache() const { return m_nthIndexCache; }
- bool isPrivilegedContext(String& errorMessage, const PrivilegeContextCheck = StandardPrivilegeCheck) override;
+ bool isPrivilegedContext(String& errorMessage, const PrivilegeContextCheck = StandardPrivilegeCheck) const override;
void setClientHintsPreferences(const ClientHintsPreferences& preferences) { m_clientHintsPreferences.set(preferences); }
const ClientHintsPreferences& clientHintsPreferences() const { return m_clientHintsPreferences; }
@@ -1100,7 +1100,7 @@ private:
bool isElementNode() const = delete; // This will catch anyone doing an unnecessary check.
ScriptedAnimationController& ensureScriptedAnimationController();
- virtual SecurityContext& securityContext() override final { return *this; }
+ virtual const SecurityContext& securityContext() const override final { return *this; }
virtual EventQueue* eventQueue() const override final;
// FIXME: Rename the StyleRecalc state to LayoutTreeUpdate.
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698