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

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

Issue 2732153002: Revert of Prepare WindowProxy for using 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/bindings/core/v8/WindowProxy.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 #include "web/WebRemoteFrameImpl.h" 5 #include "web/WebRemoteFrameImpl.h"
6 6
7 #include "bindings/core/v8/RemoteWindowProxy.h"
8 #include "core/dom/Fullscreen.h" 7 #include "core/dom/Fullscreen.h"
9 #include "core/dom/RemoteSecurityContext.h" 8 #include "core/dom/RemoteSecurityContext.h"
10 #include "core/dom/SecurityContext.h" 9 #include "core/dom/SecurityContext.h"
11 #include "core/frame/FrameView.h" 10 #include "core/frame/FrameView.h"
12 #include "core/frame/Settings.h" 11 #include "core/frame/Settings.h"
13 #include "core/frame/csp/ContentSecurityPolicy.h" 12 #include "core/frame/csp/ContentSecurityPolicy.h"
14 #include "core/html/HTMLFrameOwnerElement.h" 13 #include "core/html/HTMLFrameOwnerElement.h"
15 #include "core/layout/LayoutObject.h" 14 #include "core/layout/LayoutObject.h"
16 #include "core/page/Page.h" 15 #include "core/page/Page.h"
17 #include "platform/heap/Handle.h" 16 #include "platform/heap/Handle.h"
18 #include "public/platform/WebFloatRect.h" 17 #include "public/platform/WebFloatRect.h"
19 #include "public/platform/WebRect.h" 18 #include "public/platform/WebRect.h"
20 #include "public/web/WebDocument.h" 19 #include "public/web/WebDocument.h"
21 #include "public/web/WebFrameOwnerProperties.h" 20 #include "public/web/WebFrameOwnerProperties.h"
22 #include "public/web/WebPerformance.h" 21 #include "public/web/WebPerformance.h"
23 #include "public/web/WebRange.h" 22 #include "public/web/WebRange.h"
24 #include "public/web/WebTreeScopeType.h" 23 #include "public/web/WebTreeScopeType.h"
25 #include "v8/include/v8.h"
26 #include "web/RemoteFrameOwner.h" 24 #include "web/RemoteFrameOwner.h"
27 #include "web/WebLocalFrameImpl.h" 25 #include "web/WebLocalFrameImpl.h"
28 #include "web/WebViewImpl.h" 26 #include "web/WebViewImpl.h"
27 #include <v8/include/v8.h>
29 28
30 namespace blink { 29 namespace blink {
31 30
32 WebRemoteFrame* WebRemoteFrame::create(WebTreeScopeType scope, 31 WebRemoteFrame* WebRemoteFrame::create(WebTreeScopeType scope,
33 WebRemoteFrameClient* client, 32 WebRemoteFrameClient* client,
34 WebFrame* opener) { 33 WebFrame* opener) {
35 return WebRemoteFrameImpl::create(scope, client, opener); 34 return WebRemoteFrameImpl::create(scope, client, opener);
36 } 35 }
37 36
38 WebRemoteFrameImpl* WebRemoteFrameImpl::create(WebTreeScopeType scope, 37 WebRemoteFrameImpl* WebRemoteFrameImpl::create(WebTreeScopeType scope,
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 return v8::Local<v8::Value>(); 207 return v8::Local<v8::Value>();
209 } 208 }
210 209
211 v8::Local<v8::Context> WebRemoteFrameImpl::mainWorldScriptContext() const { 210 v8::Local<v8::Context> WebRemoteFrameImpl::mainWorldScriptContext() const {
212 NOTREACHED(); 211 NOTREACHED();
213 return v8::Local<v8::Context>(); 212 return v8::Local<v8::Context>();
214 } 213 }
215 214
216 v8::Local<v8::Context> WebRemoteFrameImpl::deprecatedMainWorldScriptContext() 215 v8::Local<v8::Context> WebRemoteFrameImpl::deprecatedMainWorldScriptContext()
217 const { 216 const {
218 return static_cast<RemoteWindowProxy*>( 217 return toV8Context(frame(), DOMWrapperWorld::mainWorld());
219 frame()->windowProxy(DOMWrapperWorld::mainWorld()))
220 ->contextIfInitialized();
221 } 218 }
222 219
223 void WebRemoteFrameImpl::reload(WebFrameLoadType) { 220 void WebRemoteFrameImpl::reload(WebFrameLoadType) {
224 NOTREACHED(); 221 NOTREACHED();
225 } 222 }
226 223
227 void WebRemoteFrameImpl::reloadWithOverrideURL(const WebURL& overrideUrl, 224 void WebRemoteFrameImpl::reloadWithOverrideURL(const WebURL& overrideUrl,
228 WebFrameLoadType) { 225 WebFrameLoadType) {
229 NOTREACHED(); 226 NOTREACHED();
230 } 227 }
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 } 527 }
531 528
532 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, 529 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope,
533 WebRemoteFrameClient* client) 530 WebRemoteFrameClient* client)
534 : WebRemoteFrame(scope), 531 : WebRemoteFrame(scope),
535 m_frameClient(RemoteFrameClientImpl::create(this)), 532 m_frameClient(RemoteFrameClientImpl::create(this)),
536 m_client(client), 533 m_client(client),
537 m_selfKeepAlive(this) {} 534 m_selfKeepAlive(this) {}
538 535
539 } // namespace blink 536 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698