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 #ifndef CHROME_BROWSER_EXTENSIONS_API_MDNS_DNS_SD_REGISTRY_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_MDNS_DNS_SD_REGISTRY_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_MDNS_DNS_SD_REGISTRY_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_MDNS_DNS_SD_REGISTRY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
16 #include "chrome/browser/extensions/api/mdns/dns_sd_delegate.h" | 16 #include "chrome/browser/media/router/discovery/mdns/dns_sd_delegate.h" |
17 | 17 |
18 namespace local_discovery { | 18 namespace local_discovery { |
19 class ServiceDiscoverySharedClient; | 19 class ServiceDiscoverySharedClient; |
20 } | 20 } |
21 | 21 |
22 namespace extensions { | 22 namespace media_router { |
23 | 23 |
24 class DnsSdDeviceLister; | 24 class DnsSdDeviceLister; |
25 class ServiceTypeData; | 25 class ServiceTypeData; |
26 | 26 |
27 // Registry class for keeping track of discovered network services over DNS-SD. | 27 // Registry class for keeping track of discovered network services over DNS-SD. |
28 class DnsSdRegistry : public DnsSdDelegate { | 28 class DnsSdRegistry : public DnsSdDelegate { |
29 public: | 29 public: |
30 typedef std::vector<DnsSdService> DnsSdServiceList; | 30 typedef std::vector<DnsSdService> DnsSdServiceList; |
31 | 31 |
32 class DnsSdObserver { | 32 class DnsSdObserver { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 void DispatchApiEvent(const std::string& service_type); | 111 void DispatchApiEvent(const std::string& service_type); |
112 bool IsRegistered(const std::string& service_type); | 112 bool IsRegistered(const std::string& service_type); |
113 | 113 |
114 scoped_refptr<local_discovery::ServiceDiscoverySharedClient> | 114 scoped_refptr<local_discovery::ServiceDiscoverySharedClient> |
115 service_discovery_client_; | 115 service_discovery_client_; |
116 base::ObserverList<DnsSdObserver> observers_; | 116 base::ObserverList<DnsSdObserver> observers_; |
117 | 117 |
118 DISALLOW_COPY_AND_ASSIGN(DnsSdRegistry); | 118 DISALLOW_COPY_AND_ASSIGN(DnsSdRegistry); |
119 }; | 119 }; |
120 | 120 |
121 } // namespace extensions | 121 } // namespace media_router |
122 | 122 |
123 #endif // CHROME_BROWSER_EXTENSIONS_API_MDNS_DNS_SD_REGISTRY_H_ | 123 #endif // CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_MDNS_DNS_SD_REGISTRY_H_ |
OLD | NEW |