diff options
Diffstat (limited to 'chrome/common/mime_registry_messages.h')
-rw-r--r-- | chrome/common/mime_registry_messages.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/chrome/common/mime_registry_messages.h b/chrome/common/mime_registry_messages.h new file mode 100644 index 0000000..636009f --- /dev/null +++ b/chrome/common/mime_registry_messages.h @@ -0,0 +1,28 @@ +// Copyright (c) 2010 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. + +#ifndef CHROME_COMMON_MIME_REGISTRY_MESSAGES_H_ +#define CHROME_COMMON_MIME_REGISTRY_MESSAGES_H_ +#pragma once + +#include "base/file_path.h" +#include "ipc/ipc_message_macros.h" +#include "ipc/ipc_param_traits.h" + +#define IPC_MESSAGE_START MimeRegistryMsgStart + +// Mime registry messages sent from the renderer to the browser. + +// Sent to query MIME information. +IPC_SYNC_MESSAGE_CONTROL1_1(MimeRegistryMsg_GetMimeTypeFromExtension, + FilePath::StringType /* extension */, + std::string /* mime_type */) +IPC_SYNC_MESSAGE_CONTROL1_1(MimeRegistryMsg_GetMimeTypeFromFile, + FilePath /* file_path */, + std::string /* mime_type */) +IPC_SYNC_MESSAGE_CONTROL1_1(MimeRegistryMsg_GetPreferredExtensionForMimeType, + std::string /* mime_type */, + FilePath::StringType /* extension */) + +#endif // CHROME_COMMON_MIME_REGISTRY_MESSAGES_H_ |