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 fef5c5163e50a6286d0e76b01e94156d7d024c8e..2eb2c08f7cca30542885079dda703b6b55c697a0 100644 |
--- a/third_party/WebKit/public/web/WebFrame.h |
+++ b/third_party/WebKit/public/web/WebFrame.h |
@@ -557,6 +557,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*); |