| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_P2P_SOCKET_HOST_UDP_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_UDP_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_UDP_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_UDP_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <deque> | 11 #include <deque> |
| 12 #include <memory> | 12 #include <memory> |
| 13 #include <set> | 13 #include <set> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/callback.h" | 16 #include "base/callback.h" |
| 17 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
| 18 #include "base/macros.h" | 18 #include "base/macros.h" |
| 19 #include "base/memory/ref_counted.h" | 19 #include "base/memory/ref_counted.h" |
| 20 #include "base/message_loop/message_loop.h" | 20 #include "base/message_loop/message_loop.h" |
| 21 #include "content/browser/renderer_host/p2p/socket_host.h" | 21 #include "content/browser/renderer_host/p2p/socket_host.h" |
| 22 #include "content/common/content_export.h" | 22 #include "content/common/content_export.h" |
| 23 #include "content/common/p2p_socket_type.h" | 23 #include "content/common/p2p_socket_type.h" |
| 24 #include "net/base/ip_endpoint.h" | 24 #include "net/base/ip_endpoint.h" |
| 25 #include "net/udp/diff_serv_code_point.h" | 25 #include "net/socket/diff_serv_code_point.h" |
| 26 #include "net/udp/udp_server_socket.h" | 26 #include "net/socket/udp_server_socket.h" |
| 27 #include "third_party/webrtc/base/asyncpacketsocket.h" | 27 #include "third_party/webrtc/base/asyncpacketsocket.h" |
| 28 | 28 |
| 29 namespace content { | 29 namespace content { |
| 30 | 30 |
| 31 class P2PMessageThrottler; | 31 class P2PMessageThrottler; |
| 32 | 32 |
| 33 class CONTENT_EXPORT P2PSocketHostUdp : public P2PSocketHost { | 33 class CONTENT_EXPORT P2PSocketHostUdp : public P2PSocketHost { |
| 34 public: | 34 public: |
| 35 typedef base::Callback<std::unique_ptr<net::DatagramServerSocket>()> | 35 typedef base::Callback<std::unique_ptr<net::DatagramServerSocket>()> |
| 36 DatagramServerSocketFactory; | 36 DatagramServerSocketFactory; |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 // Callback object that returns a new socket when invoked. | 114 // Callback object that returns a new socket when invoked. |
| 115 DatagramServerSocketFactory socket_factory_; | 115 DatagramServerSocketFactory socket_factory_; |
| 116 | 116 |
| 117 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostUdp); | 117 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostUdp); |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 } // namespace content | 120 } // namespace content |
| 121 | 121 |
| 122 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_UDP_H_ | 122 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_UDP_H_ |
| OLD | NEW |