diff options
author | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-21 05:48:22 +0000 |
---|---|---|
committer | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-21 05:48:22 +0000 |
commit | 2b06a99e03e8f69171bb3a79f2a9b58aa95345f1 (patch) | |
tree | 28b5e796f1150838169619c4febc1095fce1295e /chrome/common/render_messages.h | |
parent | 65a3b914585cee20f1c8b213c82eaa2a5da0cb25 (diff) | |
download | chromium_src-2b06a99e03e8f69171bb3a79f2a9b58aa95345f1.zip chromium_src-2b06a99e03e8f69171bb3a79f2a9b58aa95345f1.tar.gz chromium_src-2b06a99e03e8f69171bb3a79f2a9b58aa95345f1.tar.bz2 |
Add 1st cut of IPC plumbing code for FileSystem API's openFileSystem
The dispatcher host code is just a stub.
BUG=32277
TESTS=none; will be added later
Review URL: http://codereview.chromium.org/3107026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56984 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages.h')
-rw-r--r-- | chrome/common/render_messages.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h index 8f6c8ad..8e6f862 100644 --- a/chrome/common/render_messages.h +++ b/chrome/common/render_messages.h @@ -889,6 +889,23 @@ struct ViewHostMsg_DomMessage_Params { bool user_gesture; }; +struct ViewHostMsg_OpenFileSystemRequest_Params { + // The routing ID of the view initiating the request. + int routing_id; + + // The response should have this id. + int request_id; + + // The origin doing the initiating. + GURL origin_url; + + // The requested FileSystem type. + WebKit::WebFileSystem::Type type; + + // Indicates how much storage space (in bytes) the caller expects to need. + int64 requested_size; +}; + namespace IPC { template <> @@ -2771,6 +2788,39 @@ struct ParamTraits<ViewHostMsg_DomMessage_Params> { } }; +template <> +struct ParamTraits<ViewHostMsg_OpenFileSystemRequest_Params> { + typedef ViewHostMsg_OpenFileSystemRequest_Params param_type; + static void Write(Message* m, const param_type& p) { + WriteParam(m, p.routing_id); + WriteParam(m, p.request_id); + WriteParam(m, p.origin_url); + WriteParam(m, p.type); + WriteParam(m, p.requested_size); + } + static bool Read(const Message* m, void** iter, param_type* p) { + return + ReadParam(m, iter, &p->routing_id) && + ReadParam(m, iter, &p->request_id) && + ReadParam(m, iter, &p->origin_url) && + ReadParam(m, iter, &p->type) && + ReadParam(m, iter, &p->requested_size); + } + static void Log(const param_type& p, std::string* l) { + l->append("("); + LogParam(p.routing_id, l); + l->append(", "); + LogParam(p.request_id, l); + l->append(", "); + LogParam(p.origin_url, l); + l->append(", "); + LogParam(p.type, l); + l->append(", "); + LogParam(p.requested_size, l); + l->append(")"); + } +}; + } // namespace IPC #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |