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

Unified Diff: chrome/common/render_messages.h

Issue 3107026: Add IPC plumbing code for FileSystem API's openFileSystem (Closed)
Patch Set: nits fix + rebase 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
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages.h
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index 8f6c8ad9f329e1e266e0c4f8cba8d0a5527ad155..8e6f862c25cce708c620f836f1afd4cd620819cd 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"
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698