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

Side by Side Diff: ppapi/proxy/ppapi_param_traits.cc

Issue 14188019: CRX FileSystem Pepper private API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: traits Created 7 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "ppapi/proxy/ppapi_param_traits.h" 5 #include "ppapi/proxy/ppapi_param_traits.h"
6 6
7 #include <string.h> // For memcpy 7 #include <string.h> // For memcpy
8 8
9 #include "ppapi/c/pp_file_info.h" 9 #include "ppapi/c/pp_file_info.h"
10 #include "ppapi/c/pp_resource.h" 10 #include "ppapi/c/pp_resource.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 !ParamTraits<double>::Read(m, iter, &r->last_modified_time)) 122 !ParamTraits<double>::Read(m, iter, &r->last_modified_time))
123 return false; 123 return false;
124 if (type != PP_FILETYPE_REGULAR && 124 if (type != PP_FILETYPE_REGULAR &&
125 type != PP_FILETYPE_DIRECTORY && 125 type != PP_FILETYPE_DIRECTORY &&
126 type != PP_FILETYPE_OTHER) 126 type != PP_FILETYPE_OTHER)
127 return false; 127 return false;
128 r->type = static_cast<PP_FileType>(type); 128 r->type = static_cast<PP_FileType>(type);
129 if (system_type != PP_FILESYSTEMTYPE_INVALID && 129 if (system_type != PP_FILESYSTEMTYPE_INVALID &&
130 system_type != PP_FILESYSTEMTYPE_EXTERNAL && 130 system_type != PP_FILESYSTEMTYPE_EXTERNAL &&
131 system_type != PP_FILESYSTEMTYPE_LOCALPERSISTENT && 131 system_type != PP_FILESYSTEMTYPE_LOCALPERSISTENT &&
132 system_type != PP_FILESYSTEMTYPE_LOCALTEMPORARY) 132 system_type != PP_FILESYSTEMTYPE_LOCALTEMPORARY &&
133 system_type != PP_FILESYSTEMTYPE_ISOLATED)
victorhsieh 2013/04/25 02:21:52 Adding this missing part to make FileIO::Query wor
133 return false; 134 return false;
134 r->system_type = static_cast<PP_FileSystemType>(system_type); 135 r->system_type = static_cast<PP_FileSystemType>(system_type);
135 return true; 136 return true;
136 } 137 }
137 138
138 // static 139 // static
139 void ParamTraits<PP_FileInfo>::Log(const param_type& p, std::string* l) { 140 void ParamTraits<PP_FileInfo>::Log(const param_type& p, std::string* l) {
140 } 141 }
141 142
142 // PP_NetAddress_Private ------------------------------------------------------- 143 // PP_NetAddress_Private -------------------------------------------------------
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 param_type* r) { 652 param_type* r) {
652 return ParamTraits<ListValue>::Read(m, iter, &(r->values_)); 653 return ParamTraits<ListValue>::Read(m, iter, &(r->values_));
653 } 654 }
654 655
655 // static 656 // static
656 void ParamTraits<ppapi::PPB_X509Certificate_Fields>::Log(const param_type& p, 657 void ParamTraits<ppapi::PPB_X509Certificate_Fields>::Log(const param_type& p,
657 std::string* l) { 658 std::string* l) {
658 } 659 }
659 660
660 } // namespace IPC 661 } // namespace IPC
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698