Allow only one bookmark to be added for multiple fast starring
[chromium-blink-merge.git] / extensions / common / manifest_handlers / nacl_modules_handler.h
blob4830bfab7d7a64a25652a4a997be363aeddcc2cc
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_COMMON_MANIFEST_HANDLERS_NACL_MODULES_HANDLER_H_
6 #define EXTENSIONS_COMMON_MANIFEST_HANDLERS_NACL_MODULES_HANDLER_H_
8 #include <list>
9 #include <string>
11 #include "extensions/common/extension.h"
12 #include "extensions/common/manifest_handler.h"
14 namespace extensions {
16 // An NaCl module included in the extension.
17 struct NaClModuleInfo {
18 typedef std::list<NaClModuleInfo> List;
19 // Returns the NaCl modules for the extensions, or NULL if none exist.
20 static const NaClModuleInfo::List* GetNaClModules(
21 const Extension* extension);
23 GURL url;
24 std::string mime_type;
27 // Parses the "nacl_modules" manifest key.
28 class NaClModulesHandler : public ManifestHandler {
29 public:
30 NaClModulesHandler();
31 ~NaClModulesHandler() override;
33 bool Parse(Extension* extension, base::string16* error) override;
35 private:
36 const std::vector<std::string> Keys() const override;
39 } // namespace extensions
41 #endif // EXTENSIONS_COMMON_MANIFEST_HANDLERS_NACL_MODULES_HANDLER_H_