diff options
author | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-31 04:07:29 +0000 |
---|---|---|
committer | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-31 04:07:29 +0000 |
commit | 7c1cf47e757207d6c90a5954ced27c2d108bc7b4 (patch) | |
tree | c1953598151e167bb1831c96e749c8814aee6e50 /chrome/common/render_messages_params.h | |
parent | fe9dbd662522c686fcdb33b0e89c0aafa268b68f (diff) | |
download | chromium_src-7c1cf47e757207d6c90a5954ced27c2d108bc7b4.zip chromium_src-7c1cf47e757207d6c90a5954ced27c2d108bc7b4.tar.gz chromium_src-7c1cf47e757207d6c90a5954ced27c2d108bc7b4.tar.bz2 |
Add final part of IPC plumbing for FileSystem API (retry).
Original issue: http://codereview.chromium.org/3208007/show
(Reverted due to rebase error)
BUG=32277
TEST=none; to be added when we have complete implementation.
TBR=phajdan-jr, michaeln
Review URL: http://codereview.chromium.org/3256006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57955 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages_params.h')
-rw-r--r-- | chrome/common/render_messages_params.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/chrome/common/render_messages_params.h b/chrome/common/render_messages_params.h index 5666ae1..eaf7556 100644 --- a/chrome/common/render_messages_params.h +++ b/chrome/common/render_messages_params.h @@ -847,6 +847,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; @@ -1100,6 +1121,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_ |