| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/service_discovery_client_mdns.h" | 5 #include "chrome/browser/local_discovery/service_discovery_client_mdns.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
| 16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
| 17 #include "base/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
| 18 #include "chrome/browser/local_discovery/service_discovery_client_impl.h" | 18 #include "chrome/browser/local_discovery/service_discovery_client_impl.h" |
| 19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
| 20 #include "net/dns/mdns_client.h" | 20 #include "net/dns/mdns_client.h" |
| 21 #include "net/udp/datagram_server_socket.h" | 21 #include "net/udp/datagram_server_socket.h" |
| 22 | 22 |
| 23 namespace net { | 23 namespace net { |
| 24 class IPAddress; | 24 class IPAddress; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace local_discovery { | 27 namespace local_discovery { |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 OnBeforeMdnsDestroy(); | 446 OnBeforeMdnsDestroy(); |
| 447 // After calling |Proxy::OnMdnsDestroy| all references to client_ and mdns_ | 447 // After calling |Proxy::OnMdnsDestroy| all references to client_ and mdns_ |
| 448 // should be destroyed. | 448 // should be destroyed. |
| 449 if (client_) | 449 if (client_) |
| 450 mdns_runner_->DeleteSoon(FROM_HERE, client_.release()); | 450 mdns_runner_->DeleteSoon(FROM_HERE, client_.release()); |
| 451 if (mdns_) | 451 if (mdns_) |
| 452 mdns_runner_->DeleteSoon(FROM_HERE, mdns_.release()); | 452 mdns_runner_->DeleteSoon(FROM_HERE, mdns_.release()); |
| 453 } | 453 } |
| 454 | 454 |
| 455 } // namespace local_discovery | 455 } // namespace local_discovery |
| OLD | NEW |