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