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

Unified Diff: chrome/browser/extensions/api/dial/nsd_registry.h

Issue 22870011: chrome.mdns API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compilation Created 7 years, 4 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/dial/nsd_registry.h
diff --git a/chrome/browser/extensions/api/dial/nsd_registry.h b/chrome/browser/extensions/api/dial/nsd_registry.h
new file mode 100644
index 0000000000000000000000000000000000000000..06b2c523e59f91bd7b1069b524a555e7257e15cf
--- /dev/null
+++ b/chrome/browser/extensions/api/dial/nsd_registry.h
@@ -0,0 +1,40 @@
+// Copyright (c) 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_DIAL_NSD_REGISTRY_H_
+#define CHROME_BROWSER_EXTENSIONS_API_DIAL_NSD_REGISTRY_H_
+
+namespace extensions {
+
+// Network Service Discovery registry class for keeping track of local network
+// services discovered on the local network.
+class NsdRegistry : public {
+ public:
+ // TODO:
+ typedef std::vector<string> NsdDeviceList;
+
+ enum NsdErrorCode {
+ NSD_SERVICE_ERROR
+ NSD_ERROR
+ }
+
+ class Observer {
+ public:
+ virtual void OnNsdEvent(const NsdDeviceList& devices) = 0;
+ virtual void OnNsdEvent(NsdErrorCode type) = 0;
+
+ protected:
+ virtual ~Observer() {}
+ };
+
+ explicit NsdRegistry(Observer* dial_api);
+
+ protected:
+
+ private:
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_DIAL_NSD_REGISTRY_H_

Powered by Google App Engine
This is Rietveld 408576698