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 #ifndef CHROME_COMMON_PEPPER_MESSAGES_H_ |
| 6 #define CHROME_COMMON_PEPPER_MESSAGES_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "chrome/common/common_param_traits.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 PepperMsgStart |
| 15 |
| 16 struct PP_Flash_NetAddress; |
| 17 |
| 18 namespace IPC { |
| 19 |
| 20 template <> |
| 21 struct ParamTraits<PP_Flash_NetAddress> { |
| 22 typedef PP_Flash_NetAddress param_type; |
| 23 static void Write(Message* m, const param_type& p); |
| 24 static bool Read(const Message* m, void** iter, param_type* p); |
| 25 static void Log(const param_type& p, std::string* l); |
| 26 }; |
| 27 |
| 28 } // namespace IPC |
| 29 |
| 30 // Pepper (non-file-system) messages sent from the browser to the renderer. |
| 31 |
| 32 // The response to PepperMsg_ConnectTcp(Address). |
| 33 IPC_MESSAGE_ROUTED4(PepperMsg_ConnectTcpACK, |
| 34 int /* request_id */, |
| 35 IPC::PlatformFileForTransit /* socket */, |
| 36 PP_Flash_NetAddress /* local_addr */, |
| 37 PP_Flash_NetAddress /* remote_addr */) |
| 38 |
| 39 // Pepper (non-file-system) messages sent from the renderer to the browser. |
| 40 |
| 41 IPC_MESSAGE_CONTROL4(PepperMsg_ConnectTcp, |
| 42 int /* routing_id */, |
| 43 int /* request_id */, |
| 44 std::string /* host */, |
| 45 uint16 /* port */) |
| 46 |
| 47 IPC_MESSAGE_CONTROL3(PepperMsg_ConnectTcpAddress, |
| 48 int /* routing_id */, |
| 49 int /* request_id */, |
| 50 PP_Flash_NetAddress /* addr */) |
| 51 |
| 52 #endif // CHROME_COMMON_PEPPER_MESSAGES_H_ |
OLD | NEW |