Index: chrome/common/extensions/api/mdns/mdns_manifest_handler.h |
diff --git a/chrome/common/extensions/api/mdns/mdns_manifest_handler.h b/chrome/common/extensions/api/mdns/mdns_manifest_handler.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..cbb7d09f2855cc7db96f65b8302e9e90391fb264 |
--- /dev/null |
+++ b/chrome/common/extensions/api/mdns/mdns_manifest_handler.h |
@@ -0,0 +1,39 @@ |
+// 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_COMMON_EXTENSIONS_API_MDNS_MDNS_MANIFEST_HANDLER_H_ |
+#define CHROME_COMMON_EXTENSIONS_API_MDNS_MDNS_MANIFEST_HANDLER_H_ |
+ |
+#include <string> |
+#include <vector> |
+ |
+#include "chrome/common/extensions/extension.h" |
+#include "chrome/common/extensions/manifest_handler.h" |
+ |
+namespace extensions { |
+ |
+struct MDnsInfo : public Extension::ManifestData { |
+ MDnsInfo(); |
+ virtual ~MDnsInfo(); |
+ |
+ std::vector<std::string> service_types; |
+ |
+ static const MDnsInfo& GetMDnsInfo(const Extension* extension); |
+}; |
+ |
+class MDnsManifestHandler : public ManifestHandler { |
+ public: |
+ MDnsManifestHandler(); |
+ virtual ~MDnsManifestHandler(); |
+ |
+ private: |
+ virtual const std::vector<std::string> Keys() const OVERRIDE; |
+ virtual bool Parse(Extension* extension, string16* error) OVERRIDE; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(MDnsManifestHandler); |
+}; |
+ |
+} // namespace extensions |
+ |
+#endif // CHROME_COMMON_EXTENSIONS_API_MDNS_MDNS_MANIFEST_HANDLER_H_ |