| 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 // pending navigation's URL, because a URL spoof is possible. | 175 // pending navigation's URL, because a URL spoof is possible. |
| 176 virtual void didAccessInitialDocument() {} | 176 virtual void didAccessInitialDocument() {} |
| 177 | 177 |
| 178 // Request the creation of a new child frame. Embedders may return nullptr | 178 // Request the creation of a new child frame. Embedders may return nullptr |
| 179 // to prevent the new child frame from being attached. Otherwise, embedders | 179 // to prevent the new child frame from being attached. Otherwise, embedders |
| 180 // should create a new WebLocalFrame, insert it into the frame tree, and | 180 // should create a new WebLocalFrame, insert it into the frame tree, and |
| 181 // return the created frame. | 181 // return the created frame. |
| 182 virtual WebLocalFrame* createChildFrame(WebLocalFrame* parent, | 182 virtual WebLocalFrame* createChildFrame(WebLocalFrame* parent, |
| 183 WebTreeScopeType, | 183 WebTreeScopeType, |
| 184 const WebString& name, | 184 const WebString& name, |
| 185 const WebString& uniqueName, | 185 const WebString& fallbackName, |
| 186 WebSandboxFlags sandboxFlags, | 186 WebSandboxFlags sandboxFlags, |
| 187 const WebFrameOwnerProperties&) { | 187 const WebFrameOwnerProperties&) { |
| 188 return nullptr; | 188 return nullptr; |
| 189 } | 189 } |
| 190 | 190 |
| 191 // This frame has set its opener to another frame, or disowned the opener | 191 // This frame has set its opener to another frame, or disowned the opener |
| 192 // if opener is null. See http://html.spec.whatwg.org/#dom-opener. | 192 // if opener is null. See http://html.spec.whatwg.org/#dom-opener. |
| 193 virtual void didChangeOpener(WebFrame*) {} | 193 virtual void didChangeOpener(WebFrame*) {} |
| 194 | 194 |
| 195 // Specifies the reason for the detachment. | 195 // Specifies the reason for the detachment. |
| 196 enum class DetachType { Remove, Swap }; | 196 enum class DetachType { Remove, Swap }; |
| 197 | 197 |
| 198 // This frame has been detached. Embedders should release any resources | 198 // This frame has been detached. Embedders should release any resources |
| 199 // associated with this frame. If the DetachType is Remove, the frame should | 199 // associated with this frame. If the DetachType is Remove, the frame should |
| 200 // also be removed from the frame tree; otherwise, if the DetachType is | 200 // also be removed from the frame tree; otherwise, if the DetachType is |
| 201 // Swap, the frame is being replaced in-place by WebFrame::swap(). | 201 // Swap, the frame is being replaced in-place by WebFrame::swap(). |
| 202 virtual void frameDetached(WebLocalFrame*, DetachType); | 202 virtual void frameDetached(WebLocalFrame*, DetachType); |
| 203 | 203 |
| 204 // This frame has become focused. | 204 // This frame has become focused. |
| 205 virtual void frameFocused() {} | 205 virtual void frameFocused() {} |
| 206 | 206 |
| 207 // A provisional load is about to commit. | 207 // A provisional load is about to commit. |
| 208 virtual void willCommitProvisionalLoad() {} | 208 virtual void willCommitProvisionalLoad() {} |
| 209 | 209 |
| 210 // This frame's name has changed. | 210 // This frame's name has changed. |
| 211 virtual void didChangeName(const WebString& name, | 211 virtual void didChangeName(const WebString& name) {} |
| 212 const WebString& uniqueName) {} | |
| 213 | 212 |
| 214 // This frame has set an insecure request policy. | 213 // This frame has set an insecure request policy. |
| 215 virtual void didEnforceInsecureRequestPolicy(WebInsecureRequestPolicy) {} | 214 virtual void didEnforceInsecureRequestPolicy(WebInsecureRequestPolicy) {} |
| 216 | 215 |
| 217 // This frame has been updated to a unique origin, which should be | 216 // This frame has been updated to a unique origin, which should be |
| 218 // considered potentially trustworthy if | 217 // considered potentially trustworthy if |
| 219 // |isPotentiallyTrustworthyUniqueOrigin| is true. TODO(estark): | 218 // |isPotentiallyTrustworthyUniqueOrigin| is true. TODO(estark): |
| 220 // this method only exists to support dynamic sandboxing via a CSP | 219 // this method only exists to support dynamic sandboxing via a CSP |
| 221 // delivered in a <meta> tag. This is not supposed to be allowed per | 220 // delivered in a <meta> tag. This is not supposed to be allowed per |
| 222 // the CSP spec and should be ripped out. https://crbug.com/594645 | 221 // 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... |
| 756 // Overwrites the given URL to use an HTML5 embed if possible. | 755 // Overwrites the given URL to use an HTML5 embed if possible. |
| 757 // An empty URL is returned if the URL is not overriden. | 756 // An empty URL is returned if the URL is not overriden. |
| 758 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { | 757 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { |
| 759 return WebURL(); | 758 return WebURL(); |
| 760 } | 759 } |
| 761 }; | 760 }; |
| 762 | 761 |
| 763 } // namespace blink | 762 } // namespace blink |
| 764 | 763 |
| 765 #endif | 764 #endif |
| OLD | NEW |