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

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

Issue 6646005: Creates the ipclist utility that chrome security team has wanted to dump... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PEPPER_FILE_MESSAGES_H_ 5 // Multiply-included message file, no traditional include guard.
6 #define CHROME_COMMON_PEPPER_FILE_MESSAGES_H_
7 #pragma once
8 6
9 #include "content/common/common_param_traits.h" 7 #include "content/common/common_param_traits.h"
10 #include "ipc/ipc_message_macros.h" 8 #include "ipc/ipc_message_macros.h"
11 #include "ipc/ipc_param_traits.h" 9 #include "ipc/ipc_param_traits.h"
12 #include "ipc/ipc_platform_file.h" 10 #include "ipc/ipc_platform_file.h"
13 #include "webkit/plugins/ppapi/dir_contents.h" 11 #include "webkit/plugins/ppapi/dir_contents.h"
14 #include "webkit/plugins/ppapi/file_path.h" 12 #include "webkit/plugins/ppapi/file_path.h"
15 13
16 #define IPC_MESSAGE_START PepperFileMsgStart 14 #define IPC_MESSAGE_START PepperFileMsgStart
17 15
16 // Singly-included section not yet converted
17 #ifndef CHROME_COMMON_PEPPER_FILE_MESSAGES_H_
18 #define CHROME_COMMON_PEPPER_FILE_MESSAGES_H_
19
18 namespace IPC { 20 namespace IPC {
19 21
20 // Also needed for Serializing DirContents, which is just a vector of DirEntry. 22 // Also needed for Serializing DirContents, which is just a vector of DirEntry.
21 template <> 23 template <>
22 struct ParamTraits<webkit::ppapi::DirEntry> { 24 struct ParamTraits<webkit::ppapi::DirEntry> {
23 typedef webkit::ppapi::DirEntry param_type; 25 typedef webkit::ppapi::DirEntry param_type;
24 static void Write(Message* m, const param_type& p); 26 static void Write(Message* m, const param_type& p);
25 static bool Read(const Message* m, void** iter, param_type* p); 27 static bool Read(const Message* m, void** iter, param_type* p);
26 static void Log(const param_type& p, std::string* l); 28 static void Log(const param_type& p, std::string* l);
27 }; 29 };
28 30
29 template <> 31 template <>
30 struct ParamTraits<webkit::ppapi::PepperFilePath> { 32 struct ParamTraits<webkit::ppapi::PepperFilePath> {
31 typedef webkit::ppapi::PepperFilePath param_type; 33 typedef webkit::ppapi::PepperFilePath param_type;
32 static void Write(Message* m, const param_type& p); 34 static void Write(Message* m, const param_type& p);
33 static bool Read(const Message* m, void** iter, param_type* p); 35 static bool Read(const Message* m, void** iter, param_type* p);
34 static void Log(const param_type& p, std::string* l); 36 static void Log(const param_type& p, std::string* l);
35 }; 37 };
36 38
37 } // namespace IPC 39 } // namespace IPC
38 40
41 #endif // CHROME_COMMON_PEPPER_FILE_MESSAGES_H_
42
39 // Trusted Pepper Filesystem messages from the renderer to the browser. 43 // Trusted Pepper Filesystem messages from the renderer to the browser.
40 44
41 // Open the file. 45 // Open the file.
42 IPC_SYNC_MESSAGE_CONTROL2_2(PepperFileMsg_OpenFile, 46 IPC_SYNC_MESSAGE_CONTROL2_2(PepperFileMsg_OpenFile,
43 webkit::ppapi::PepperFilePath /* path */, 47 webkit::ppapi::PepperFilePath /* path */,
44 int /* flags */, 48 int /* flags */,
45 base::PlatformFileError /* error_code */, 49 base::PlatformFileError /* error_code */,
46 IPC::PlatformFileForTransit /* result */) 50 IPC::PlatformFileForTransit /* result */)
47 51
48 // Rename the file. 52 // Rename the file.
(...skipping 18 matching lines...) Expand all
67 webkit::ppapi::PepperFilePath /* path */, 71 webkit::ppapi::PepperFilePath /* path */,
68 base::PlatformFileInfo, /* info */ 72 base::PlatformFileInfo, /* info */
69 base::PlatformFileError /* error_code */) 73 base::PlatformFileError /* error_code */)
70 74
71 // Get the directory's contents. 75 // Get the directory's contents.
72 IPC_SYNC_MESSAGE_CONTROL1_2(PepperFileMsg_GetDirContents, 76 IPC_SYNC_MESSAGE_CONTROL1_2(PepperFileMsg_GetDirContents,
73 webkit::ppapi::PepperFilePath /* path */, 77 webkit::ppapi::PepperFilePath /* path */,
74 webkit::ppapi::DirContents, /* contents */ 78 webkit::ppapi::DirContents, /* contents */
75 base::PlatformFileError /* error_code */) 79 base::PlatformFileError /* error_code */)
76 80
77 #endif // CHROME_COMMON_PEPPER_FILE_MESSAGES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698