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

Side by Side Diff: content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.h

Issue 704133005: Pepper: Add support for multicast in PPB_UDPSocket API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase, initial unit tests Created 6 years, 1 month 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_UDP_SOCKET_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_UDP_SOCKET_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_UDP_SOCKET_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_UDP_SOCKET_MESSAGE_FILTER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 int32_t bytes_written); 98 int32_t bytes_written);
99 99
100 void SendBindError(const ppapi::host::ReplyMessageContext& context, 100 void SendBindError(const ppapi::host::ReplyMessageContext& context,
101 int32_t result); 101 int32_t result);
102 void SendRecvFromError(int32_t result); 102 void SendRecvFromError(int32_t result);
103 void SendSendToError(const ppapi::host::ReplyMessageContext& context, 103 void SendSendToError(const ppapi::host::ReplyMessageContext& context,
104 int32_t result); 104 int32_t result);
105 105
106 bool allow_address_reuse_; 106 bool allow_address_reuse_;
107 bool allow_broadcast_; 107 bool allow_broadcast_;
108 bool multicast_loop_;
109 uint32 multicast_interface_;
110 int multicast_time_to_live_;
108 111
109 scoped_ptr<net::UDPServerSocket> socket_; 112 scoped_ptr<net::UDPServerSocket> socket_;
110 bool closed_; 113 bool closed_;
111 114
112 scoped_refptr<net::IOBuffer> recvfrom_buffer_; 115 scoped_refptr<net::IOBuffer> recvfrom_buffer_;
113 scoped_refptr<net::IOBufferWithSize> sendto_buffer_; 116 scoped_refptr<net::IOBufferWithSize> sendto_buffer_;
114 117
115 net::IPEndPoint recvfrom_address_; 118 net::IPEndPoint recvfrom_address_;
116 119
117 size_t remaining_recv_slots_; 120 size_t remaining_recv_slots_;
118 121
119 bool external_plugin_; 122 bool external_plugin_;
120 bool private_api_; 123 bool private_api_;
121 124
122 int render_process_id_; 125 int render_process_id_;
123 int render_frame_id_; 126 int render_frame_id_;
124 127
125 DISALLOW_COPY_AND_ASSIGN(PepperUDPSocketMessageFilter); 128 DISALLOW_COPY_AND_ASSIGN(PepperUDPSocketMessageFilter);
126 }; 129 };
127 130
128 } // namespace content 131 } // namespace content
129 132
130 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_UDP_SOCKET_MESSAGE_FILTER _H_ 133 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_UDP_SOCKET_MESSAGE_FILTER _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698