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

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

Issue 6672057: Move all the message files in chrome that belong in content. (Closed) Base URL: svn://chrome-svn/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
(Empty)
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
3 // found in the LICENSE file.
4
5 // Multiply-included message file, no traditional include guard.
6 #include "content/common/common_param_traits.h"
7 #include "ipc/ipc_message_macros.h"
8 #include "ipc/ipc_param_traits.h"
9 #include "ipc/ipc_platform_file.h"
10 #include "webkit/plugins/ppapi/dir_contents.h"
11 #include "webkit/plugins/ppapi/file_path.h"
12
13 // Singly-included section, still not converted
14 #ifndef CHROME_COMMON_PEPPER_FILE_MESSAGES_H_
15 #define CHROME_COMMON_PEPPER_FILE_MESSAGES_H_
16
17 namespace IPC {
18
19 // Also needed for Serializing DirContents, which is just a vector of DirEntry.
20 template <>
21 struct ParamTraits<webkit::ppapi::DirEntry> {
22 typedef webkit::ppapi::DirEntry param_type;
23 static void Write(Message* m, const param_type& p);
24 static bool Read(const Message* m, void** iter, param_type* p);
25 static void Log(const param_type& p, std::string* l);
26 };
27
28 template <>
29 struct ParamTraits<webkit::ppapi::PepperFilePath> {
30 typedef webkit::ppapi::PepperFilePath param_type;
31 static void Write(Message* m, const param_type& p);
32 static bool Read(const Message* m, void** iter, param_type* p);
33 static void Log(const param_type& p, std::string* l);
34 };
35
36 } // namespace IPC
37
38 #endif // CHROME_COMMON_PEPPER_FILE_MESSAGES_H_
39
40 #define IPC_MESSAGE_START PepperFileMsgStart
41
42 // Trusted Pepper Filesystem messages from the renderer to the browser.
43
44 // Open the file.
45 IPC_SYNC_MESSAGE_CONTROL2_2(PepperFileMsg_OpenFile,
46 webkit::ppapi::PepperFilePath /* path */,
47 int /* flags */,
48 base::PlatformFileError /* error_code */,
49 IPC::PlatformFileForTransit /* result */)
50
51 // Rename the file.
52 IPC_SYNC_MESSAGE_CONTROL2_1(PepperFileMsg_RenameFile,
53 webkit::ppapi::PepperFilePath /* from_path */,
54 webkit::ppapi::PepperFilePath /* to_path */,
55 base::PlatformFileError /* error_code */)
56
57 // Delete the file.
58 IPC_SYNC_MESSAGE_CONTROL2_1(PepperFileMsg_DeleteFileOrDir,
59 webkit::ppapi::PepperFilePath /* path */,
60 bool /* recursive */,
61 base::PlatformFileError /* error_code */)
62
63 // Create the directory.
64 IPC_SYNC_MESSAGE_CONTROL1_1(PepperFileMsg_CreateDir,
65 webkit::ppapi::PepperFilePath /* path */,
66 base::PlatformFileError /* error_code */)
67
68 // Query the file's info.
69 IPC_SYNC_MESSAGE_CONTROL1_2(PepperFileMsg_QueryFile,
70 webkit::ppapi::PepperFilePath /* path */,
71 base::PlatformFileInfo, /* info */
72 base::PlatformFileError /* error_code */)
73
74 // Get the directory's contents.
75 IPC_SYNC_MESSAGE_CONTROL1_2(PepperFileMsg_GetDirContents,
76 webkit::ppapi::PepperFilePath /* path */,
77 webkit::ppapi::DirContents, /* contents */
78 base::PlatformFileError /* error_code */)
79
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698