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

Side by Side Diff: third_party/WebKit/Source/web/WebRemoteFrameImpl.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 WebRemoteFrameImpl_h 5 #ifndef WebRemoteFrameImpl_h
6 #define WebRemoteFrameImpl_h 6 #define WebRemoteFrameImpl_h
7 7
8 #include "core/frame/RemoteFrame.h" 8 #include "core/frame/RemoteFrame.h"
9 #include "platform/heap/SelfKeepAlive.h" 9 #include "platform/heap/SelfKeepAlive.h"
10 #include "public/platform/WebInsecureRequestPolicy.h" 10 #include "public/platform/WebInsecureRequestPolicy.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 int worldID, 68 int worldID,
69 const WebScriptSource* sourcesIn, 69 const WebScriptSource* sourcesIn,
70 unsigned numSources, 70 unsigned numSources,
71 WebVector<v8::Local<v8::Value>>* results) override; 71 WebVector<v8::Local<v8::Value>>* results) override;
72 v8::Local<v8::Value> callFunctionEvenIfScriptDisabled( 72 v8::Local<v8::Value> callFunctionEvenIfScriptDisabled(
73 v8::Local<v8::Function>, 73 v8::Local<v8::Function>,
74 v8::Local<v8::Value>, 74 v8::Local<v8::Value>,
75 int argc, 75 int argc,
76 v8::Local<v8::Value> argv[]) override; 76 v8::Local<v8::Value> argv[]) override;
77 v8::Local<v8::Context> mainWorldScriptContext() const override; 77 v8::Local<v8::Context> mainWorldScriptContext() const override;
78 v8::Local<v8::Context> deprecatedMainWorldScriptContext() const override;
79 void reload(WebFrameLoadType) override; 78 void reload(WebFrameLoadType) override;
80 void reloadWithOverrideURL(const WebURL& overrideUrl, 79 void reloadWithOverrideURL(const WebURL& overrideUrl,
81 WebFrameLoadType) override; 80 WebFrameLoadType) override;
82 void loadRequest(const WebURLRequest&) override; 81 void loadRequest(const WebURLRequest&) override;
83 void loadHTMLString(const WebData& html, 82 void loadHTMLString(const WebData& html,
84 const WebURL& baseURL, 83 const WebURL& baseURL,
85 const WebURL& unreachableURL, 84 const WebURL& unreachableURL,
86 bool replace) override; 85 bool replace) override;
87 void stopLoading() override; 86 void stopLoading() override;
88 WebDataSource* provisionalDataSource() const override; 87 WebDataSource* provisionalDataSource() const override;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 const WebParsedFeaturePolicyHeader& parsedHeader) const override; 149 const WebParsedFeaturePolicyHeader& parsedHeader) const override;
151 void addReplicatedContentSecurityPolicyHeader( 150 void addReplicatedContentSecurityPolicyHeader(
152 const WebString& headerValue, 151 const WebString& headerValue,
153 WebContentSecurityPolicyType, 152 WebContentSecurityPolicyType,
154 WebContentSecurityPolicySource) const override; 153 WebContentSecurityPolicySource) const override;
155 void resetReplicatedContentSecurityPolicy() const override; 154 void resetReplicatedContentSecurityPolicy() const override;
156 void setReplicatedInsecureRequestPolicy( 155 void setReplicatedInsecureRequestPolicy(
157 WebInsecureRequestPolicy) const override; 156 WebInsecureRequestPolicy) const override;
158 void setReplicatedPotentiallyTrustworthyUniqueOrigin(bool) const override; 157 void setReplicatedPotentiallyTrustworthyUniqueOrigin(bool) const override;
159 void dispatchLoadEventOnFrameOwner() const override; 158 void dispatchLoadEventOnFrameOwner() const override;
160
161 void didStartLoading() override; 159 void didStartLoading() override;
162 void didStopLoading() override; 160 void didStopLoading() override;
163
164 bool isIgnoredForHitTest() const override; 161 bool isIgnoredForHitTest() const override;
165
166 void willEnterFullscreen() override; 162 void willEnterFullscreen() override;
163 v8::Local<v8::Object> globalProxy() const override;
167 164
168 void setHasReceivedUserGesture() override; 165 void setHasReceivedUserGesture() override;
169 166
170 DECLARE_TRACE(); 167 DECLARE_TRACE();
171 168
172 private: 169 private:
173 WebRemoteFrameImpl(WebTreeScopeType, WebRemoteFrameClient*); 170 WebRemoteFrameImpl(WebTreeScopeType, WebRemoteFrameClient*);
174 171
175 // Inherited from WebFrame, but intentionally hidden: it never makes sense 172 // Inherited from WebFrame, but intentionally hidden: it never makes sense
176 // to call these on a WebRemoteFrameImpl. 173 // to call these on a WebRemoteFrameImpl.
(...skipping 14 matching lines...) Expand all
191 188
192 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, 189 DEFINE_TYPE_CASTS(WebRemoteFrameImpl,
193 WebFrame, 190 WebFrame,
194 frame, 191 frame,
195 frame->isWebRemoteFrame(), 192 frame->isWebRemoteFrame(),
196 frame.isWebRemoteFrame()); 193 frame.isWebRemoteFrame());
197 194
198 } // namespace blink 195 } // namespace blink
199 196
200 #endif // WebRemoteFrameImpl_h 197 #endif // WebRemoteFrameImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698