| Index: chrome/common/render_messages.h
|
| ===================================================================
|
| --- chrome/common/render_messages.h (revision 30698)
|
| +++ chrome/common/render_messages.h (working copy)
|
| @@ -396,6 +396,16 @@
|
| #endif
|
| };
|
|
|
| +struct ViewMsg_OpenFileForPluginResponse_Params {
|
| + // Note: if we end up having to add a directory handle, this should be
|
| + // combined with the DatabaseOpenFileResponse_Params struct.
|
| +#if defined(OS_WIN)
|
| + base::PlatformFile file_handle;
|
| +#elif defined(OS_POSIX)
|
| + base::FileDescriptor file_handle;
|
| +#endif
|
| +};
|
| +
|
| // Parameters to describe a rendered page.
|
| struct ViewHostMsg_DidPrintPage_Params {
|
| // A shared memory handle to the EMF data. This data can be quite large so a
|
| @@ -1775,6 +1785,20 @@
|
| };
|
|
|
| template <>
|
| +struct ParamTraits<ViewMsg_OpenFileForPluginResponse_Params> {
|
| + typedef ViewMsg_OpenFileForPluginResponse_Params param_type;
|
| + static void Write(Message* m, const param_type& p) {
|
| + WriteParam(m, p.file_handle);
|
| + }
|
| + static bool Read(const Message* m, void** iter, param_type* p) {
|
| + return ReadParam(m, iter, &p->file_handle);
|
| + }
|
| + static void Log(const param_type& p, std::wstring* l) {
|
| + LogParam(p.file_handle, l);
|
| + }
|
| +};
|
| +
|
| +template <>
|
| struct ParamTraits<appcache::Status> {
|
| typedef appcache::Status param_type;
|
| static void Write(Message* m, const param_type& p) {
|
|
|