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

Unified Diff: chrome/common/render_messages_params.h

Issue 3208007: Add final part of IPC plumbing for FileSystem API (Closed)
Patch Set: fixing Created 10 years, 4 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_params.h
diff --git a/chrome/common/render_messages_params.h b/chrome/common/render_messages_params.h
index abf2b028f96483dbfb02361b0f3672f421c31ddf..a3c5d205502115238b6f165b8fe03878e1e6fb55 100644
--- a/chrome/common/render_messages_params.h
+++ b/chrome/common/render_messages_params.h
@@ -839,6 +839,27 @@ struct ViewHostMsg_OpenFileSystemRequest_Params {
int64 requested_size;
};
+struct ViewMsg_FileSystem_DidReadDirectory_Params {
+ // The response should have this id.
+ int request_id;
+
+ // TODO(kinuko): replace this with file_util_proxy's entry structure
+ // once it's defined.
+ struct Entry {
+ // Name of the entry.
+ FilePath name;
+
+ // Indicates if the entry is directory or not.
+ bool is_directory;
+ };
+
+ // A vector of directory entries.
+ std::vector<Entry> entries;
+
+ // Indicates if there will be more entries.
+ bool has_more;
+};
+
namespace IPC {
class Message;
@@ -1092,6 +1113,22 @@ struct ParamTraits<ViewHostMsg_OpenFileSystemRequest_Params> {
static void Log(const param_type& p, std::string* l);
};
+template <>
+struct ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params> {
+ typedef ViewMsg_FileSystem_DidReadDirectory_Params param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, void** iter, param_type* p);
+ static void Log(const param_type& p, std::string* l);
+};
+
+template <>
+struct ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params::Entry> {
+ typedef ViewMsg_FileSystem_DidReadDirectory_Params::Entry param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, void** iter, param_type* p);
+ static void Log(const param_type& p, std::string* l);
+};
+
} // namespace IPC
#endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_

Powered by Google App Engine
This is Rietveld 408576698