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

Unified Diff: chrome/common/render_messages_internal.h

Issue 6623015: Add a path for a web page to request the enumeration of a directory. This, t... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/render_messages_internal.h
===================================================================
--- chrome/common/render_messages_internal.h (revision 76768)
+++ chrome/common/render_messages_internal.h (working copy)
@@ -569,6 +569,11 @@
IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse,
std::vector<FilePath> /* selected files */)
+// Provides the results of directory enumeration.
+IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse,
+ int /* request_id */,
+ std::vector<FilePath> /* files_in_directory */)
+
// Used to instruct the RenderView to go into "view source" mode.
IPC_MESSAGE_ROUTED0(ViewMsg_EnableViewSourceMode)
@@ -1654,6 +1659,14 @@
IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser,
ViewHostMsg_RunFileChooser_Params)
+// Asks the browser to enumerate a directory. This is equivalent to running
+// the file chooser in directory-enumeration mode and having the user select
+// the given directory. The result is returned in a
+// ViewHost_EnumerateDirectoryResponse message.
+IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory,
+ int /* request_id */,
+ FilePath /* file_path */);
+
// Used to tell the parent the user started dragging in the content area. The
// WebDropData struct contains contextual information about the pieces of the
// page the user dragged. The parent uses this notification to initiate a

Powered by Google App Engine
This is Rietveld 408576698