Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: third_party/WebKit/public/web/WebRemoteFrame.h

Issue 2626183003: Switch RemoteWindowProxy to use v8::Context::NewRemoteContext. (Closed)
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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;
haraken 2017/02/14 11:15:01 We normally just include v8.h.
dcheng 2017/02/15 11:08:41 Done.
16 };
17
14 namespace blink { 18 namespace blink {
15 19
16 enum class WebTreeScopeType; 20 enum class WebTreeScopeType;
17 class InterfaceProvider; 21 class InterfaceProvider;
18 class InterfaceRegistry; 22 class InterfaceRegistry;
19 class WebFrameClient; 23 class WebFrameClient;
20 class WebLayer; 24 class WebLayer;
21 class WebRemoteFrameClient; 25 class WebRemoteFrameClient;
22 class WebString; 26 class WebString;
23 27
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // corresponds to the HTMLFrameOwnerElement to be fullscreened. Calling 101 // corresponds to the HTMLFrameOwnerElement to be fullscreened. Calling
98 // this prepares FullscreenController to enter fullscreen for that frame 102 // this prepares FullscreenController to enter fullscreen for that frame
99 // owner. 103 // owner.
100 virtual void willEnterFullscreen() = 0; 104 virtual void willEnterFullscreen() = 0;
101 105
102 virtual void setHasReceivedUserGesture() = 0; 106 virtual void setHasReceivedUserGesture() = 0;
103 107
104 // Temporary method to allow embedders to get the script context of a 108 // Temporary method to allow embedders to get the script context of a
105 // remote frame. This should only be used by legacy code that has not yet 109 // remote frame. This should only be used by legacy code that has not yet
106 // migrated over to the new OOPI infrastructure. 110 // migrated over to the new OOPI infrastructure.
107 virtual v8::Local<v8::Context> deprecatedMainWorldScriptContext() const = 0; 111 virtual v8::Local<v8::Object> globalProxy() const = 0;
108 112
109 protected: 113 protected:
110 explicit WebRemoteFrame(WebTreeScopeType scope) : WebFrame(scope) {} 114 explicit WebRemoteFrame(WebTreeScopeType scope) : WebFrame(scope) {}
111 115
112 // Inherited from WebFrame, but intentionally hidden: it never makes sense 116 // Inherited from WebFrame, but intentionally hidden: it never makes sense
113 // to call these on a WebRemoteFrame. 117 // to call these on a WebRemoteFrame.
114 bool isWebLocalFrame() const override = 0; 118 bool isWebLocalFrame() const override = 0;
115 WebLocalFrame* toWebLocalFrame() override = 0; 119 WebLocalFrame* toWebLocalFrame() override = 0;
116 bool isWebRemoteFrame() const override = 0; 120 bool isWebRemoteFrame() const override = 0;
117 WebRemoteFrame* toWebRemoteFrame() override = 0; 121 WebRemoteFrame* toWebRemoteFrame() override = 0;
118 }; 122 };
119 123
120 } // namespace blink 124 } // namespace blink
121 125
122 #endif // WebRemoteFrame_h 126 #endif // WebRemoteFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698