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

Unified Diff: Source/core/workers/WorkerGlobalScope.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/testing/NullExecutionContext.cpp ('k') | Source/core/workers/WorkerGlobalScope.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerGlobalScope.h
diff --git a/Source/core/workers/WorkerGlobalScope.h b/Source/core/workers/WorkerGlobalScope.h
index 8a15f8993381748fa2747b8a4448202dc4728c91..f6b0810070fb55dc327eec69c2e95a1242aabb85 100644
--- a/Source/core/workers/WorkerGlobalScope.h
+++ b/Source/core/workers/WorkerGlobalScope.h
@@ -111,7 +111,7 @@ public:
// ExecutionContextClient
WorkerEventQueue* eventQueue() const override final;
- SecurityContext& securityContext() override final { return *this; }
+ const SecurityContext& securityContext() const override final { return *this; }
bool isContextThread() const override final;
bool isJSExecutionForbidden() const override final;
@@ -137,7 +137,7 @@ public:
virtual void scriptLoaded(size_t scriptSize, size_t cachedMetadataSize) { }
- bool isPrivilegedContext(String& errorMessage, const PrivilegeContextCheck = StandardPrivilegeCheck) override;
+ bool isPrivilegedContext(String& errorMessage, const PrivilegeContextCheck = StandardPrivilegeCheck) const override;
DECLARE_VIRTUAL_TRACE();
« no previous file with comments | « Source/core/testing/NullExecutionContext.cpp ('k') | Source/core/workers/WorkerGlobalScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698