| 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 "remoting/client/plugin/pepper_packet_socket_factory.h" | 5 #include "remoting/client/plugin/pepper_packet_socket_factory.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "net/base/io_buffer.h" | 9 #include "net/base/io_buffer.h" |
| 10 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
| 11 #include "ppapi/cpp/net_address.h" | 11 #include "ppapi/cpp/net_address.h" |
| 12 #include "ppapi/cpp/udp_socket.h" | 12 #include "ppapi/cpp/udp_socket.h" |
| 13 #include "ppapi/utility/completion_callback_factory.h" | 13 #include "ppapi/utility/completion_callback_factory.h" |
| 14 #include "remoting/client/plugin/pepper_util.h" | 14 #include "remoting/client/plugin/pepper_util.h" |
| 15 #include "remoting/jingle_glue/socket_util.h" | 15 #include "remoting/protocol/socket_util.h" |
| 16 #include "third_party/libjingle/source/talk/base/asyncpacketsocket.h" | 16 #include "third_party/libjingle/source/talk/base/asyncpacketsocket.h" |
| 17 | 17 |
| 18 namespace remoting { | 18 namespace remoting { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 // Size of the buffer to allocate for RecvFrom(). | 22 // Size of the buffer to allocate for RecvFrom(). |
| 23 const int kReceiveBufferSize = 65536; | 23 const int kReceiveBufferSize = 65536; |
| 24 | 24 |
| 25 // Maximum amount of data in the send buffers. This is necessary to | 25 // Maximum amount of data in the send buffers. This is necessary to |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 return NULL; | 435 return NULL; |
| 436 } | 436 } |
| 437 | 437 |
| 438 talk_base::AsyncResolverInterface* | 438 talk_base::AsyncResolverInterface* |
| 439 PepperPacketSocketFactory::CreateAsyncResolver() { | 439 PepperPacketSocketFactory::CreateAsyncResolver() { |
| 440 NOTREACHED(); | 440 NOTREACHED(); |
| 441 return NULL; | 441 return NULL; |
| 442 } | 442 } |
| 443 | 443 |
| 444 } // namespace remoting | 444 } // namespace remoting |
| OLD | NEW |