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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 6368011: Clean up WebNavigationObserver by taking out password specific callbacks, and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/renderer_host/render_view_host.h" 5 #include "chrome/browser/renderer_host/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 OnMsgForwardMessageToExternalHost) 777 OnMsgForwardMessageToExternalHost)
778 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnMsgGoToEntryAtOffset) 778 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnMsgGoToEntryAtOffset)
779 IPC_MESSAGE_HANDLER(ViewHostMsg_SetTooltipText, OnMsgSetTooltipText) 779 IPC_MESSAGE_HANDLER(ViewHostMsg_SetTooltipText, OnMsgSetTooltipText)
780 IPC_MESSAGE_HANDLER(ViewHostMsg_RunFileChooser, OnMsgRunFileChooser) 780 IPC_MESSAGE_HANDLER(ViewHostMsg_RunFileChooser, OnMsgRunFileChooser)
781 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunJavaScriptMessage, 781 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunJavaScriptMessage,
782 OnMsgRunJavaScriptMessage) 782 OnMsgRunJavaScriptMessage)
783 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunBeforeUnloadConfirm, 783 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunBeforeUnloadConfirm,
784 OnMsgRunBeforeUnloadConfirm) 784 OnMsgRunBeforeUnloadConfirm)
785 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_ShowModalHTMLDialog, 785 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_ShowModalHTMLDialog,
786 OnMsgShowModalHTMLDialog) 786 OnMsgShowModalHTMLDialog)
787 IPC_MESSAGE_HANDLER(ViewHostMsg_PasswordFormsFound, OnMsgPasswordFormsFound)
788 IPC_MESSAGE_HANDLER(ViewHostMsg_PasswordFormsVisible,
789 OnMsgPasswordFormsVisible)
790 IPC_MESSAGE_HANDLER(ViewHostMsg_StartDragging, OnMsgStartDragging) 787 IPC_MESSAGE_HANDLER(ViewHostMsg_StartDragging, OnMsgStartDragging)
791 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateDragCursor, OnUpdateDragCursor) 788 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateDragCursor, OnUpdateDragCursor)
792 IPC_MESSAGE_HANDLER(ViewHostMsg_TakeFocus, OnTakeFocus) 789 IPC_MESSAGE_HANDLER(ViewHostMsg_TakeFocus, OnTakeFocus)
793 IPC_MESSAGE_HANDLER(ViewHostMsg_PageHasOSDD, OnMsgPageHasOSDD) 790 IPC_MESSAGE_HANDLER(ViewHostMsg_PageHasOSDD, OnMsgPageHasOSDD)
794 IPC_MESSAGE_HANDLER(ViewHostMsg_DidGetPrintedPagesCount, 791 IPC_MESSAGE_HANDLER(ViewHostMsg_DidGetPrintedPagesCount,
795 OnDidGetPrintedPagesCount) 792 OnDidGetPrintedPagesCount)
796 IPC_MESSAGE_HANDLER(ViewHostMsg_DidPrintPage, DidPrintPage) 793 IPC_MESSAGE_HANDLER(ViewHostMsg_DidPrintPage, DidPrintPage)
797 IPC_MESSAGE_HANDLER(ViewHostMsg_AddMessageToConsole, OnAddMessageToConsole) 794 IPC_MESSAGE_HANDLER(ViewHostMsg_AddMessageToConsole, OnAddMessageToConsole)
798 IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardToDevToolsAgent, 795 IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardToDevToolsAgent,
799 OnForwardToDevToolsAgent) 796 OnForwardToDevToolsAgent)
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
1354 } 1351 }
1355 1352
1356 void RenderViewHost::ContextMenuClosed() { 1353 void RenderViewHost::ContextMenuClosed() {
1357 Send(new ViewMsg_ContextMenuClosed(routing_id())); 1354 Send(new ViewMsg_ContextMenuClosed(routing_id()));
1358 } 1355 }
1359 1356
1360 void RenderViewHost::PrintNodeUnderContextMenu() { 1357 void RenderViewHost::PrintNodeUnderContextMenu() {
1361 Send(new ViewMsg_PrintNodeUnderContextMenu(routing_id())); 1358 Send(new ViewMsg_PrintNodeUnderContextMenu(routing_id()));
1362 } 1359 }
1363 1360
1364 void RenderViewHost::OnMsgPasswordFormsFound(
1365 const std::vector<PasswordForm>& forms) {
1366 delegate_->PasswordFormsFound(forms);
1367 }
1368
1369 void RenderViewHost::OnMsgPasswordFormsVisible(
1370 const std::vector<PasswordForm>& visible_forms) {
1371 delegate_->PasswordFormsVisible(visible_forms);
1372 }
1373
1374 void RenderViewHost::OnMsgStartDragging( 1361 void RenderViewHost::OnMsgStartDragging(
1375 const WebDropData& drop_data, 1362 const WebDropData& drop_data,
1376 WebDragOperationsMask drag_operations_mask, 1363 WebDragOperationsMask drag_operations_mask,
1377 const SkBitmap& image, 1364 const SkBitmap& image,
1378 const gfx::Point& image_offset) { 1365 const gfx::Point& image_offset) {
1379 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); 1366 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
1380 if (view) 1367 if (view)
1381 view->StartDragging(drop_data, drag_operations_mask, image, image_offset); 1368 view->StartDragging(drop_data, drag_operations_mask, image, image_offset);
1382 } 1369 }
1383 1370
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
1722 } 1709 }
1723 1710
1724 void RenderViewHost::UpdateBrowserWindowId(int window_id) { 1711 void RenderViewHost::UpdateBrowserWindowId(int window_id) {
1725 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id)); 1712 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id));
1726 } 1713 }
1727 1714
1728 void RenderViewHost::PerformCustomContextMenuAction(unsigned action) { 1715 void RenderViewHost::PerformCustomContextMenuAction(unsigned action) {
1729 Send(new ViewMsg_CustomContextMenuAction(routing_id(), action)); 1716 Send(new ViewMsg_CustomContextMenuAction(routing_id(), action));
1730 } 1717 }
1731 1718
1732 void RenderViewHost::TranslatePage(int page_id,
1733 const std::string& translate_script,
1734 const std::string& source_lang,
1735 const std::string& target_lang) {
1736 Send(new ViewMsg_TranslatePage(routing_id(), page_id, translate_script,
1737 source_lang, target_lang));
1738 }
1739
1740 void RenderViewHost::RevertTranslation(int page_id) {
1741 Send(new ViewMsg_RevertTranslation(routing_id(), page_id));
1742 }
1743
1744 void RenderViewHost::SendContentSettings(const GURL& url, 1719 void RenderViewHost::SendContentSettings(const GURL& url,
1745 const ContentSettings& settings) { 1720 const ContentSettings& settings) {
1746 Send(new ViewMsg_SetContentSettingsForCurrentURL(url, settings)); 1721 Send(new ViewMsg_SetContentSettingsForCurrentURL(url, settings));
1747 } 1722 }
1748 1723
1749 void RenderViewHost::EnablePreferredSizeChangedMode(int flags) { 1724 void RenderViewHost::EnablePreferredSizeChangedMode(int flags) {
1750 Send(new ViewMsg_EnablePreferredSizeChangedMode(routing_id(), flags)); 1725 Send(new ViewMsg_EnablePreferredSizeChangedMode(routing_id(), flags));
1751 } 1726 }
1752 1727
1753 #if defined(OS_MACOSX) 1728 #if defined(OS_MACOSX)
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
2010 if (printer_query.get()) { 1985 if (printer_query.get()) {
2011 BrowserThread::PostTask( 1986 BrowserThread::PostTask(
2012 BrowserThread::IO, FROM_HERE, 1987 BrowserThread::IO, FROM_HERE,
2013 NewRunnableMethod(printer_query.get(), 1988 NewRunnableMethod(printer_query.get(),
2014 &printing::PrinterQuery::StopWorker)); 1989 &printing::PrinterQuery::StopWorker));
2015 } 1990 }
2016 1991
2017 // Send the printingDone msg for now. 1992 // Send the printingDone msg for now.
2018 Send(new ViewMsg_PrintingDone(routing_id(), params.document_cookie, true)); 1993 Send(new ViewMsg_PrintingDone(routing_id(), params.document_cookie, true));
2019 } 1994 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698