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

Side by Side Diff: content/renderer/render_frame_proxy.cc

Issue 1938753002: OOPIF: Replicate allowFullscreen flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Only send non-default FrameOwnerProperties to new proxies Created 4 years, 7 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 "content/renderer/render_frame_proxy.h" 5 #include "content/renderer/render_frame_proxy.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 IPC_MESSAGE_HANDLER(FrameMsg_ChildFrameProcessGone, OnChildFrameProcessGone) 262 IPC_MESSAGE_HANDLER(FrameMsg_ChildFrameProcessGone, OnChildFrameProcessGone)
263 IPC_MESSAGE_HANDLER(FrameMsg_SetChildFrameSurface, OnSetChildFrameSurface) 263 IPC_MESSAGE_HANDLER(FrameMsg_SetChildFrameSurface, OnSetChildFrameSurface)
264 IPC_MESSAGE_HANDLER(FrameMsg_UpdateOpener, OnUpdateOpener) 264 IPC_MESSAGE_HANDLER(FrameMsg_UpdateOpener, OnUpdateOpener)
265 IPC_MESSAGE_HANDLER(FrameMsg_DidStartLoading, OnDidStartLoading) 265 IPC_MESSAGE_HANDLER(FrameMsg_DidStartLoading, OnDidStartLoading)
266 IPC_MESSAGE_HANDLER(FrameMsg_DidStopLoading, OnDidStopLoading) 266 IPC_MESSAGE_HANDLER(FrameMsg_DidStopLoading, OnDidStopLoading)
267 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateSandboxFlags, OnDidUpdateSandboxFlags) 267 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateSandboxFlags, OnDidUpdateSandboxFlags)
268 IPC_MESSAGE_HANDLER(FrameMsg_DispatchLoad, OnDispatchLoad) 268 IPC_MESSAGE_HANDLER(FrameMsg_DispatchLoad, OnDispatchLoad)
269 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateName, OnDidUpdateName) 269 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateName, OnDidUpdateName)
270 IPC_MESSAGE_HANDLER(FrameMsg_EnforceStrictMixedContentChecking, 270 IPC_MESSAGE_HANDLER(FrameMsg_EnforceStrictMixedContentChecking,
271 OnEnforceStrictMixedContentChecking) 271 OnEnforceStrictMixedContentChecking)
272 IPC_MESSAGE_HANDLER(FrameMsg_SetFrameOwnerProperties,
273 OnSetFrameOwnerProperties)
272 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateOrigin, OnDidUpdateOrigin) 274 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateOrigin, OnDidUpdateOrigin)
273 IPC_MESSAGE_HANDLER(InputMsg_SetFocus, OnSetPageFocus) 275 IPC_MESSAGE_HANDLER(InputMsg_SetFocus, OnSetPageFocus)
274 IPC_MESSAGE_HANDLER(FrameMsg_SetFocusedFrame, OnSetFocusedFrame) 276 IPC_MESSAGE_HANDLER(FrameMsg_SetFocusedFrame, OnSetFocusedFrame)
275 IPC_MESSAGE_UNHANDLED(handled = false) 277 IPC_MESSAGE_UNHANDLED(handled = false)
276 IPC_END_MESSAGE_MAP() 278 IPC_END_MESSAGE_MAP()
277 279
278 // Note: If |handled| is true, |this| may have been deleted. 280 // Note: If |handled| is true, |this| may have been deleted.
279 return handled; 281 return handled;
280 } 282 }
281 283
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 web_frame_->setReplicatedName(blink::WebString::fromUTF8(name), 338 web_frame_->setReplicatedName(blink::WebString::fromUTF8(name),
337 blink::WebString::fromUTF8(unique_name)); 339 blink::WebString::fromUTF8(unique_name));
338 } 340 }
339 341
340 void RenderFrameProxy::OnEnforceStrictMixedContentChecking( 342 void RenderFrameProxy::OnEnforceStrictMixedContentChecking(
341 bool should_enforce) { 343 bool should_enforce) {
342 web_frame_->setReplicatedShouldEnforceStrictMixedContentChecking( 344 web_frame_->setReplicatedShouldEnforceStrictMixedContentChecking(
343 should_enforce); 345 should_enforce);
344 } 346 }
345 347
348 void RenderFrameProxy::OnSetFrameOwnerProperties(
349 const blink::WebFrameOwnerProperties& properties) {
350 web_frame_->setFrameOwnerProperties(properties);
351 }
352
346 void RenderFrameProxy::OnDidUpdateOrigin( 353 void RenderFrameProxy::OnDidUpdateOrigin(
347 const url::Origin& origin, 354 const url::Origin& origin,
348 bool is_potentially_trustworthy_unique_origin) { 355 bool is_potentially_trustworthy_unique_origin) {
349 web_frame_->setReplicatedOrigin(origin); 356 web_frame_->setReplicatedOrigin(origin);
350 web_frame_->setReplicatedPotentiallyTrustworthyUniqueOrigin( 357 web_frame_->setReplicatedPotentiallyTrustworthyUniqueOrigin(
351 is_potentially_trustworthy_unique_origin); 358 is_potentially_trustworthy_unique_origin);
352 } 359 }
353 360
354 void RenderFrameProxy::OnSetPageFocus(bool is_focused) { 361 void RenderFrameProxy::OnSetPageFocus(bool is_focused) {
355 render_view_->SetFocus(is_focused); 362 render_view_->SetFocus(is_focused);
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 blink::WebLocalFrame* source) { 476 blink::WebLocalFrame* source) {
470 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID(); 477 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID();
471 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id)); 478 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id));
472 } 479 }
473 480
474 void RenderFrameProxy::frameFocused() { 481 void RenderFrameProxy::frameFocused() {
475 Send(new FrameHostMsg_FrameFocused(routing_id_)); 482 Send(new FrameHostMsg_FrameFocused(routing_id_));
476 } 483 }
477 484
478 } // namespace 485 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698