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

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

Issue 2720973002: Switch RemoteWindowProxy to use v8::Context::NewRemoteContext. (Closed)
Patch Set: Rebase after split 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
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" 7 #include "bindings/core/v8/DOMWrapperWorld.h"
8 #include "bindings/core/v8/WindowProxy.h"
8 #include "core/dom/Fullscreen.h" 9 #include "core/dom/Fullscreen.h"
9 #include "core/dom/RemoteSecurityContext.h" 10 #include "core/dom/RemoteSecurityContext.h"
10 #include "core/dom/SecurityContext.h" 11 #include "core/dom/SecurityContext.h"
11 #include "core/frame/FrameView.h" 12 #include "core/frame/FrameView.h"
12 #include "core/frame/Settings.h" 13 #include "core/frame/Settings.h"
13 #include "core/frame/csp/ContentSecurityPolicy.h" 14 #include "core/frame/csp/ContentSecurityPolicy.h"
14 #include "core/html/HTMLFrameOwnerElement.h" 15 #include "core/html/HTMLFrameOwnerElement.h"
15 #include "core/layout/LayoutObject.h" 16 #include "core/layout/LayoutObject.h"
16 #include "core/page/Page.h" 17 #include "core/page/Page.h"
17 #include "platform/heap/Handle.h" 18 #include "platform/heap/Handle.h"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 v8::Local<v8::Value> argv[]) { 207 v8::Local<v8::Value> argv[]) {
207 NOTREACHED(); 208 NOTREACHED();
208 return v8::Local<v8::Value>(); 209 return v8::Local<v8::Value>();
209 } 210 }
210 211
211 v8::Local<v8::Context> WebRemoteFrameImpl::mainWorldScriptContext() const { 212 v8::Local<v8::Context> WebRemoteFrameImpl::mainWorldScriptContext() const {
212 NOTREACHED(); 213 NOTREACHED();
213 return v8::Local<v8::Context>(); 214 return v8::Local<v8::Context>();
214 } 215 }
215 216
216 v8::Local<v8::Context> WebRemoteFrameImpl::deprecatedMainWorldScriptContext()
217 const {
218 return static_cast<RemoteWindowProxy*>(
219 frame()->windowProxy(DOMWrapperWorld::mainWorld()))
220 ->contextIfInitialized();
221 }
222
223 void WebRemoteFrameImpl::reload(WebFrameLoadType) { 217 void WebRemoteFrameImpl::reload(WebFrameLoadType) {
224 NOTREACHED(); 218 NOTREACHED();
225 } 219 }
226 220
227 void WebRemoteFrameImpl::reloadWithOverrideURL(const WebURL& overrideUrl, 221 void WebRemoteFrameImpl::reloadWithOverrideURL(const WebURL& overrideUrl,
228 WebFrameLoadType) { 222 WebFrameLoadType) {
229 NOTREACHED(); 223 NOTREACHED();
230 } 224 }
231 225
232 void WebRemoteFrameImpl::loadRequest(const WebURLRequest&) { 226 void WebRemoteFrameImpl::loadRequest(const WebURLRequest&) {
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 // (prefixed or unprefixed) to use for firing fullscreen events. 516 // (prefixed or unprefixed) to use for firing fullscreen events.
523 Fullscreen::requestFullscreen(*ownerElement, 517 Fullscreen::requestFullscreen(*ownerElement,
524 Fullscreen::RequestType::Prefixed, 518 Fullscreen::RequestType::Prefixed,
525 true /* forCrossProcessAncestor */); 519 true /* forCrossProcessAncestor */);
526 } 520 }
527 521
528 void WebRemoteFrameImpl::setHasReceivedUserGesture() { 522 void WebRemoteFrameImpl::setHasReceivedUserGesture() {
529 frame()->setDocumentHasReceivedUserGesture(); 523 frame()->setDocumentHasReceivedUserGesture();
530 } 524 }
531 525
526 v8::Local<v8::Object> WebRemoteFrameImpl::globalProxy() const {
527 return frame()
528 ->windowProxy(DOMWrapperWorld::mainWorld())
529 ->globalIfNotDetached();
530 }
531
532 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, 532 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope,
533 WebRemoteFrameClient* client) 533 WebRemoteFrameClient* client)
534 : WebRemoteFrame(scope), 534 : WebRemoteFrame(scope),
535 m_frameClient(RemoteFrameClientImpl::create(this)), 535 m_frameClient(RemoteFrameClientImpl::create(this)),
536 m_client(client), 536 m_client(client),
537 m_selfKeepAlive(this) {} 537 m_selfKeepAlive(this) {}
538 538
539 } // namespace blink 539 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebRemoteFrameImpl.h ('k') | third_party/WebKit/public/web/WebRemoteFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698