Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 173 // pending navigation's URL, because a URL spoof is possible. | 173 // pending navigation's URL, because a URL spoof is possible. |
| 174 virtual void didAccessInitialDocument() {} | 174 virtual void didAccessInitialDocument() {} |
| 175 | 175 |
| 176 // Request the creation of a new child frame. Embedders may return nullptr | 176 // Request the creation of a new child frame. Embedders may return nullptr |
| 177 // to prevent the new child frame from being attached. Otherwise, embedders | 177 // to prevent the new child frame from being attached. Otherwise, embedders |
| 178 // should create a new WebLocalFrame, insert it into the frame tree, and | 178 // should create a new WebLocalFrame, insert it into the frame tree, and |
| 179 // return the created frame. | 179 // return the created frame. |
| 180 virtual WebLocalFrame* createChildFrame(WebLocalFrame* parent, | 180 virtual WebLocalFrame* createChildFrame(WebLocalFrame* parent, |
| 181 WebTreeScopeType, | 181 WebTreeScopeType, |
| 182 const WebString& name, | 182 const WebString& name, |
| 183 const WebString& uniqueName, | 183 const WebString& fallbackName, |
|
dcheng
2017/03/01 23:57:26
Note: I'm 95% sure this isn't actually needed: whe
| |
| 184 WebSandboxFlags sandboxFlags, | 184 WebSandboxFlags sandboxFlags, |
| 185 const WebFrameOwnerProperties&) { | 185 const WebFrameOwnerProperties&) { |
| 186 return nullptr; | 186 return nullptr; |
| 187 } | 187 } |
| 188 | 188 |
| 189 // This frame has set its opener to another frame, or disowned the opener | 189 // This frame has set its opener to another frame, or disowned the opener |
| 190 // if opener is null. See http://html.spec.whatwg.org/#dom-opener. | 190 // if opener is null. See http://html.spec.whatwg.org/#dom-opener. |
| 191 virtual void didChangeOpener(WebFrame*) {} | 191 virtual void didChangeOpener(WebFrame*) {} |
| 192 | 192 |
| 193 // Specifies the reason for the detachment. | 193 // Specifies the reason for the detachment. |
| 194 enum class DetachType { Remove, Swap }; | 194 enum class DetachType { Remove, Swap }; |
| 195 | 195 |
| 196 // This frame has been detached. Embedders should release any resources | 196 // This frame has been detached. Embedders should release any resources |
| 197 // associated with this frame. If the DetachType is Remove, the frame should | 197 // associated with this frame. If the DetachType is Remove, the frame should |
| 198 // also be removed from the frame tree; otherwise, if the DetachType is | 198 // also be removed from the frame tree; otherwise, if the DetachType is |
| 199 // Swap, the frame is being replaced in-place by WebFrame::swap(). | 199 // Swap, the frame is being replaced in-place by WebFrame::swap(). |
| 200 virtual void frameDetached(WebLocalFrame*, DetachType); | 200 virtual void frameDetached(WebLocalFrame*, DetachType); |
| 201 | 201 |
| 202 // This frame has become focused. | 202 // This frame has become focused. |
| 203 virtual void frameFocused() {} | 203 virtual void frameFocused() {} |
| 204 | 204 |
| 205 // A provisional load is about to commit. | 205 // A provisional load is about to commit. |
| 206 virtual void willCommitProvisionalLoad(WebLocalFrame*) {} | 206 virtual void willCommitProvisionalLoad(WebLocalFrame*) {} |
| 207 | 207 |
| 208 // This frame's name has changed. | 208 // This frame's name has changed. |
| 209 virtual void didChangeName(const WebString& name, | 209 virtual void didChangeName(const WebString& name) {} |
| 210 const WebString& uniqueName) {} | |
| 211 | 210 |
| 212 // This frame has set an insecure request policy. | 211 // This frame has set an insecure request policy. |
| 213 virtual void didEnforceInsecureRequestPolicy(WebInsecureRequestPolicy) {} | 212 virtual void didEnforceInsecureRequestPolicy(WebInsecureRequestPolicy) {} |
| 214 | 213 |
| 215 // This frame has been updated to a unique origin, which should be | 214 // This frame has been updated to a unique origin, which should be |
| 216 // considered potentially trustworthy if | 215 // considered potentially trustworthy if |
| 217 // |isPotentiallyTrustworthyUniqueOrigin| is true. TODO(estark): | 216 // |isPotentiallyTrustworthyUniqueOrigin| is true. TODO(estark): |
| 218 // this method only exists to support dynamic sandboxing via a CSP | 217 // this method only exists to support dynamic sandboxing via a CSP |
| 219 // delivered in a <meta> tag. This is not supposed to be allowed per | 218 // delivered in a <meta> tag. This is not supposed to be allowed per |
| 220 // the CSP spec and should be ripped out. https://crbug.com/594645 | 219 // the CSP spec and should be ripped out. https://crbug.com/594645 |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 754 // Overwrites the given URL to use an HTML5 embed if possible. | 753 // Overwrites the given URL to use an HTML5 embed if possible. |
| 755 // An empty URL is returned if the URL is not overriden. | 754 // An empty URL is returned if the URL is not overriden. |
| 756 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { | 755 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { |
| 757 return WebURL(); | 756 return WebURL(); |
| 758 } | 757 } |
| 759 }; | 758 }; |
| 760 | 759 |
| 761 } // namespace blink | 760 } // namespace blink |
| 762 | 761 |
| 763 #endif | 762 #endif |
| OLD | NEW |