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

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

Issue 2625773002: Reenable framebusting (Closed)
Patch Set: Pass through FrameReplicationState 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 #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/LocalFrame.h" 10 #include "core/frame/LocalFrame.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 RemoteSecurityContext* RemoteFrame::securityContext() const { 122 RemoteSecurityContext* RemoteFrame::securityContext() const {
123 return m_securityContext.get(); 123 return m_securityContext.get();
124 } 124 }
125 125
126 bool RemoteFrame::shouldClose() { 126 bool RemoteFrame::shouldClose() {
127 // TODO(nasko): Implement running the beforeunload handler in the actual 127 // TODO(nasko): Implement running the beforeunload handler in the actual
128 // LocalFrame running in a different process and getting back a real result. 128 // LocalFrame running in a different process and getting back a real result.
129 return true; 129 return true;
130 } 130 }
131 131
132 void RemoteFrame::setDocumentHasReceivedUserGesture() {
133 client()->setHasReceivedUserGesture();
134 }
135
136 void RemoteFrame::forwardInputEvent(Event* event) { 132 void RemoteFrame::forwardInputEvent(Event* event) {
137 client()->forwardInputEvent(event); 133 client()->forwardInputEvent(event);
138 } 134 }
139 135
140 void RemoteFrame::setView(RemoteFrameView* view) { 136 void RemoteFrame::setView(RemoteFrameView* view) {
141 // Oilpan: as RemoteFrameView performs no finalization actions, 137 // Oilpan: as RemoteFrameView performs no finalization actions,
142 // no explicit dispose() of it needed here. (cf. FrameView::dispose().) 138 // no explicit dispose() of it needed here. (cf. FrameView::dispose().)
143 m_view = view; 139 m_view = view;
144 } 140 }
145 141
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 FrameVector childrenToDetach; 181 FrameVector childrenToDetach;
186 childrenToDetach.reserveCapacity(tree().childCount()); 182 childrenToDetach.reserveCapacity(tree().childCount());
187 for (Frame* child = tree().firstChild(); child; 183 for (Frame* child = tree().firstChild(); child;
188 child = child->tree().nextSibling()) 184 child = child->tree().nextSibling())
189 childrenToDetach.push_back(child); 185 childrenToDetach.push_back(child);
190 for (const auto& child : childrenToDetach) 186 for (const auto& child : childrenToDetach)
191 child->detach(FrameDetachType::Remove); 187 child->detach(FrameDetachType::Remove);
192 } 188 }
193 189
194 } // namespace blink 190 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/RemoteFrame.h ('k') | third_party/WebKit/Source/core/frame/RemoteFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698