| OLD | NEW | 
|   1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |   1 // Copyright (c) 2012 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 // IPC messages for the P2P Transport API. |   5 // IPC messages for the P2P Transport API. | 
|   6 // Multiply-included message file, hence no include guard. |   6 // Multiply-included message file, hence no include guard. | 
|   7  |   7  | 
|   8 #include "base/time/time.h" |   8 #include "base/time/time.h" | 
|   9 #include "content/common/content_export.h" |   9 #include "content/common/content_export.h" | 
|  10 #include "content/public/common/p2p_socket_type.h" |  10 #include "content/public/common/p2p_socket_type.h" | 
|  11 #include "ipc/ipc_message_macros.h" |  11 #include "ipc/ipc_message_macros.h" | 
|  12 #include "net/base/ip_endpoint.h" |  12 #include "net/base/ip_endpoint.h" | 
|  13 #include "net/base/net_util.h" |  13 #include "net/base/net_util.h" | 
|  14  |  14  | 
|  15 #undef IPC_MESSAGE_EXPORT |  15 #undef IPC_MESSAGE_EXPORT | 
|  16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |  16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 
|  17 #define IPC_MESSAGE_START P2PMsgStart |  17 #define IPC_MESSAGE_START P2PMsgStart | 
|  18  |  18  | 
|  19 IPC_ENUM_TRAITS(content::P2PSocketType) |  19 IPC_ENUM_TRAITS_MAX_VALUE(content::P2PSocketType, | 
|  20 IPC_ENUM_TRAITS(net::DiffServCodePoint) |  20                           content::P2P_SOCKET_TYPE_LAST) | 
|  21 IPC_ENUM_TRAITS(content::P2PSocketOption) |  21 IPC_ENUM_TRAITS_MAX_VALUE(content::P2PSocketOption, | 
 |  22                           content::P2P_SOCKET_OPT_MAX - 1) | 
 |  23 IPC_ENUM_TRAITS_MIN_MAX_VALUE(net::DiffServCodePoint, | 
 |  24                               net::DSCP_FIRST, | 
 |  25                               net::DSCP_LAST) | 
|  22  |  26  | 
|  23 IPC_STRUCT_TRAITS_BEGIN(net::NetworkInterface) |  27 IPC_STRUCT_TRAITS_BEGIN(net::NetworkInterface) | 
|  24   IPC_STRUCT_TRAITS_MEMBER(name) |  28   IPC_STRUCT_TRAITS_MEMBER(name) | 
|  25   IPC_STRUCT_TRAITS_MEMBER(address) |  29   IPC_STRUCT_TRAITS_MEMBER(address) | 
|  26 IPC_STRUCT_TRAITS_END() |  30 IPC_STRUCT_TRAITS_END() | 
|  27  |  31  | 
|  28 // P2P Socket messages sent from the browser to the renderer. |  32 // P2P Socket messages sent from the browser to the renderer. | 
|  29  |  33  | 
|  30 IPC_MESSAGE_CONTROL1(P2PMsg_NetworkListChanged, |  34 IPC_MESSAGE_CONTROL1(P2PMsg_NetworkListChanged, | 
|  31                      net::NetworkInterfaceList /* networks */) |  35                      net::NetworkInterfaceList /* networks */) | 
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  84                      net::DiffServCodePoint /* dscp */, |  88                      net::DiffServCodePoint /* dscp */, | 
|  85                      uint64 /* packet_id */) |  89                      uint64 /* packet_id */) | 
|  86  |  90  | 
|  87 IPC_MESSAGE_CONTROL1(P2PHostMsg_DestroySocket, |  91 IPC_MESSAGE_CONTROL1(P2PHostMsg_DestroySocket, | 
|  88                      int /* socket_id */) |  92                      int /* socket_id */) | 
|  89  |  93  | 
|  90 IPC_MESSAGE_CONTROL3(P2PHostMsg_SetOption, |  94 IPC_MESSAGE_CONTROL3(P2PHostMsg_SetOption, | 
|  91                      int /* socket_id */, |  95                      int /* socket_id */, | 
|  92                      content::P2PSocketOption /* socket option type */, |  96                      content::P2PSocketOption /* socket option type */, | 
|  93                      int /* value */) |  97                      int /* value */) | 
| OLD | NEW |