Index: content/browser/tab_contents/tab_contents.cc |
=================================================================== |
--- content/browser/tab_contents/tab_contents.cc (revision 76768) |
+++ content/browser/tab_contents/tab_contents.cc (working copy) |
@@ -448,6 +448,7 @@ |
IPC_MESSAGE_HANDLER(ViewHostMsg_InstantSupportDetermined, |
OnInstantSupportDetermined) |
IPC_MESSAGE_HANDLER(ViewHostMsg_RunFileChooser, OnRunFileChooser) |
+ IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) |
IPC_MESSAGE_UNHANDLED(handled = false) |
IPC_END_MESSAGE_MAP_EX() |
@@ -1980,6 +1981,12 @@ |
delegate()->OnInstantSupportDetermined(page_id, result); |
} |
+void TabContents::OnEnumerateDirectory(int request_id, const FilePath& path) { |
+ if (file_select_helper_.get() == NULL) |
+ file_select_helper_.reset(new FileSelectHelper(profile())); |
+ file_select_helper_->EnumerateDirectory(request_id, render_view_host(), path); |
+} |
+ |
void TabContents::OnRunFileChooser( |
const ViewHostMsg_RunFileChooser_Params& params) { |
if (file_select_helper_.get() == NULL) |
@@ -1987,7 +1994,6 @@ |
file_select_helper_->RunFileChooser(render_view_host(), params); |
} |
- |
void TabContents::OnContentSettingsAccessed(bool content_was_blocked) { |
if (delegate_) |
delegate_->OnContentSettingsChange(this); |