Commit 1b1b1f47 authored by nasko@chromium.org's avatar nasko@chromium.org

Remove RenderViewImpl::OnNavigate

BUG=304341

Review URL: https://codereview.chromium.org/332563003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276711 0039d316-1c4b-4281-b951-d872f2087c98
parent f7a2d6e1
...@@ -742,7 +742,8 @@ void RenderFrameImpl::OnNavigate(const FrameMsg_Navigate_Params& params) { ...@@ -742,7 +742,8 @@ void RenderFrameImpl::OnNavigate(const FrameMsg_Navigate_Params& params) {
if (!render_view_->webview()) if (!render_view_->webview())
return; return;
render_view_->OnNavigate(params); FOR_EACH_OBSERVER(
RenderViewObserver, render_view_->observers_, Navigate(params.url));
bool is_reload = RenderViewImpl::IsReload(params); bool is_reload = RenderViewImpl::IsReload(params);
WebURLRequest::CachePolicy cache_policy = WebURLRequest::CachePolicy cache_policy =
......
...@@ -1068,7 +1068,6 @@ bool RenderViewImpl::OnMessageReceived(const IPC::Message& message) { ...@@ -1068,7 +1068,6 @@ bool RenderViewImpl::OnMessageReceived(const IPC::Message& message) {
OnScrollFocusedEditableNodeIntoRect) OnScrollFocusedEditableNodeIntoRect)
IPC_MESSAGE_HANDLER(InputMsg_SetEditCommandsForNextKeyEvent, IPC_MESSAGE_HANDLER(InputMsg_SetEditCommandsForNextKeyEvent,
OnSetEditCommandsForNextKeyEvent) OnSetEditCommandsForNextKeyEvent)
IPC_MESSAGE_HANDLER(FrameMsg_Navigate, OnNavigate)
IPC_MESSAGE_HANDLER(ViewMsg_Stop, OnStop) IPC_MESSAGE_HANDLER(ViewMsg_Stop, OnStop)
IPC_MESSAGE_HANDLER(ViewMsg_CopyImageAt, OnCopyImageAt) IPC_MESSAGE_HANDLER(ViewMsg_CopyImageAt, OnCopyImageAt)
IPC_MESSAGE_HANDLER(ViewMsg_SaveImageAt, OnSaveImageAt) IPC_MESSAGE_HANDLER(ViewMsg_SaveImageAt, OnSaveImageAt)
...@@ -1164,10 +1163,6 @@ void RenderViewImpl::OnSelectWordAroundCaret() { ...@@ -1164,10 +1163,6 @@ void RenderViewImpl::OnSelectWordAroundCaret() {
handling_input_event_ = false; handling_input_event_ = false;
} }
void RenderViewImpl::OnNavigate(const FrameMsg_Navigate_Params& params) {
FOR_EACH_OBSERVER(RenderViewObserver, observers_, Navigate(params.url));
}
bool RenderViewImpl::IsBackForwardToStaleEntry( bool RenderViewImpl::IsBackForwardToStaleEntry(
const FrameMsg_Navigate_Params& params, const FrameMsg_Navigate_Params& params,
bool is_reload) { bool is_reload) {
......
...@@ -808,10 +808,6 @@ class CONTENT_EXPORT RenderViewImpl ...@@ -808,10 +808,6 @@ class CONTENT_EXPORT RenderViewImpl
bool IsBackForwardToStaleEntry(const FrameMsg_Navigate_Params& params, bool IsBackForwardToStaleEntry(const FrameMsg_Navigate_Params& params,
bool is_reload); bool is_reload);
// TODO(nasko): Remove this method when code is migrated to use
// RenderFrameObserver.
void OnNavigate(const FrameMsg_Navigate_Params& params);
// Make the given |frame| show an empty, unscriptable page. // Make the given |frame| show an empty, unscriptable page.
// TODO(creis): Move this to RenderFrame. // TODO(creis): Move this to RenderFrame.
void NavigateToSwappedOutURL(blink::WebFrame* frame); void NavigateToSwappedOutURL(blink::WebFrame* frame);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment