OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 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 #ifndef CHROME_COMMON_FILE_UTILITIES_MESSAGES_H_ |
| 6 #define CHROME_COMMON_FILE_UTILITIES_MESSAGES_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/time.h" |
| 10 #include "ipc/ipc_message_macros.h" |
| 11 #include "ipc/ipc_param_traits.h" |
| 12 #include "ipc/ipc_platform_file.h" |
| 13 |
| 14 #define IPC_MESSAGE_START FileUtilitiesMsgStart |
| 15 |
| 16 // File utilities messages sent from the renderer to the browser. |
| 17 |
| 18 // Get file size in bytes. Set result to -1 if failed to get the file size. |
| 19 IPC_SYNC_MESSAGE_CONTROL1_1(FileUtilitiesMsg_GetFileSize, |
| 20 FilePath /* path */, |
| 21 int64 /* result */) |
| 22 |
| 23 // Get file modification time in seconds. Set result to 0 if failed to get the |
| 24 // file modification time. |
| 25 IPC_SYNC_MESSAGE_CONTROL1_1(FileUtilitiesMsg_GetFileModificationTime, |
| 26 FilePath /* path */, |
| 27 base::Time /* result */) |
| 28 |
| 29 // Open the file. |
| 30 IPC_SYNC_MESSAGE_CONTROL2_1(FileUtilitiesMsg_OpenFile, |
| 31 FilePath /* path */, |
| 32 int /* mode */, |
| 33 IPC::PlatformFileForTransit /* result */) |
| 34 |
| 35 #endif // CHROME_COMMON_FILE_UTILITIES_MESSAGES_H_ |
OLD | NEW |