Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: chrome/browser/local_discovery/service_discovery_client_mdns.cc

Issue 2508593002: net: move udp directory into socket (Closed)
Patch Set: revert sys/socket.h change Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_macros.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/socket/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 {
28 28
29 using content::BrowserThread; 29 using content::BrowserThread;
30 30
31 // Base class for objects returned by ServiceDiscoveryClient implementation. 31 // Base class for objects returned by ServiceDiscoveryClient implementation.
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 OnBeforeMdnsDestroy(); 447 OnBeforeMdnsDestroy();
448 // After calling |Proxy::OnMdnsDestroy| all references to client_ and mdns_ 448 // After calling |Proxy::OnMdnsDestroy| all references to client_ and mdns_
449 // should be destroyed. 449 // should be destroyed.
450 if (client_) 450 if (client_)
451 mdns_runner_->DeleteSoon(FROM_HERE, client_.release()); 451 mdns_runner_->DeleteSoon(FROM_HERE, client_.release());
452 if (mdns_) 452 if (mdns_)
453 mdns_runner_->DeleteSoon(FROM_HERE, mdns_.release()); 453 mdns_runner_->DeleteSoon(FROM_HERE, mdns_.release());
454 } 454 }
455 455
456 } // namespace local_discovery 456 } // namespace local_discovery
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/dial/dial_service.h ('k') | chrome/browser/printing/cloud_print/privet_traffic_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698