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

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

Issue 6388004: Move non-file-system Pepper IPC messages to chrome/common/pepper_messages.*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/renderer
Patch Set: Fix size_t-size-correctness. Created 9 years, 11 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
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/pepper_messages.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/pepper_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698