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 #include "chrome/browser/local_discovery/privet_traffic_detector.h" | 5 #include "chrome/browser/local_discovery/privet_traffic_detector.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/macros.h" |
8 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
9 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
10 #include "base/sys_byteorder.h" | 13 #include "base/sys_byteorder.h" |
11 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
12 #include "net/base/network_interfaces.h" | 15 #include "net/base/network_interfaces.h" |
13 #include "net/dns/dns_protocol.h" | 16 #include "net/dns/dns_protocol.h" |
14 #include "net/dns/dns_response.h" | 17 #include "net/dns/dns_response.h" |
15 #include "net/dns/mdns_client.h" | 18 #include "net/dns/mdns_client.h" |
16 #include "net/log/net_log.h" | 19 #include "net/log/net_log.h" |
17 #include "net/udp/datagram_server_socket.h" | 20 #include "net/udp/datagram_server_socket.h" |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 base::Unretained(this))); | 194 base::Unretained(this))); |
192 } while (rv > 0); | 195 } while (rv > 0); |
193 | 196 |
194 if (rv != net::ERR_IO_PENDING) | 197 if (rv != net::ERR_IO_PENDING) |
195 return rv; | 198 return rv; |
196 | 199 |
197 return net::OK; | 200 return net::OK; |
198 } | 201 } |
199 | 202 |
200 } // namespace local_discovery | 203 } // namespace local_discovery |
OLD | NEW |