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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 367653002: Add a FrameHostMsg_BeginNavigation IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed appcache_host_id, service_worker_provider_id and download_to_file parameters Created 6 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/browser/frame_host/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/containers/hash_tables.h" 8 #include "base/containers/hash_tables.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/metrics/user_metrics_action.h" 10 #include "base/metrics/user_metrics_action.h"
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 IPC_MESSAGE_HANDLER(FrameHostMsg_UpdateTitle, OnUpdateTitle) 336 IPC_MESSAGE_HANDLER(FrameHostMsg_UpdateTitle, OnUpdateTitle)
337 IPC_MESSAGE_HANDLER(FrameHostMsg_UpdateEncoding, OnUpdateEncoding) 337 IPC_MESSAGE_HANDLER(FrameHostMsg_UpdateEncoding, OnUpdateEncoding)
338 IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_RequestPermission, 338 IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_RequestPermission,
339 OnRequestDesktopNotificationPermission) 339 OnRequestDesktopNotificationPermission)
340 IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_Show, 340 IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_Show,
341 OnShowDesktopNotification) 341 OnShowDesktopNotification)
342 IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_Cancel, 342 IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_Cancel,
343 OnCancelDesktopNotification) 343 OnCancelDesktopNotification)
344 IPC_MESSAGE_HANDLER(FrameHostMsg_TextSurroundingSelectionResponse, 344 IPC_MESSAGE_HANDLER(FrameHostMsg_TextSurroundingSelectionResponse,
345 OnTextSurroundingSelectionResponse) 345 OnTextSurroundingSelectionResponse)
346 IPC_MESSAGE_HANDLER(FrameHostMsg_BeginNavigation,
347 OnBeginNavigation)
346 IPC_END_MESSAGE_MAP() 348 IPC_END_MESSAGE_MAP()
347 349
348 return handled; 350 return handled;
349 } 351 }
350 352
351 void RenderFrameHostImpl::Init() { 353 void RenderFrameHostImpl::Init() {
352 GetProcess()->ResumeRequestsForView(routing_id_); 354 GetProcess()->ResumeRequestsForView(routing_id_);
353 } 355 }
354 356
355 void RenderFrameHostImpl::OnAddMessageToConsole( 357 void RenderFrameHostImpl::OnAddMessageToConsole(
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 WebTextDirectionToChromeTextDirection( 766 WebTextDirectionToChromeTextDirection(
765 title_direction)); 767 title_direction));
766 } 768 }
767 769
768 void RenderFrameHostImpl::OnUpdateEncoding(const std::string& encoding_name) { 770 void RenderFrameHostImpl::OnUpdateEncoding(const std::string& encoding_name) {
769 // This message is only sent for top-level frames. TODO(avi): when frame tree 771 // This message is only sent for top-level frames. TODO(avi): when frame tree
770 // mirroring works correctly, add a check here to enforce it. 772 // mirroring works correctly, add a check here to enforce it.
771 delegate_->UpdateEncoding(this, encoding_name); 773 delegate_->UpdateEncoding(this, encoding_name);
772 } 774 }
773 775
776 void RenderFrameHostImpl::OnBeginNavigation(
777 const FrameHostMsg_BeginNavigation_Params& params) {
778 NOTIMPLEMENTED();
779 }
780
774 void RenderFrameHostImpl::SetPendingShutdown(const base::Closure& on_swap_out) { 781 void RenderFrameHostImpl::SetPendingShutdown(const base::Closure& on_swap_out) {
775 render_view_host_->SetPendingShutdown(on_swap_out); 782 render_view_host_->SetPendingShutdown(on_swap_out);
776 } 783 }
777 784
778 bool RenderFrameHostImpl::CanCommitURL(const GURL& url) { 785 bool RenderFrameHostImpl::CanCommitURL(const GURL& url) {
779 // TODO(creis): We should also check for WebUI pages here. Also, when the 786 // TODO(creis): We should also check for WebUI pages here. Also, when the
780 // out-of-process iframes implementation is ready, we should check for 787 // out-of-process iframes implementation is ready, we should check for
781 // cross-site URLs that are not allowed to commit in this process. 788 // cross-site URLs that are not allowed to commit in this process.
782 789
783 // Give the client a chance to disallow URLs from committing. 790 // Give the client a chance to disallow URLs from committing.
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
944 FROM_HERE, 951 FROM_HERE,
945 base::Bind( 952 base::Bind(
946 &TransitionRequestManager::SetHasPendingTransitionRequest, 953 &TransitionRequestManager::SetHasPendingTransitionRequest,
947 base::Unretained(TransitionRequestManager::GetInstance()), 954 base::Unretained(TransitionRequestManager::GetInstance()),
948 GetProcess()->GetID(), 955 GetProcess()->GetID(),
949 routing_id_, 956 routing_id_,
950 has_pending_request)); 957 has_pending_request));
951 } 958 }
952 959
953 } // namespace content 960 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698