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

Unified Diff: chrome/browser/media/router/discovery/mdns/dns_sd_delegate.h

Issue 2876703002: [mDns] Move dns_sd_registry from extension/api/mdns to media/router/discovery/mdns (Closed)
Patch Set: rebase with master Created 3 years, 7 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media/router/discovery/mdns/dns_sd_delegate.h
diff --git a/chrome/browser/extensions/api/mdns/dns_sd_delegate.h b/chrome/browser/media/router/discovery/mdns/dns_sd_delegate.h
similarity index 72%
rename from chrome/browser/extensions/api/mdns/dns_sd_delegate.h
rename to chrome/browser/media/router/discovery/mdns/dns_sd_delegate.h
index 7a06066805edf98f1e8e9367bac6dc73768d57a1..aa3efd35983496e41eebcd3564838ae91876d1ab 100644
--- a/chrome/browser/extensions/api/mdns/dns_sd_delegate.h
+++ b/chrome/browser/media/router/discovery/mdns/dns_sd_delegate.h
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_EXTENSIONS_API_MDNS_DNS_SD_DELEGATE_H_
-#define CHROME_BROWSER_EXTENSIONS_API_MDNS_DNS_SD_DELEGATE_H_
+#ifndef CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_MDNS_DNS_SD_DELEGATE_H_
+#define CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_MDNS_DNS_SD_DELEGATE_H_
#include <string>
#include <vector>
-namespace extensions {
+namespace media_router {
struct DnsSdService {
std::string service_name;
@@ -23,13 +23,10 @@ struct DnsSdService {
bool operator==(const DnsSdService& other) const {
return service_name == other.service_name &&
service_host_port == other.service_host_port &&
- ip_address == other.ip_address &&
- service_data == other.service_data;
+ ip_address == other.ip_address && service_data == other.service_data;
}
- bool operator!=(const DnsSdService& other) const {
- return !(*this == other);
- }
+ bool operator!=(const DnsSdService& other) const { return !(*this == other); }
};
// Delegate that is notified when a watched service is added, updated or
@@ -44,6 +41,6 @@ class DnsSdDelegate {
virtual void ServicesFlushed(const std::string& service_type) = 0;
};
-} // namespace extensions
+} // namespace media_router
-#endif // CHROME_BROWSER_EXTENSIONS_API_MDNS_DNS_SD_DELEGATE_H_
+#endif // CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_MDNS_DNS_SD_DELEGATE_H_
« no previous file with comments | « chrome/browser/media/router/discovery/BUILD.gn ('k') | chrome/browser/media/router/discovery/mdns/dns_sd_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698