| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebLocalFrame_h | 5 #ifndef WebLocalFrame_h |
| 6 #define WebLocalFrame_h | 6 #define WebLocalFrame_h |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // Blink unless the navigation commits and the provisional frame is fully | 86 // Blink unless the navigation commits and the provisional frame is fully |
| 87 // attached to the frame tree by calling swap(). | 87 // attached to the frame tree by calling swap(). |
| 88 // | 88 // |
| 89 // Otherwise, if the load should not commit, call detach() to discard the | 89 // Otherwise, if the load should not commit, call detach() to discard the |
| 90 // frame. | 90 // frame. |
| 91 BLINK_EXPORT static WebLocalFrame* CreateProvisional( | 91 BLINK_EXPORT static WebLocalFrame* CreateProvisional( |
| 92 WebFrameClient*, | 92 WebFrameClient*, |
| 93 blink::InterfaceProvider*, | 93 blink::InterfaceProvider*, |
| 94 blink::InterfaceRegistry*, | 94 blink::InterfaceRegistry*, |
| 95 WebRemoteFrame*, | 95 WebRemoteFrame*, |
| 96 WebSandboxFlags); | 96 WebSandboxFlags, |
| 97 WebParsedFeaturePolicy); |
| 97 | 98 |
| 98 // Creates a new local child of this frame. Similar to the other methods that | 99 // Creates a new local child of this frame. Similar to the other methods that |
| 99 // create frames, the returned frame should be freed by calling Close() when | 100 // create frames, the returned frame should be freed by calling Close() when |
| 100 // it's no longer needed. | 101 // it's no longer needed. |
| 101 virtual WebLocalFrame* CreateLocalChild(WebTreeScopeType, | 102 virtual WebLocalFrame* CreateLocalChild(WebTreeScopeType, |
| 102 WebFrameClient*, | 103 WebFrameClient*, |
| 103 blink::InterfaceProvider*, | 104 blink::InterfaceProvider*, |
| 104 blink::InterfaceRegistry*) = 0; | 105 blink::InterfaceRegistry*) = 0; |
| 105 | 106 |
| 106 // Returns the WebFrame associated with the current V8 context. This | 107 // Returns the WebFrame associated with the current V8 context. This |
| (...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 // to call these on a WebLocalFrame. | 774 // to call these on a WebLocalFrame. |
| 774 bool IsWebLocalFrame() const override = 0; | 775 bool IsWebLocalFrame() const override = 0; |
| 775 WebLocalFrame* ToWebLocalFrame() override = 0; | 776 WebLocalFrame* ToWebLocalFrame() override = 0; |
| 776 bool IsWebRemoteFrame() const override = 0; | 777 bool IsWebRemoteFrame() const override = 0; |
| 777 WebRemoteFrame* ToWebRemoteFrame() override = 0; | 778 WebRemoteFrame* ToWebRemoteFrame() override = 0; |
| 778 }; | 779 }; |
| 779 | 780 |
| 780 } // namespace blink | 781 } // namespace blink |
| 781 | 782 |
| 782 #endif // WebLocalFrame_h | 783 #endif // WebLocalFrame_h |
| OLD | NEW |