diff options
author | gbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-16 18:33:47 +0000 |
---|---|---|
committer | gbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-16 18:33:47 +0000 |
commit | 1ef931342c36238ca8de166bcfbcfd694cdf4bdb (patch) | |
tree | 8091902aa1f88da6035b98ced904ca68d33276e3 /content/common/intents_messages.h | |
parent | 1078339c6d930e52d6aeca220ab36e990bdb3c35 (diff) | |
download | chromium_src-1ef931342c36238ca8de166bcfbcfd694cdf4bdb.zip chromium_src-1ef931342c36238ca8de166bcfbcfd694cdf4bdb.tar.gz chromium_src-1ef931342c36238ca8de166bcfbcfd694cdf4bdb.tar.bz2 |
Add messages/handlers for the invocation sequence. Copy from geolocation_dispatcher.
Get return path serialization working.
R=groby@chromium.org
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/7823002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101536 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/intents_messages.h')
-rw-r--r-- | content/common/intents_messages.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/content/common/intents_messages.h b/content/common/intents_messages.h new file mode 100644 index 0000000..25e7a7a --- /dev/null +++ b/content/common/intents_messages.h @@ -0,0 +1,48 @@ +// 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. + +// Message definition file, included multiple times, hence no include guard. + +#include "ipc/ipc_message_macros.h" +#include "ipc/ipc_message_utils.h" +#include "ipc/param_traits_macros.h" +#include "webkit/glue/web_intent_data.h" + +#define IPC_MESSAGE_START IntentsMsgStart + +IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebIntentData) + IPC_STRUCT_TRAITS_MEMBER(action) + IPC_STRUCT_TRAITS_MEMBER(type) + IPC_STRUCT_TRAITS_MEMBER(data) +IPC_STRUCT_TRAITS_END() + +// Define enums used in this file inside an include-guard. +#ifndef CONTENT_COMMON_INTENTS_MESSAGES_H_ +#define CONTENT_COMMON_INTENTS_MESSAGES_H_ + +// Constant values use to indicate what type of reply the caller is getting from +// the web intents service page. +struct IntentsMsg_WebIntentReply_Type { + public: + enum Value { + // Sent for a reply message (success). + Reply, + + // Sent for a failure message. + Failure, + }; +}; + +#endif // CONTENT_COMMON_INTENTS_MESSAGES_H_ + +IPC_ENUM_TRAITS(IntentsMsg_WebIntentReply_Type::Value) + +IPC_MESSAGE_ROUTED2(IntentsMsg_SetWebIntentData, + webkit_glue::WebIntentData, + int /* intent ID */) + +IPC_MESSAGE_ROUTED3(IntentsMsg_WebIntentReply, + IntentsMsg_WebIntentReply_Type::Value /* reply type */, + string16 /* payload data */, + int /* intent ID */) |