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

Unified Diff: Source/core/testing/NullExecutionContext.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 | « Source/core/dom/ExecutionContext.h ('k') | Source/core/testing/NullExecutionContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/NullExecutionContext.h
diff --git a/Source/core/testing/NullExecutionContext.h b/Source/core/testing/NullExecutionContext.h
index c310676ba6fc58932af82a3a9c01065bf70a0bf5..f31a1d5694098b2b3d59350646c4e519e4679b78 100644
--- a/Source/core/testing/NullExecutionContext.h
+++ b/Source/core/testing/NullExecutionContext.h
@@ -34,7 +34,7 @@ public:
virtual void reportBlockedScriptExecutionToInspector(const String& directiveText) override { }
virtual void didUpdateSecurityOrigin() override { }
- virtual SecurityContext& securityContext() override { return *this; }
+ virtual const SecurityContext& securityContext() const override { return *this; }
virtual DOMTimerCoordinator* timers() override { return nullptr; }
double timerAlignmentInterval() const;
@@ -42,7 +42,7 @@ public:
virtual void addConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) override { }
virtual void logExceptionToConsole(const String& errorMessage, int scriptId, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<ScriptCallStack>) override { }
- bool isPrivilegedContext(String& errorMessage, const PrivilegeContextCheck = StandardPrivilegeCheck);
+ bool isPrivilegedContext(String& errorMessage, const PrivilegeContextCheck = StandardPrivilegeCheck) const override;
DEFINE_INLINE_TRACE()
{
« no previous file with comments | « Source/core/dom/ExecutionContext.h ('k') | Source/core/testing/NullExecutionContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698