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

Side by Side Diff: content/common/pepper_file_messages.h

Issue 9447084: Refactor Pickle Read methods to use higher performance PickleIterator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile (racing with incoming CLs) Created 8 years, 9 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 | « content/common/mac/attributed_string_coder.mm ('k') | content/common/pepper_file_messages.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) 2011 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 // Multiply-included message file, no traditional include guard. 5 // Multiply-included message file, no traditional include guard.
6 #include "content/public/common/common_param_traits.h" 6 #include "content/public/common/common_param_traits.h"
7 #include "ipc/ipc_message_macros.h" 7 #include "ipc/ipc_message_macros.h"
8 #include "ipc/ipc_param_traits.h" 8 #include "ipc/ipc_param_traits.h"
9 #include "ipc/ipc_platform_file.h" 9 #include "ipc/ipc_platform_file.h"
10 #include "webkit/plugins/ppapi/dir_contents.h" 10 #include "webkit/plugins/ppapi/dir_contents.h"
11 #include "webkit/plugins/ppapi/file_path.h" 11 #include "webkit/plugins/ppapi/file_path.h"
12 12
13 // Singly-included section since need custom serialization. 13 // Singly-included section since need custom serialization.
14 #ifndef CONTENT_COMMON_PEPPER_FILE_MESSAGES_H_ 14 #ifndef CONTENT_COMMON_PEPPER_FILE_MESSAGES_H_
15 #define CONTENT_COMMON_PEPPER_FILE_MESSAGES_H_ 15 #define CONTENT_COMMON_PEPPER_FILE_MESSAGES_H_
16 16
17 namespace IPC { 17 namespace IPC {
18 18
19 template <> 19 template <>
20 struct ParamTraits<webkit::ppapi::PepperFilePath> { 20 struct ParamTraits<webkit::ppapi::PepperFilePath> {
21 typedef webkit::ppapi::PepperFilePath param_type; 21 typedef webkit::ppapi::PepperFilePath param_type;
22 static void Write(Message* m, const param_type& p); 22 static void Write(Message* m, const param_type& p);
23 static bool Read(const Message* m, void** iter, param_type* p); 23 static bool Read(const Message* m, PickleIterator* iter, param_type* p);
24 static void Log(const param_type& p, std::string* l); 24 static void Log(const param_type& p, std::string* l);
25 }; 25 };
26 26
27 } // namespace IPC 27 } // namespace IPC
28 28
29 #endif // CONTENT_COMMON_PEPPER_FILE_MESSAGES_H_ 29 #endif // CONTENT_COMMON_PEPPER_FILE_MESSAGES_H_
30 30
31 #define IPC_MESSAGE_START PepperFileMsgStart 31 #define IPC_MESSAGE_START PepperFileMsgStart
32 32
33 IPC_STRUCT_TRAITS_BEGIN(webkit::ppapi::DirEntry) 33 IPC_STRUCT_TRAITS_BEGIN(webkit::ppapi::DirEntry)
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 webkit::ppapi::PepperFilePath /* path */, 66 webkit::ppapi::PepperFilePath /* path */,
67 base::PlatformFileInfo, /* info */ 67 base::PlatformFileInfo, /* info */
68 base::PlatformFileError /* error_code */) 68 base::PlatformFileError /* error_code */)
69 69
70 // Get the directory's contents. 70 // Get the directory's contents.
71 IPC_SYNC_MESSAGE_CONTROL1_2(PepperFileMsg_GetDirContents, 71 IPC_SYNC_MESSAGE_CONTROL1_2(PepperFileMsg_GetDirContents,
72 webkit::ppapi::PepperFilePath /* path */, 72 webkit::ppapi::PepperFilePath /* path */,
73 webkit::ppapi::DirContents, /* contents */ 73 webkit::ppapi::DirContents, /* contents */
74 base::PlatformFileError /* error_code */) 74 base::PlatformFileError /* error_code */)
75 75
OLDNEW
« no previous file with comments | « content/common/mac/attributed_string_coder.mm ('k') | content/common/pepper_file_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698