Index: chrome/browser/renderer_host/render_view_host.cc |
=================================================================== |
--- chrome/browser/renderer_host/render_view_host.cc (revision 26435) |
+++ chrome/browser/renderer_host/render_view_host.cc (working copy) |
@@ -774,6 +774,8 @@ |
IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnMsgFindReply) |
IPC_MESSAGE_HANDLER(ViewMsg_DeterminePageText_Reply, |
OnDeterminePageTextReply) |
+ IPC_MESSAGE_HANDLER(ViewMsg_ExecuteCodeFinished, |
+ OnExecuteCodeFinished) |
IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFavIconURL, OnMsgUpdateFavIconURL) |
IPC_MESSAGE_HANDLER(ViewHostMsg_DidDownloadFavIcon, OnMsgDidDownloadFavIcon) |
IPC_MESSAGE_HANDLER(ViewHostMsg_ContextMenu, OnMsgContextMenu) |
@@ -1127,6 +1129,14 @@ |
#endif |
} |
+void RenderViewHost::OnExecuteCodeFinished(int request_id, bool success) { |
+ std::pair<int, bool> result_details(request_id, success); |
+ NotificationService::current()->Notify( |
+ NotificationType::TAB_CODE_EXECUTED, |
+ NotificationService::AllSources(), |
+ Details<std::pair<int, bool> >(&result_details)); |
+} |
+ |
void RenderViewHost::OnMsgUpdateFavIconURL(int32 page_id, |
const GURL& icon_url) { |
RenderViewHostDelegate::FavIcon* favicon_delegate = |