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

Side by Side Diff: third_party/WebKit/Source/web/WebRemoteFrameImpl.h

Issue 2626183003: Switch RemoteWindowProxy to use v8::Context::NewRemoteContext. (Closed)
Patch Set: Finish partial comment Created 3 years, 11 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 const WebParsedFeaturePolicy& parsedHeader) const override; 147 const WebParsedFeaturePolicy& parsedHeader) const override;
149 void addReplicatedContentSecurityPolicyHeader( 148 void addReplicatedContentSecurityPolicyHeader(
150 const WebString& headerValue, 149 const WebString& headerValue,
151 WebContentSecurityPolicyType, 150 WebContentSecurityPolicyType,
152 WebContentSecurityPolicySource) const override; 151 WebContentSecurityPolicySource) const override;
153 void resetReplicatedContentSecurityPolicy() const override; 152 void resetReplicatedContentSecurityPolicy() const override;
154 void setReplicatedInsecureRequestPolicy( 153 void setReplicatedInsecureRequestPolicy(
155 WebInsecureRequestPolicy) const override; 154 WebInsecureRequestPolicy) const override;
156 void setReplicatedPotentiallyTrustworthyUniqueOrigin(bool) const override; 155 void setReplicatedPotentiallyTrustworthyUniqueOrigin(bool) const override;
157 void dispatchLoadEventOnFrameOwner() const override; 156 void dispatchLoadEventOnFrameOwner() const override;
158
159 void didStartLoading() override; 157 void didStartLoading() override;
160 void didStopLoading() override; 158 void didStopLoading() override;
161
162 bool isIgnoredForHitTest() const override; 159 bool isIgnoredForHitTest() const override;
163
164 void willEnterFullscreen() override; 160 void willEnterFullscreen() override;
161 v8::Local<v8::Object> globalProxy() const override;
165 162
166 DECLARE_TRACE(); 163 DECLARE_TRACE();
167 164
168 private: 165 private:
169 WebRemoteFrameImpl(WebTreeScopeType, WebRemoteFrameClient*); 166 WebRemoteFrameImpl(WebTreeScopeType, WebRemoteFrameClient*);
170 167
171 // Inherited from WebFrame, but intentionally hidden: it never makes sense 168 // Inherited from WebFrame, but intentionally hidden: it never makes sense
172 // to call these on a WebRemoteFrameImpl. 169 // to call these on a WebRemoteFrameImpl.
173 bool isWebLocalFrame() const override; 170 bool isWebLocalFrame() const override;
174 WebLocalFrame* toWebLocalFrame() override; 171 WebLocalFrame* toWebLocalFrame() override;
(...skipping 12 matching lines...) Expand all
187 184
188 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, 185 DEFINE_TYPE_CASTS(WebRemoteFrameImpl,
189 WebFrame, 186 WebFrame,
190 frame, 187 frame,
191 frame->isWebRemoteFrame(), 188 frame->isWebRemoteFrame(),
192 frame.isWebRemoteFrame()); 189 frame.isWebRemoteFrame());
193 190
194 } // namespace blink 191 } // namespace blink
195 192
196 #endif // WebRemoteFrameImpl_h 193 #endif // WebRemoteFrameImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698