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

Unified Diff: chrome/common/render_messages_params.cc

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.cc
diff --git a/chrome/common/render_messages_params.cc b/chrome/common/render_messages_params.cc
index edf63787361d5b9976b57119e74727fb3e7a0335..0ad8865af6a989802fcf11c1cc5ada00945feb43 100644
--- a/chrome/common/render_messages_params.cc
+++ b/chrome/common/render_messages_params.cc
@@ -1417,4 +1417,60 @@ void ParamTraits<ViewHostMsg_OpenFileSystemRequest_Params>::Log(
l->append(")");
}
+void ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params>::Write(
+ Message* m,
+ const param_type& p) {
+ WriteParam(m, p.request_id);
+ WriteParam(m, p.entries);
+ WriteParam(m, p.has_more);
+}
+
+bool ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params>::Read(
+ const Message* m,
+ void** iter,
+ param_type* p) {
+ return
+ ReadParam(m, iter, &p->request_id) &&
+ ReadParam(m, iter, &p->entries) &&
+ ReadParam(m, iter, &p->has_more);
+}
+
+void ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params>::Log(
+ const param_type& p,
+ std::string* l) {
+ l->append("(");
+ LogParam(p.request_id, l);
+ l->append(", ");
+ LogParam(p.entries, l);
+ l->append(", ");
+ LogParam(p.has_more, l);
+ l->append(")");
+}
+
+void ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params::Entry>::Write(
+ Message* m,
+ const param_type& p) {
+ WriteParam(m, p.name);
+ WriteParam(m, p.is_directory);
+}
+
+bool ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params::Entry>::Read(
+ const Message* m,
+ void** iter,
+ param_type* p) {
+ return
+ ReadParam(m, iter, &p->name) &&
+ ReadParam(m, iter, &p->is_directory);
+}
+
+void ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params::Entry>::Log(
+ const param_type& p,
+ std::string* l) {
+ l->append("(");
+ LogParam(p.name, l);
+ l->append(", ");
+ LogParam(p.is_directory, l);
+ l->append(")");
+}
+
} // namespace IPC

Powered by Google App Engine
This is Rietveld 408576698