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_IMPL_H_ | 5 #ifndef NET_DNS_MDNS_CLIENT_IMPL_H_ |
6 #define NET_DNS_MDNS_CLIENT_IMPL_H_ | 6 #define NET_DNS_MDNS_CLIENT_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 19 matching lines...) Expand all Loading... |
30 namespace base { | 30 namespace base { |
31 class Clock; | 31 class Clock; |
32 class Timer; | 32 class Timer; |
33 } // namespace base | 33 } // namespace base |
34 | 34 |
35 namespace net { | 35 namespace net { |
36 | 36 |
37 class MDnsSocketFactoryImpl : public MDnsSocketFactory { | 37 class MDnsSocketFactoryImpl : public MDnsSocketFactory { |
38 public: | 38 public: |
39 MDnsSocketFactoryImpl() {} | 39 MDnsSocketFactoryImpl() {} |
40 ~MDnsSocketFactoryImpl() override{}; | 40 ~MDnsSocketFactoryImpl() override {} |
41 | 41 |
42 void CreateSockets( | 42 void CreateSockets( |
43 std::vector<std::unique_ptr<DatagramServerSocket>>* sockets) override; | 43 std::vector<std::unique_ptr<DatagramServerSocket>>* sockets) override; |
44 | 44 |
45 private: | 45 private: |
46 DISALLOW_COPY_AND_ASSIGN(MDnsSocketFactoryImpl); | 46 DISALLOW_COPY_AND_ASSIGN(MDnsSocketFactoryImpl); |
47 }; | 47 }; |
48 | 48 |
49 // A connection to the network for multicast DNS clients. It reads data into | 49 // A connection to the network for multicast DNS clients. It reads data into |
50 // DnsResponse objects and alerts the delegate that a packet has been received. | 50 // DnsResponse objects and alerts the delegate that a packet has been received. |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 MDnsClientImpl* client_; | 326 MDnsClientImpl* client_; |
327 | 327 |
328 bool started_; | 328 bool started_; |
329 int flags_; | 329 int flags_; |
330 | 330 |
331 DISALLOW_COPY_AND_ASSIGN(MDnsTransactionImpl); | 331 DISALLOW_COPY_AND_ASSIGN(MDnsTransactionImpl); |
332 }; | 332 }; |
333 | 333 |
334 } // namespace net | 334 } // namespace net |
335 #endif // NET_DNS_MDNS_CLIENT_IMPL_H_ | 335 #endif // NET_DNS_MDNS_CLIENT_IMPL_H_ |
OLD | NEW |