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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerGlobalScope.h

Issue 2365353002: Add 'WorkerGlobalScope::isSecureContext' (Closed)
Patch Set: I hate webexposed tests. Created 4 years, 3 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/workers/WorkerGlobalScope.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h
index c3fb08da0d1a25ac21e064b9345a82a975d94880..a4645248297de1df359e608fa968b9cb25e08561 100644
--- a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h
+++ b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h
@@ -84,6 +84,7 @@ public:
WorkerLocation* location() const;
WorkerNavigator* navigator() const;
void close();
+ bool isSecureContextForBindings() const { return ExecutionContext::isSecureContext(StandardSecureContextCheck); }
DEFINE_ATTRIBUTE_EVENT_LISTENER(error);
DEFINE_ATTRIBUTE_EVENT_LISTENER(rejectionhandled);

Powered by Google App Engine
This is Rietveld 408576698