OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 NET_DNS_MDNS_CLIENT_H_ | 5 #ifndef NET_DNS_MDNS_CLIENT_H_ |
6 #define NET_DNS_MDNS_CLIENT_H_ | 6 #define NET_DNS_MDNS_CLIENT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "net/base/ip_endpoint.h" | 15 #include "net/base/ip_endpoint.h" |
| 16 #include "net/base/net_export.h" |
16 #include "net/dns/dns_query.h" | 17 #include "net/dns/dns_query.h" |
17 #include "net/dns/dns_response.h" | 18 #include "net/dns/dns_response.h" |
18 #include "net/dns/record_parsed.h" | 19 #include "net/dns/record_parsed.h" |
19 | 20 |
20 namespace net { | 21 namespace net { |
21 | 22 |
22 class DatagramServerSocket; | 23 class DatagramServerSocket; |
23 class RecordParsed; | 24 class RecordParsed; |
24 | 25 |
25 // Represents a one-time record lookup. A transaction takes one | 26 // Represents a one-time record lookup. A transaction takes one |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 // Create sockets, binds socket to MDns endpoint, and sets multicast interface | 184 // Create sockets, binds socket to MDns endpoint, and sets multicast interface |
184 // and joins multicast group on for |interface_index|. | 185 // and joins multicast group on for |interface_index|. |
185 // Returns NULL if failed. | 186 // Returns NULL if failed. |
186 NET_EXPORT std::unique_ptr<DatagramServerSocket> CreateAndBindMDnsSocket( | 187 NET_EXPORT std::unique_ptr<DatagramServerSocket> CreateAndBindMDnsSocket( |
187 AddressFamily address_family, | 188 AddressFamily address_family, |
188 uint32_t interface_index); | 189 uint32_t interface_index); |
189 | 190 |
190 } // namespace net | 191 } // namespace net |
191 | 192 |
192 #endif // NET_DNS_MDNS_CLIENT_H_ | 193 #endif // NET_DNS_MDNS_CLIENT_H_ |
OLD | NEW |