OLD | NEW |
(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 // Message definition file, included multiple times, hence no include guard. |
| 6 |
| 7 #include <vector> |
| 8 |
| 9 #include "ipc/ipc_message_macros.h" |
| 10 #include "googleurl/src/gurl.h" |
| 11 |
| 12 #define IPC_MESSAGE_START IntroducerMsgStart |
| 13 |
| 14 IPC_STRUCT_BEGIN(IntroducerHostMsg_Offer_Params) |
| 15 // Service id. |
| 16 IPC_STRUCT_MEMBER(std::string, id) |
| 17 |
| 18 // Human meaningful name |
| 19 IPC_STRUCT_MEMBER(string16, label) |
| 20 |
| 21 // Supported types. |
| 22 IPC_STRUCT_MEMBER(std::vector<std::string>, supports) |
| 23 |
| 24 // window presentation |
| 25 IPC_STRUCT_MEMBER(GURL, window) |
| 26 |
| 27 // frame implementation |
| 28 IPC_STRUCT_MEMBER(GURL, frame) |
| 29 IPC_STRUCT_END() |
| 30 |
| 31 // Messages sent from the browser to the renderer. |
| 32 |
| 33 // response to an install request |
| 34 IPC_MESSAGE_ROUTED2(IntroducerMsg_InstallReturn, |
| 35 int /* corresponding request id */, |
| 36 bool /* answer */) |
| 37 |
| 38 // intermediate response to a connect request |
| 39 IPC_MESSAGE_ROUTED2(IntroducerMsg_ConnectNavigation, |
| 40 int /* corresponding request id */, |
| 41 GURL /* URL to navigate frame to */) |
| 42 |
| 43 // response to a connect request |
| 44 IPC_MESSAGE_ROUTED2(IntroducerMsg_ConnectReturn, |
| 45 int /* corresponding request id */, |
| 46 std::vector<std::string> /* agreed service types */) |
| 47 |
| 48 // response to an accept request |
| 49 IPC_MESSAGE_ROUTED3(IntroducerMsg_AcceptReturn, |
| 50 int /* corresponding request id */, |
| 51 std::string /* customer origin */, |
| 52 std::vector<std::string> /* wanted service types */) |
| 53 |
| 54 // Messages sent from the renderer to the browser. |
| 55 |
| 56 // Updates an Introducer registration |
| 57 IPC_MESSAGE_ROUTED5(IntroducerHostMsg_Install, |
| 58 int /* request id */, |
| 59 std::string /* registrant origin */, |
| 60 GURL /* icon */, |
| 61 string16 /* name */, |
| 62 GURL /* home */) |
| 63 |
| 64 // Deletes an Introducer registration |
| 65 IPC_MESSAGE_ROUTED2(IntroducerHostMsg_Uninstall, |
| 66 int /* request id */, |
| 67 std::string /* registrant origin */) |
| 68 |
| 69 // Updates an Introducer service registration |
| 70 IPC_MESSAGE_ROUTED3(IntroducerHostMsg_Offer, |
| 71 int /* request id */, |
| 72 std::string /* registrant origin */, |
| 73 IntroducerHostMsg_Offer_Params) |
| 74 |
| 75 // Deletes an Introducer service registration |
| 76 IPC_MESSAGE_ROUTED3(IntroducerHostMsg_Rescind, |
| 77 int /* request id */, |
| 78 std::string /* registrant origin */, |
| 79 std::string /* service id */) |
| 80 |
| 81 // Notification that a page wants to connect to an Introducer service. |
| 82 IPC_MESSAGE_ROUTED5(IntroducerHostMsg_Connect, |
| 83 int /* request id */, |
| 84 std::string /* customer origin */, |
| 85 int64 /* service frame id or zero if not supported */, |
| 86 std::vector<std::string> /* wanted */, |
| 87 int /* port id */) |
| 88 |
| 89 // Notification that a page wants to accept an Introducer connection. |
| 90 IPC_MESSAGE_ROUTED4(IntroducerHostMsg_Accept, |
| 91 int /* request id */, |
| 92 int64 /* requesting frame id or zero if top */, |
| 93 std::string /* registrant origin */, |
| 94 int /* port id */) |
OLD | NEW |