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

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

Issue 2632633006: Implement NavigationThrottle::BLOCK_REQUEST_AND_COLLAPSE. (Closed)
Patch Set: Fix navigation transition type. Created 3 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 bool handled = true; 272 bool handled = true;
273 IPC_BEGIN_MESSAGE_MAP(RenderFrameProxy, msg) 273 IPC_BEGIN_MESSAGE_MAP(RenderFrameProxy, msg)
274 IPC_MESSAGE_HANDLER(FrameMsg_DeleteProxy, OnDeleteProxy) 274 IPC_MESSAGE_HANDLER(FrameMsg_DeleteProxy, OnDeleteProxy)
275 IPC_MESSAGE_HANDLER(FrameMsg_ChildFrameProcessGone, OnChildFrameProcessGone) 275 IPC_MESSAGE_HANDLER(FrameMsg_ChildFrameProcessGone, OnChildFrameProcessGone)
276 IPC_MESSAGE_HANDLER(FrameMsg_SetChildFrameSurface, OnSetChildFrameSurface) 276 IPC_MESSAGE_HANDLER(FrameMsg_SetChildFrameSurface, OnSetChildFrameSurface)
277 IPC_MESSAGE_HANDLER(FrameMsg_UpdateOpener, OnUpdateOpener) 277 IPC_MESSAGE_HANDLER(FrameMsg_UpdateOpener, OnUpdateOpener)
278 IPC_MESSAGE_HANDLER(FrameMsg_DidStartLoading, OnDidStartLoading) 278 IPC_MESSAGE_HANDLER(FrameMsg_DidStartLoading, OnDidStartLoading)
279 IPC_MESSAGE_HANDLER(FrameMsg_DidStopLoading, OnDidStopLoading) 279 IPC_MESSAGE_HANDLER(FrameMsg_DidStopLoading, OnDidStopLoading)
280 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateFramePolicy, OnDidUpdateFramePolicy) 280 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateFramePolicy, OnDidUpdateFramePolicy)
281 IPC_MESSAGE_HANDLER(FrameMsg_DispatchLoad, OnDispatchLoad) 281 IPC_MESSAGE_HANDLER(FrameMsg_DispatchLoad, OnDispatchLoad)
282 IPC_MESSAGE_HANDLER(FrameMsg_Collapse, OnCollapse)
282 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateName, OnDidUpdateName) 283 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateName, OnDidUpdateName)
283 IPC_MESSAGE_HANDLER(FrameMsg_AddContentSecurityPolicies, 284 IPC_MESSAGE_HANDLER(FrameMsg_AddContentSecurityPolicies,
284 OnAddContentSecurityPolicies) 285 OnAddContentSecurityPolicies)
285 IPC_MESSAGE_HANDLER(FrameMsg_ResetContentSecurityPolicy, 286 IPC_MESSAGE_HANDLER(FrameMsg_ResetContentSecurityPolicy,
286 OnResetContentSecurityPolicy) 287 OnResetContentSecurityPolicy)
287 IPC_MESSAGE_HANDLER(FrameMsg_EnforceInsecureRequestPolicy, 288 IPC_MESSAGE_HANDLER(FrameMsg_EnforceInsecureRequestPolicy,
288 OnEnforceInsecureRequestPolicy) 289 OnEnforceInsecureRequestPolicy)
289 IPC_MESSAGE_HANDLER(FrameMsg_SetFrameOwnerProperties, 290 IPC_MESSAGE_HANDLER(FrameMsg_SetFrameOwnerProperties,
290 OnSetFrameOwnerProperties) 291 OnSetFrameOwnerProperties)
291 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateOrigin, OnDidUpdateOrigin) 292 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateOrigin, OnDidUpdateOrigin)
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 } 343 }
343 344
344 void RenderFrameProxy::OnDidStopLoading() { 345 void RenderFrameProxy::OnDidStopLoading() {
345 web_frame_->DidStopLoading(); 346 web_frame_->DidStopLoading();
346 } 347 }
347 348
348 void RenderFrameProxy::OnDispatchLoad() { 349 void RenderFrameProxy::OnDispatchLoad() {
349 web_frame_->DispatchLoadEventOnFrameOwner(); 350 web_frame_->DispatchLoadEventOnFrameOwner();
350 } 351 }
351 352
353 void RenderFrameProxy::OnCollapse(bool collapsed) {
354 web_frame_->Collapse(collapsed);
355 }
356
352 void RenderFrameProxy::OnDidUpdateName(const std::string& name, 357 void RenderFrameProxy::OnDidUpdateName(const std::string& name,
353 const std::string& unique_name) { 358 const std::string& unique_name) {
354 web_frame_->SetReplicatedName(blink::WebString::FromUTF8(name)); 359 web_frame_->SetReplicatedName(blink::WebString::FromUTF8(name));
355 unique_name_ = unique_name; 360 unique_name_ = unique_name;
356 } 361 }
357 362
358 void RenderFrameProxy::OnAddContentSecurityPolicies( 363 void RenderFrameProxy::OnAddContentSecurityPolicies(
359 const std::vector<ContentSecurityPolicyHeader>& headers) { 364 const std::vector<ContentSecurityPolicyHeader>& headers) {
360 for (const auto& header : headers) { 365 for (const auto& header : headers) {
361 web_frame_->AddReplicatedContentSecurityPolicyHeader( 366 web_frame_->AddReplicatedContentSecurityPolicyHeader(
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 blink::WebLocalFrame* source) { 533 blink::WebLocalFrame* source) {
529 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID(); 534 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID();
530 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id)); 535 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id));
531 } 536 }
532 537
533 void RenderFrameProxy::FrameFocused() { 538 void RenderFrameProxy::FrameFocused() {
534 Send(new FrameHostMsg_FrameFocused(routing_id_)); 539 Send(new FrameHostMsg_FrameFocused(routing_id_));
535 } 540 }
536 541
537 } // namespace 542 } // namespace
OLDNEW
« no previous file with comments | « content/renderer/render_frame_proxy.h ('k') | content/test/data/frame_tree/legacy_frameset.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698