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

Unified Diff: third_party/WebKit/public/web/WebFrame.h

Issue 2009453002: service worker: Don't control a subframe of an insecure context (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: refactor errorMessage Created 4 years, 6 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 | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebFrame.h
diff --git a/third_party/WebKit/public/web/WebFrame.h b/third_party/WebKit/public/web/WebFrame.h
index 121067b357c1273235e7b42cb559f7c136458313..52c488bd0a7c8b14f70c5e8272b708c65c5dcbdb 100644
--- a/third_party/WebKit/public/web/WebFrame.h
+++ b/third_party/WebKit/public/web/WebFrame.h
@@ -556,6 +556,15 @@ public:
// the given element is not a frame, iframe or if the frame is empty.
BLINK_EXPORT static WebFrame* fromFrameOwnerElement(const WebElement&);
+ // Use WebDocument::isSecureContext() instead of this function to
+ // check whether this frame's document is a secure context.
+ //
+ // Returns whether it's possible for a document whose frame is a descendant
+ // of this frame to be a secure context, not considering scheme exceptions
+ // (since any document can be a secure context if it has a scheme
+ // exception). See Document::isSecureContextImpl for more details.
+ BLINK_EXPORT bool canHaveSecureChild() const;
+
#if BLINK_IMPLEMENTATION
static WebFrame* fromFrame(Frame*);
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698