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 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_CLIENT_MDNS_H_ | 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_CLIENT_MDNS_H_ |
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_CLIENT_MDNS_H_ | 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_CLIENT_MDNS_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/cancelable_callback.h" | 11 #include "base/cancelable_callback.h" |
| 12 #include "base/macros.h" |
12 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
13 #include "chrome/browser/local_discovery/service_discovery_shared_client.h" | 14 #include "chrome/browser/local_discovery/service_discovery_shared_client.h" |
14 #include "chrome/common/local_discovery/service_discovery_client.h" | 15 #include "chrome/common/local_discovery/service_discovery_client.h" |
15 #include "net/base/network_change_notifier.h" | 16 #include "net/base/network_change_notifier.h" |
16 #include "net/dns/mdns_client.h" | 17 #include "net/dns/mdns_client.h" |
17 | 18 |
18 namespace local_discovery { | 19 namespace local_discovery { |
19 | 20 |
20 // Implementation of ServiceDiscoverySharedClient with front-end of UI thread | 21 // Implementation of ServiceDiscoverySharedClient with front-end of UI thread |
21 // and networking code on IO thread. | 22 // and networking code on IO thread. |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 bool need_dalay_mdns_tasks_; | 73 bool need_dalay_mdns_tasks_; |
73 | 74 |
74 base::WeakPtrFactory<ServiceDiscoveryClientMdns> weak_ptr_factory_; | 75 base::WeakPtrFactory<ServiceDiscoveryClientMdns> weak_ptr_factory_; |
75 | 76 |
76 DISALLOW_COPY_AND_ASSIGN(ServiceDiscoveryClientMdns); | 77 DISALLOW_COPY_AND_ASSIGN(ServiceDiscoveryClientMdns); |
77 }; | 78 }; |
78 | 79 |
79 } // namespace local_discovery | 80 } // namespace local_discovery |
80 | 81 |
81 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_CLIENT_MDNS_H_ | 82 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_CLIENT_MDNS_H_ |
OLD | NEW |