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 #include "content/browser/renderer_host/pepper/pepper_udp_socket.h" | 5 #include "content/browser/renderer_host/pepper/pepper_udp_socket.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" | 11 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" |
12 #include "content/public/browser/browser_thread.h" | |
13 #include "net/base/io_buffer.h" | 12 #include "net/base/io_buffer.h" |
14 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
15 #include "net/udp/udp_server_socket.h" | 14 #include "net/udp/udp_server_socket.h" |
16 #include "ppapi/proxy/ppapi_messages.h" | 15 #include "ppapi/proxy/ppapi_messages.h" |
17 #include "ppapi/shared_impl/private/net_address_private_impl.h" | 16 #include "ppapi/shared_impl/private/net_address_private_impl.h" |
18 #include "ppapi/shared_impl/private/udp_socket_private_impl.h" | 17 #include "ppapi/shared_impl/private/udp_socket_private_impl.h" |
19 | 18 |
20 using ppapi::NetAddressPrivateImpl; | 19 using ppapi::NetAddressPrivateImpl; |
21 | 20 |
22 namespace content { | 21 namespace content { |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 SendSendToACKError(); | 185 SendSendToACKError(); |
187 } else { | 186 } else { |
188 manager_->Send(new PpapiMsg_PPBUDPSocket_SendToACK( | 187 manager_->Send(new PpapiMsg_PPBUDPSocket_SendToACK( |
189 routing_id_, plugin_dispatcher_id_, socket_id_, true, result)); | 188 routing_id_, plugin_dispatcher_id_, socket_id_, true, result)); |
190 } | 189 } |
191 | 190 |
192 sendto_buffer_ = NULL; | 191 sendto_buffer_ = NULL; |
193 } | 192 } |
194 | 193 |
195 } // namespace content | 194 } // namespace content |
OLD | NEW |