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 WebRemoteFrame_h | 5 #ifndef WebRemoteFrame_h |
6 #define WebRemoteFrame_h | 6 #define WebRemoteFrame_h |
7 | 7 |
8 #include "public/platform/WebFeaturePolicy.h" | 8 #include "public/platform/WebFeaturePolicy.h" |
9 #include "public/platform/WebInsecureRequestPolicy.h" | 9 #include "public/platform/WebInsecureRequestPolicy.h" |
10 #include "public/web/WebContentSecurityPolicy.h" | 10 #include "public/web/WebContentSecurityPolicy.h" |
11 #include "public/web/WebFrame.h" | 11 #include "public/web/WebFrame.h" |
12 #include "public/web/WebSandboxFlags.h" | 12 #include "public/web/WebSandboxFlags.h" |
13 | 13 |
| 14 namespace v8 { |
| 15 class Object; |
| 16 }; |
| 17 |
14 namespace blink { | 18 namespace blink { |
15 | 19 |
16 enum class WebTreeScopeType; | 20 enum class WebTreeScopeType; |
17 class WebFrameClient; | 21 class WebFrameClient; |
18 class WebLayer; | 22 class WebLayer; |
19 class WebRemoteFrameClient; | 23 class WebRemoteFrameClient; |
20 class WebString; | 24 class WebString; |
21 | 25 |
22 class WebRemoteFrame : public WebFrame { | 26 class WebRemoteFrame : public WebFrame { |
23 public: | 27 public: |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // This is called in OOPIF scenarios when an element contained in this | 95 // This is called in OOPIF scenarios when an element contained in this |
92 // frame is about to enter fullscreen. This frame's owner | 96 // frame is about to enter fullscreen. This frame's owner |
93 // corresponds to the HTMLFrameOwnerElement to be fullscreened. Calling | 97 // corresponds to the HTMLFrameOwnerElement to be fullscreened. Calling |
94 // this prepares FullscreenController to enter fullscreen for that frame | 98 // this prepares FullscreenController to enter fullscreen for that frame |
95 // owner. | 99 // owner. |
96 virtual void willEnterFullscreen() = 0; | 100 virtual void willEnterFullscreen() = 0; |
97 | 101 |
98 // Temporary method to allow embedders to get the script context of a | 102 // Temporary method to allow embedders to get the script context of a |
99 // remote frame. This should only be used by legacy code that has not yet | 103 // remote frame. This should only be used by legacy code that has not yet |
100 // migrated over to the new OOPI infrastructure. | 104 // migrated over to the new OOPI infrastructure. |
101 virtual v8::Local<v8::Context> deprecatedMainWorldScriptContext() const = 0; | 105 virtual v8::Local<v8::Object> globalProxy() const = 0; |
102 | 106 |
103 protected: | 107 protected: |
104 explicit WebRemoteFrame(WebTreeScopeType scope) : WebFrame(scope) {} | 108 explicit WebRemoteFrame(WebTreeScopeType scope) : WebFrame(scope) {} |
105 | 109 |
106 // Inherited from WebFrame, but intentionally hidden: it never makes sense | 110 // Inherited from WebFrame, but intentionally hidden: it never makes sense |
107 // to call these on a WebRemoteFrame. | 111 // to call these on a WebRemoteFrame. |
108 bool isWebLocalFrame() const override = 0; | 112 bool isWebLocalFrame() const override = 0; |
109 WebLocalFrame* toWebLocalFrame() override = 0; | 113 WebLocalFrame* toWebLocalFrame() override = 0; |
110 bool isWebRemoteFrame() const override = 0; | 114 bool isWebRemoteFrame() const override = 0; |
111 WebRemoteFrame* toWebRemoteFrame() override = 0; | 115 WebRemoteFrame* toWebRemoteFrame() override = 0; |
112 }; | 116 }; |
113 | 117 |
114 } // namespace blink | 118 } // namespace blink |
115 | 119 |
116 #endif // WebRemoteFrame_h | 120 #endif // WebRemoteFrame_h |
OLD | NEW |