OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/protocol/chromium_socket_factory.h" | 5 #include "remoting/protocol/chromium_socket_factory.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "jingle/glue/utils.h" | 14 #include "jingle/glue/utils.h" |
15 #include "net/base/io_buffer.h" | 15 #include "net/base/io_buffer.h" |
16 #include "net/base/ip_endpoint.h" | 16 #include "net/base/ip_endpoint.h" |
17 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
18 #include "net/udp/udp_server_socket.h" | 18 #include "net/udp/udp_server_socket.h" |
19 #include "remoting/protocol/socket_util.h" | 19 #include "remoting/protocol/socket_util.h" |
20 #include "third_party/libjingle/source/talk/media/base/rtputils.h" | |
21 #include "third_party/webrtc/base/asyncpacketsocket.h" | 20 #include "third_party/webrtc/base/asyncpacketsocket.h" |
22 #include "third_party/webrtc/base/nethelpers.h" | 21 #include "third_party/webrtc/base/nethelpers.h" |
| 22 #include "third_party/webrtc/media/base/rtputils.h" |
23 | 23 |
24 namespace remoting { | 24 namespace remoting { |
25 namespace protocol { | 25 namespace protocol { |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 // Size of the buffer to allocate for RecvFrom(). | 29 // Size of the buffer to allocate for RecvFrom(). |
30 const int kReceiveBufferSize = 65536; | 30 const int kReceiveBufferSize = 65536; |
31 | 31 |
32 // Maximum amount of data in the send buffers. This is necessary to | 32 // Maximum amount of data in the send buffers. This is necessary to |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 return nullptr; | 403 return nullptr; |
404 } | 404 } |
405 | 405 |
406 rtc::AsyncResolverInterface* | 406 rtc::AsyncResolverInterface* |
407 ChromiumPacketSocketFactory::CreateAsyncResolver() { | 407 ChromiumPacketSocketFactory::CreateAsyncResolver() { |
408 return new rtc::AsyncResolver(); | 408 return new rtc::AsyncResolver(); |
409 } | 409 } |
410 | 410 |
411 } // namespace protocol | 411 } // namespace protocol |
412 } // namespace remoting | 412 } // namespace remoting |
OLD | NEW |