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

Side by Side Diff: third_party/WebKit/Source/core/frame/RemoteFrame.cpp

Issue 2760793002: Use v8::Context::NewRemoteContext in RemoteWindowProxy. (Closed)
Patch Set: RemoteDOMWindow in DOMDataStore 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 "core/frame/RemoteFrame.h" 5 #include "core/frame/RemoteFrame.h"
6 6
7 #include "bindings/core/v8/WindowProxy.h" 7 #include "bindings/core/v8/WindowProxy.h"
8 #include "bindings/core/v8/WindowProxyManager.h" 8 #include "bindings/core/v8/WindowProxyManager.h"
9 #include "core/dom/RemoteSecurityContext.h" 9 #include "core/dom/RemoteSecurityContext.h"
10 #include "core/frame/FrameHost.h" 10 #include "core/frame/FrameHost.h"
(...skipping 26 matching lines...) Expand all
37 RemoteFrame* RemoteFrame::create(RemoteFrameClient* client, 37 RemoteFrame* RemoteFrame::create(RemoteFrameClient* client,
38 Page* page, 38 Page* page,
39 FrameOwner* owner) { 39 FrameOwner* owner) {
40 return new RemoteFrame(client, page, owner); 40 return new RemoteFrame(client, page, owner);
41 } 41 }
42 42
43 RemoteFrame::~RemoteFrame() { 43 RemoteFrame::~RemoteFrame() {
44 ASSERT(!m_view); 44 ASSERT(!m_view);
45 } 45 }
46 46
47 RemoteDOMWindow* RemoteFrame::domWindow() const {
48 return toRemoteDOMWindow(Frame::domWindow());
49 }
50
47 DEFINE_TRACE(RemoteFrame) { 51 DEFINE_TRACE(RemoteFrame) {
48 visitor->trace(m_view); 52 visitor->trace(m_view);
49 visitor->trace(m_securityContext); 53 visitor->trace(m_securityContext);
50 Frame::trace(visitor); 54 Frame::trace(visitor);
51 } 55 }
52 56
53 void RemoteFrame::navigate(Document& originDocument, 57 void RemoteFrame::navigate(Document& originDocument,
54 const KURL& url, 58 const KURL& url,
55 bool replaceCurrentItem, 59 bool replaceCurrentItem,
56 UserGestureStatus userGestureStatus) { 60 UserGestureStatus userGestureStatus) {
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 FrameVector childrenToDetach; 173 FrameVector childrenToDetach;
170 childrenToDetach.reserveCapacity(tree().childCount()); 174 childrenToDetach.reserveCapacity(tree().childCount());
171 for (Frame* child = tree().firstChild(); child; 175 for (Frame* child = tree().firstChild(); child;
172 child = child->tree().nextSibling()) 176 child = child->tree().nextSibling())
173 childrenToDetach.push_back(child); 177 childrenToDetach.push_back(child);
174 for (const auto& child : childrenToDetach) 178 for (const auto& child : childrenToDetach)
175 child->detach(FrameDetachType::Remove); 179 child->detach(FrameDetachType::Remove);
176 } 180 }
177 181
178 } // namespace blink 182 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698