summaryrefslogtreecommitdiffstats
path: root/content/common/file_utilities_messages.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-13 20:35:48 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-13 20:35:48 +0000
commitafc848fc2285b6b7e5133d836086812981277475 (patch)
treeaa36ce30b66b6a54865f1e16499689fe45b8f124 /content/common/file_utilities_messages.h
parentc640dd492bbd263e7440c802d63f78a025273110 (diff)
downloadchromium_src-afc848fc2285b6b7e5133d836086812981277475.zip
chromium_src-afc848fc2285b6b7e5133d836086812981277475.tar.gz
chromium_src-afc848fc2285b6b7e5133d836086812981277475.tar.bz2
Move some message files and hi_res_timer_manager to content, in preparation for moving worker code.
TBR=avi Review URL: http://codereview.chromium.org/6685027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77970 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/file_utilities_messages.h')
-rw-r--r--content/common/file_utilities_messages.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/content/common/file_utilities_messages.h b/content/common/file_utilities_messages.h
new file mode 100644
index 0000000..f19325f
--- /dev/null
+++ b/content/common/file_utilities_messages.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Multiply-included message file, so no include guard.
+
+#include "base/time.h"
+#include "content/common/common_param_traits.h"
+#include "ipc/ipc_message_macros.h"
+#include "ipc/ipc_param_traits.h"
+#include "ipc/ipc_platform_file.h"
+
+#define IPC_MESSAGE_START FileUtilitiesMsgStart
+
+// File utilities messages sent from the renderer to the browser.
+
+// Get file size in bytes. Set result to -1 if failed to get the file size.
+IPC_SYNC_MESSAGE_CONTROL1_1(FileUtilitiesMsg_GetFileSize,
+ FilePath /* path */,
+ int64 /* result */)
+
+// Get file modification time in seconds. Set result to 0 if failed to get the
+// file modification time.
+IPC_SYNC_MESSAGE_CONTROL1_1(FileUtilitiesMsg_GetFileModificationTime,
+ FilePath /* path */,
+ base::Time /* result */)
+
+// Open the file.
+IPC_SYNC_MESSAGE_CONTROL2_1(FileUtilitiesMsg_OpenFile,
+ FilePath /* path */,
+ int /* mode */,
+ IPC::PlatformFileForTransit /* result */)
+