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_RENDERER_P2P_HOST_ADDRESS_REQUEST_H_ | 5 #ifndef CONTENT_RENDERER_P2P_HOST_ADDRESS_REQUEST_H_ |
6 #define CONTENT_RENDERER_P2P_HOST_ADDRESS_REQUEST_H_ | 6 #define CONTENT_RENDERER_P2P_HOST_ADDRESS_REQUEST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
16 #include "net/base/ip_address.h" | 16 #include "net/base/ip_address.h" |
17 #include "third_party/webrtc/base/asyncresolverinterface.h" | 17 #include "third_party/webrtc/base/asyncresolverinterface.h" |
18 | 18 |
19 namespace base { | 19 namespace base { |
20 class MessageLoop; | |
21 class SingleThreadTaskRunner; | 20 class SingleThreadTaskRunner; |
22 } // namespace base | 21 } // namespace base |
23 | 22 |
24 namespace content { | 23 namespace content { |
25 | 24 |
26 class P2PSocketDispatcher; | 25 class P2PSocketDispatcher; |
27 | 26 |
28 // P2PAsyncAddressResolver performs DNS hostname resolution. It's used | 27 // P2PAsyncAddressResolver performs DNS hostname resolution. It's used |
29 // to resolve addresses of STUN and relay servers. | 28 // to resolve addresses of STUN and relay servers. |
30 class P2PAsyncAddressResolver | 29 class P2PAsyncAddressResolver |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 bool registered_; | 69 bool registered_; |
71 std::vector<rtc::IPAddress> addresses_; | 70 std::vector<rtc::IPAddress> addresses_; |
72 DoneCallback done_callback_; | 71 DoneCallback done_callback_; |
73 | 72 |
74 DISALLOW_COPY_AND_ASSIGN(P2PAsyncAddressResolver); | 73 DISALLOW_COPY_AND_ASSIGN(P2PAsyncAddressResolver); |
75 }; | 74 }; |
76 | 75 |
77 } // namespace content | 76 } // namespace content |
78 | 77 |
79 #endif // CONTENT_RENDERER_P2P_HOST_ADDRESS_REQUEST_H_ | 78 #endif // CONTENT_RENDERER_P2P_HOST_ADDRESS_REQUEST_H_ |
OLD | NEW |