Chromium Code Reviews| 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..33d7a80e9715dc2e72d5babd53f1d967872206d0 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 a context is secure. |
|
kinuko
2016/06/06 06:43:16
nit: the term 'context' is pretty vague in general
falken
2016/06/06 06:56:55
Yes I think there's some inconsistency here. Did s
|
| + // |
| + // Returns whether it's possible for a descendant of this frame to be a |
| + // secure context, not considering scheme exceptions (since any |
| + // descendant 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*); |