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_ |