diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-25 19:07:44 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-25 19:07:44 +0000 |
commit | 34f128ddf083c4ff1d21bb2bf10859cf2c040ad6 (patch) | |
tree | 31c266487bf62bc13a451288fa8333c1506f092c /chrome/browser/renderer_host/render_view_host.cc | |
parent | 6804b15439f1f40d38df1052e6165a55f216e2ec (diff) | |
download | chromium_src-34f128ddf083c4ff1d21bb2bf10859cf2c040ad6.zip chromium_src-34f128ddf083c4ff1d21bb2bf10859cf2c040ad6.tar.gz chromium_src-34f128ddf083c4ff1d21bb2bf10859cf2c040ad6.tar.bz2 |
Get rid of a few more interfaces from RenderViewHostDelegate that aren't needed.
Review URL: http://codereview.chromium.org/6374009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72522 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/render_view_host.cc')
-rw-r--r-- | chrome/browser/renderer_host/render_view_host.cc | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/chrome/browser/renderer_host/render_view_host.cc b/chrome/browser/renderer_host/render_view_host.cc index 5f12b62..566f1fc 100644 --- a/chrome/browser/renderer_host/render_view_host.cc +++ b/chrome/browser/renderer_host/render_view_host.cc @@ -763,8 +763,6 @@ bool RenderViewHost::OnMessageReceived(const IPC::Message& msg) { OnMsgDocumentOnLoadCompletedInMainFrame) IPC_MESSAGE_HANDLER(ViewMsg_ExecuteCodeFinished, OnExecuteCodeFinished) - IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFavIconURL, OnMsgUpdateFavIconURL) - IPC_MESSAGE_HANDLER(ViewHostMsg_DidDownloadFavIcon, OnMsgDidDownloadFavIcon) IPC_MESSAGE_HANDLER(ViewHostMsg_ContextMenu, OnMsgContextMenu) IPC_MESSAGE_HANDLER(ViewHostMsg_OpenURL, OnMsgOpenURL) IPC_MESSAGE_HANDLER(ViewHostMsg_DidContentsPreferredSizeChange, @@ -775,7 +773,6 @@ bool RenderViewHost::OnMessageReceived(const IPC::Message& msg) { IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardMessageToExternalHost, OnMsgForwardMessageToExternalHost) IPC_MESSAGE_HANDLER(ViewHostMsg_SetTooltipText, OnMsgSetTooltipText) - IPC_MESSAGE_HANDLER(ViewHostMsg_RunFileChooser, OnMsgRunFileChooser) IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunJavaScriptMessage, OnMsgRunJavaScriptMessage) IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunBeforeUnloadConfirm, @@ -786,9 +783,6 @@ bool RenderViewHost::OnMessageReceived(const IPC::Message& msg) { IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateDragCursor, OnUpdateDragCursor) IPC_MESSAGE_HANDLER(ViewHostMsg_TakeFocus, OnTakeFocus) IPC_MESSAGE_HANDLER(ViewHostMsg_PageHasOSDD, OnMsgPageHasOSDD) - IPC_MESSAGE_HANDLER(ViewHostMsg_DidGetPrintedPagesCount, - OnDidGetPrintedPagesCount) - IPC_MESSAGE_HANDLER(ViewHostMsg_DidPrintPage, DidPrintPage) IPC_MESSAGE_HANDLER(ViewHostMsg_AddMessageToConsole, OnAddMessageToConsole) IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardToDevToolsAgent, OnForwardToDevToolsAgent) @@ -804,10 +798,6 @@ bool RenderViewHost::OnMessageReceived(const IPC::Message& msg) { OnRequestUndockDevToolsWindow) IPC_MESSAGE_HANDLER(ViewHostMsg_DevToolsRuntimePropertyChanged, OnDevToolsRuntimePropertyChanged) - IPC_MESSAGE_HANDLER(ViewHostMsg_SendCurrentPageAllSavableResourceLinks, - OnReceivedSavableResourceLinksForCurrentPage) - IPC_MESSAGE_HANDLER(ViewHostMsg_SendSerializedHtmlData, - OnReceivedSerializedHtmlData) IPC_MESSAGE_FORWARD(ViewHostMsg_JSOutOfMemory, delegate_, RenderViewHostDelegate::OnJSOutOfMemory) IPC_MESSAGE_HANDLER(ViewHostMsg_ShouldClose_ACK, OnMsgShouldCloseACK) @@ -1102,24 +1092,6 @@ void RenderViewHost::OnExecuteCodeFinished(int request_id, bool success) { Details<std::pair<int, bool> >(&result_details)); } -void RenderViewHost::OnMsgUpdateFavIconURL(int32 page_id, - const GURL& icon_url) { - RenderViewHostDelegate::FavIcon* favicon_delegate = - delegate_->GetFavIconDelegate(); - if (favicon_delegate) - favicon_delegate->UpdateFavIconURL(this, page_id, icon_url); -} - -void RenderViewHost::OnMsgDidDownloadFavIcon(int id, - const GURL& image_url, - bool errored, - const SkBitmap& image) { - RenderViewHostDelegate::FavIcon* favicon_delegate = - delegate_->GetFavIconDelegate(); - if (favicon_delegate) - favicon_delegate->DidDownloadFavIcon(this, id, image_url, errored, image); -} - void RenderViewHost::OnMsgContextMenu(const ContextMenuParams& params) { RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); if (!view) @@ -1257,14 +1229,6 @@ void RenderViewHost::OnMsgSelectionChanged(const std::string& text) { view()->SelectionChanged(text); } -void RenderViewHost::OnMsgRunFileChooser( - const ViewHostMsg_RunFileChooser_Params& params) { - RenderViewHostDelegate::FileSelect* file_select_delegate = - delegate()->GetFileSelectDelegate(); - if (file_select_delegate) - file_select_delegate->RunFileChooser(this, params); -} - void RenderViewHost::OnMsgRunJavaScriptMessage( const std::wstring& message, const std::wstring& default_prompt, @@ -1340,21 +1304,6 @@ void RenderViewHost::OnMsgPageHasOSDD( delegate_->PageHasOSDD(this, page_id, doc_url, provider_type); } -void RenderViewHost::OnDidGetPrintedPagesCount(int cookie, int number_pages) { - RenderViewHostDelegate::Printing* printing_delegate = - delegate_->GetPrintingDelegate(); - if (printing_delegate) - printing_delegate->DidGetPrintedPagesCount(cookie, number_pages); -} - -void RenderViewHost::DidPrintPage( - const ViewHostMsg_DidPrintPage_Params& params) { - RenderViewHostDelegate::Printing* printing_delegate = - delegate_->GetPrintingDelegate(); - if (printing_delegate) - printing_delegate->DidPrintPage(params); -} - void RenderViewHost::OnAddMessageToConsole(const std::wstring& message, int32 line_no, const std::wstring& source_id) { @@ -1417,17 +1366,6 @@ void RenderViewHost::GetAllSavableResourceLinksForCurrentPage( page_url)); } -void RenderViewHost::OnReceivedSavableResourceLinksForCurrentPage( - const std::vector<GURL>& resources_list, - const std::vector<GURL>& referrers_list, - const std::vector<GURL>& frames_list) { - RenderViewHostDelegate::Save* save_delegate = delegate_->GetSaveDelegate(); - if (save_delegate) { - save_delegate->OnReceivedSavableResourceLinksForCurrentPage( - resources_list, referrers_list, frames_list); - } -} - void RenderViewHost::GetSerializedHtmlDataForCurrentPageWithLocalLinks( const std::vector<GURL>& links, const std::vector<FilePath>& local_paths, @@ -1436,14 +1374,6 @@ void RenderViewHost::GetSerializedHtmlDataForCurrentPageWithLocalLinks( routing_id(), links, local_paths, local_directory_name)); } -void RenderViewHost::OnReceivedSerializedHtmlData(const GURL& frame_url, - const std::string& data, - int32 status) { - RenderViewHostDelegate::Save* save_delegate = delegate_->GetSaveDelegate(); - if (save_delegate) - save_delegate->OnReceivedSerializedHtmlData(frame_url, data, status); -} - void RenderViewHost::OnMsgShouldCloseACK(bool proceed) { StopHangMonitorTimeout(); // If this renderer navigated while the beforeunload request was in flight, we |