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

Side by Side Diff: chrome/common/render_messages_params.h

Issue 3245010: Revert 57915 - Add final part of IPC plumbing for FileSystem API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/common/render_messages_params.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_
6 #define CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ 6 #define CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 // The origin doing the initiating. 838 // The origin doing the initiating.
839 GURL origin_url; 839 GURL origin_url;
840 840
841 // The requested FileSystem type. 841 // The requested FileSystem type.
842 WebKit::WebFileSystem::Type type; 842 WebKit::WebFileSystem::Type type;
843 843
844 // Indicates how much storage space (in bytes) the caller expects to need. 844 // Indicates how much storage space (in bytes) the caller expects to need.
845 int64 requested_size; 845 int64 requested_size;
846 }; 846 };
847 847
848 struct ViewMsg_FileSystem_DidReadDirectory_Params {
849 // The response should have this id.
850 int request_id;
851
852 // TODO(kinuko): replace this with file_util_proxy's entry structure
853 // once it's defined.
854 struct Entry {
855 // Name of the entry.
856 FilePath name;
857
858 // Indicates if the entry is directory or not.
859 bool is_directory;
860 };
861
862 // A vector of directory entries.
863 std::vector<Entry> entries;
864
865 // Indicates if there will be more entries.
866 bool has_more;
867 };
868
869 namespace IPC { 848 namespace IPC {
870 849
871 class Message; 850 class Message;
872 851
873 // Traits for ViewMsg_Navigate_Params structure to pack/unpack. 852 // Traits for ViewMsg_Navigate_Params structure to pack/unpack.
874 template <> 853 template <>
875 struct ParamTraits<ViewMsg_Navigate_Params> { 854 struct ParamTraits<ViewMsg_Navigate_Params> {
876 typedef ViewMsg_Navigate_Params param_type; 855 typedef ViewMsg_Navigate_Params param_type;
877 static void Write(Message* m, const param_type& p); 856 static void Write(Message* m, const param_type& p);
878 static bool Read(const Message* m, void** iter, param_type* p); 857 static bool Read(const Message* m, void** iter, param_type* p);
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
1112 }; 1091 };
1113 1092
1114 template <> 1093 template <>
1115 struct ParamTraits<ViewHostMsg_OpenFileSystemRequest_Params> { 1094 struct ParamTraits<ViewHostMsg_OpenFileSystemRequest_Params> {
1116 typedef ViewHostMsg_OpenFileSystemRequest_Params param_type; 1095 typedef ViewHostMsg_OpenFileSystemRequest_Params param_type;
1117 static void Write(Message* m, const param_type& p); 1096 static void Write(Message* m, const param_type& p);
1118 static bool Read(const Message* m, void** iter, param_type* p); 1097 static bool Read(const Message* m, void** iter, param_type* p);
1119 static void Log(const param_type& p, std::string* l); 1098 static void Log(const param_type& p, std::string* l);
1120 }; 1099 };
1121 1100
1122 template <>
1123 struct ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params> {
1124 typedef ViewMsg_FileSystem_DidReadDirectory_Params param_type;
1125 static void Write(Message* m, const param_type& p);
1126 static bool Read(const Message* m, void** iter, param_type* p);
1127 static void Log(const param_type& p, std::string* l);
1128 };
1129
1130 template <>
1131 struct ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params::Entry> {
1132 typedef ViewMsg_FileSystem_DidReadDirectory_Params::Entry param_type;
1133 static void Write(Message* m, const param_type& p);
1134 static bool Read(const Message* m, void** iter, param_type* p);
1135 static void Log(const param_type& p, std::string* l);
1136 };
1137
1138 } // namespace IPC 1101 } // namespace IPC
1139 1102
1140 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ 1103 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_
OLDNEW
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/common/render_messages_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698