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_macros.h" |
16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
17 #include "base/threading/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 } |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 OnBeforeMdnsDestroy(); | 445 OnBeforeMdnsDestroy(); |
446 // After calling |Proxy::OnMdnsDestroy| all references to client_ and mdns_ | 446 // After calling |Proxy::OnMdnsDestroy| all references to client_ and mdns_ |
447 // should be destroyed. | 447 // should be destroyed. |
448 if (client_) | 448 if (client_) |
449 mdns_runner_->DeleteSoon(FROM_HERE, client_.release()); | 449 mdns_runner_->DeleteSoon(FROM_HERE, client_.release()); |
450 if (mdns_) | 450 if (mdns_) |
451 mdns_runner_->DeleteSoon(FROM_HERE, mdns_.release()); | 451 mdns_runner_->DeleteSoon(FROM_HERE, mdns_.release()); |
452 } | 452 } |
453 | 453 |
454 } // namespace local_discovery | 454 } // namespace local_discovery |
OLD | NEW |