Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Side by Side Diff: chrome/common/pepper_messages.h

Issue 6646005: Creates the ipclist utility that chrome security team has wanted to dump... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_PEPPER_MESSAGES_H_ 5 // Multiply-included file, no traditional header guard.
6 #define CHROME_COMMON_PEPPER_MESSAGES_H_ 6
7 #pragma once
8 7
9 #include "chrome/common/common_param_traits.h" 8 #include "chrome/common/common_param_traits.h"
10 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
11 #include "ipc/ipc_param_traits.h" 10 #include "ipc/ipc_param_traits.h"
12 #include "ipc/ipc_platform_file.h" 11 #include "ipc/ipc_platform_file.h"
12 #include "ppapi/c/private/ppb_flash_net_connector.h"
13 13
14 #define IPC_MESSAGE_START PepperMsgStart 14 #define IPC_MESSAGE_START PepperMsgStart
15 15
16 // Singly-included section not yet converted.
17 #ifndef CHROME_COMMON_PEPPER_MESSAGES_H_
18 #define CHROME_COMMON_PEPPER_MESSAGES_H_
19
16 struct PP_Flash_NetAddress; 20 struct PP_Flash_NetAddress;
17 21
18 namespace IPC { 22 namespace IPC {
19 23
20 template <> 24 template <>
21 struct ParamTraits<PP_Flash_NetAddress> { 25 struct ParamTraits<PP_Flash_NetAddress> {
22 typedef PP_Flash_NetAddress param_type; 26 typedef PP_Flash_NetAddress param_type;
23 static void Write(Message* m, const param_type& p); 27 static void Write(Message* m, const param_type& p);
24 static bool Read(const Message* m, void** iter, param_type* p); 28 static bool Read(const Message* m, void** iter, param_type* p);
25 static void Log(const param_type& p, std::string* l); 29 static void Log(const param_type& p, std::string* l);
26 }; 30 };
27 31
28 } // namespace IPC 32 } // namespace IPC
29 33
34 #endif // CHROME_COMMON_PEPPER_MESSAGES_H_
35
30 // Pepper (non-file-system) messages sent from the browser to the renderer. 36 // Pepper (non-file-system) messages sent from the browser to the renderer.
31 37
32 // The response to PepperMsg_ConnectTcp(Address). 38 // The response to PepperMsg_ConnectTcp(Address).
33 IPC_MESSAGE_ROUTED4(PepperMsg_ConnectTcpACK, 39 IPC_MESSAGE_ROUTED4(PepperMsg_ConnectTcpACK,
34 int /* request_id */, 40 int /* request_id */,
35 IPC::PlatformFileForTransit /* socket */, 41 IPC::PlatformFileForTransit /* socket */,
36 PP_Flash_NetAddress /* local_addr */, 42 PP_Flash_NetAddress /* local_addr */,
37 PP_Flash_NetAddress /* remote_addr */) 43 PP_Flash_NetAddress /* remote_addr */)
38 44
39 // Pepper (non-file-system) messages sent from the renderer to the browser. 45 // Pepper (non-file-system) messages sent from the renderer to the browser.
40 46
41 IPC_MESSAGE_CONTROL4(PepperMsg_ConnectTcp, 47 IPC_MESSAGE_CONTROL4(PepperMsg_ConnectTcp,
42 int /* routing_id */, 48 int /* routing_id */,
43 int /* request_id */, 49 int /* request_id */,
44 std::string /* host */, 50 std::string /* host */,
45 uint16 /* port */) 51 uint16 /* port */)
46 52
47 IPC_MESSAGE_CONTROL3(PepperMsg_ConnectTcpAddress, 53 IPC_MESSAGE_CONTROL3(PepperMsg_ConnectTcpAddress,
48 int /* routing_id */, 54 int /* routing_id */,
49 int /* request_id */, 55 int /* request_id */,
50 PP_Flash_NetAddress /* addr */) 56 PP_Flash_NetAddress /* addr */)
51 57
52 #endif // CHROME_COMMON_PEPPER_MESSAGES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698