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

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

Issue 2721693002: Revert of Switch RemoteWindowProxy to use v8::Context::NewRemoteContext. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/WebContentSecurityPolicy.h" 8 #include "public/platform/WebContentSecurityPolicy.h"
9 #include "public/platform/WebFeaturePolicy.h" 9 #include "public/platform/WebFeaturePolicy.h"
10 #include "public/platform/WebInsecureRequestPolicy.h" 10 #include "public/platform/WebInsecureRequestPolicy.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 #include "v8/include/v8.h"
14 13
15 namespace blink { 14 namespace blink {
16 15
17 enum class WebTreeScopeType; 16 enum class WebTreeScopeType;
18 class InterfaceProvider; 17 class InterfaceProvider;
19 class InterfaceRegistry; 18 class InterfaceRegistry;
20 class WebFrameClient; 19 class WebFrameClient;
21 class WebLayer; 20 class WebLayer;
22 class WebRemoteFrameClient; 21 class WebRemoteFrameClient;
23 class WebString; 22 class WebString;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // corresponds to the HTMLFrameOwnerElement to be fullscreened. Calling 97 // corresponds to the HTMLFrameOwnerElement to be fullscreened. Calling
99 // this prepares FullscreenController to enter fullscreen for that frame 98 // this prepares FullscreenController to enter fullscreen for that frame
100 // owner. 99 // owner.
101 virtual void willEnterFullscreen() = 0; 100 virtual void willEnterFullscreen() = 0;
102 101
103 virtual void setHasReceivedUserGesture() = 0; 102 virtual void setHasReceivedUserGesture() = 0;
104 103
105 // Temporary method to allow embedders to get the script context of a 104 // Temporary method to allow embedders to get the script context of a
106 // remote frame. This should only be used by legacy code that has not yet 105 // remote frame. This should only be used by legacy code that has not yet
107 // migrated over to the new OOPI infrastructure. 106 // migrated over to the new OOPI infrastructure.
108 virtual v8::Local<v8::Object> globalProxy() const = 0; 107 virtual v8::Local<v8::Context> deprecatedMainWorldScriptContext() const = 0;
109 108
110 protected: 109 protected:
111 explicit WebRemoteFrame(WebTreeScopeType scope) : WebFrame(scope) {} 110 explicit WebRemoteFrame(WebTreeScopeType scope) : WebFrame(scope) {}
112 111
113 // Inherited from WebFrame, but intentionally hidden: it never makes sense 112 // Inherited from WebFrame, but intentionally hidden: it never makes sense
114 // to call these on a WebRemoteFrame. 113 // to call these on a WebRemoteFrame.
115 bool isWebLocalFrame() const override = 0; 114 bool isWebLocalFrame() const override = 0;
116 WebLocalFrame* toWebLocalFrame() override = 0; 115 WebLocalFrame* toWebLocalFrame() override = 0;
117 bool isWebRemoteFrame() const override = 0; 116 bool isWebRemoteFrame() const override = 0;
118 WebRemoteFrame* toWebRemoteFrame() override = 0; 117 WebRemoteFrame* toWebRemoteFrame() override = 0;
119 }; 118 };
120 119
121 } // namespace blink 120 } // namespace blink
122 121
123 #endif // WebRemoteFrame_h 122 #endif // WebRemoteFrame_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698