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

Unified Diff: chrome/browser/extensions/api/mdns/dns_sd_device_lister.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/extensions/api/mdns/dns_sd_device_lister.h
diff --git a/chrome/browser/extensions/api/mdns/dns_sd_device_lister.h b/chrome/browser/extensions/api/mdns/dns_sd_device_lister.h
deleted file mode 100644
index 23fba1ac275b380dc4fef6b752c4dd1028ed5e9c..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/mdns/dns_sd_device_lister.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// 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_DEVICE_LISTER_H_
-#define CHROME_BROWSER_EXTENSIONS_API_MDNS_DNS_SD_DEVICE_LISTER_H_
-
-#include <string>
-
-#include "base/macros.h"
-#include "chrome/browser/extensions/api/mdns/dns_sd_delegate.h"
-#include "chrome/browser/local_discovery/service_discovery_device_lister.h"
-
-namespace local_discovery {
-class ServiceDiscoveryClient;
-} // local_discovery
-
-namespace extensions {
-
-// Manages a watcher for a specific MDNS/DNS-SD service type and notifies
-// a delegate of changes to watched services.
-class DnsSdDeviceLister
- : public local_discovery::ServiceDiscoveryDeviceLister::Delegate {
- public:
- DnsSdDeviceLister(
- local_discovery::ServiceDiscoveryClient* service_discovery_client,
- DnsSdDelegate* delegate,
- const std::string& service_type);
- virtual ~DnsSdDeviceLister();
-
- virtual void Discover(bool force_update);
-
- protected:
- void OnDeviceChanged(
- bool added,
- const local_discovery::ServiceDescription& service_description) override;
- void OnDeviceRemoved(const std::string& service_name) override;
- void OnDeviceCacheFlushed() override;
-
- private:
- // The delegate to notify of changes to services.
- DnsSdDelegate* const delegate_;
- local_discovery::ServiceDiscoveryDeviceLister device_lister_;
- bool started_;
-
- DISALLOW_COPY_AND_ASSIGN(DnsSdDeviceLister);
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_API_MDNS_DNS_SD_DEVICE_LISTER_H_
« no previous file with comments | « chrome/browser/extensions/api/mdns/dns_sd_delegate.cc ('k') | chrome/browser/extensions/api/mdns/dns_sd_device_lister.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698