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

Unified Diff: trunk/src/chrome/browser/extensions/api/mdns/dns_sd_registry.h

Issue 23945003: Revert 221619 "Initial chrome.mdns API." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 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: trunk/src/chrome/browser/extensions/api/mdns/dns_sd_registry.h
===================================================================
--- trunk/src/chrome/browser/extensions/api/mdns/dns_sd_registry.h (revision 221667)
+++ trunk/src/chrome/browser/extensions/api/mdns/dns_sd_registry.h (working copy)
@@ -1,47 +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_REGISTRY_H_
-#define CHROME_BROWSER_EXTENSIONS_API_MDNS_DNS_SD_REGISTRY_H_
-
-#include <string>
-#include <vector>
-
-#include "base/observer_list.h"
-
-namespace extensions {
-
-// Network Service Discovery registry class for keeping track of discovered
-// network services.
-class DnsSdRegistry {
- public:
- typedef std::vector<std::string> DnsSdServiceList;
-
- class DnsSdObserver {
- public:
- virtual void OnDnsSdEvent(const std::string& service_type,
- const DnsSdServiceList& services) = 0;
-
- protected:
- virtual ~DnsSdObserver() {}
- };
-
- explicit DnsSdRegistry();
- virtual ~DnsSdRegistry();
-
- // Observer registration for parties interested in discovery events.
- virtual void AddObserver(DnsSdObserver* observer);
- virtual void RemoveObserver(DnsSdObserver* observer);
-
- // DNS-SD-related discovery functionality.
- virtual void RegisterDnsSdListener(std::string service_type);
- virtual void UnregisterDnsSdListener(std::string service_type);
-
- protected:
- ObserverList<DnsSdObserver> observers_;
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_API_MDNS_DNS_SD_REGISTRY_H_
« no previous file with comments | « trunk/src/chrome/browser/extensions/api/mdns/OWNERS ('k') | trunk/src/chrome/browser/extensions/api/mdns/dns_sd_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698