| Index: chrome/common/extensions/manifest_handlers/nacl_modules_handler.h
|
| diff --git a/chrome/common/extensions/manifest_handlers/nacl_modules_handler.h b/chrome/common/extensions/manifest_handlers/nacl_modules_handler.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ec14ce797666e13831bc2e524ef5f1f83d910ee8
|
| --- /dev/null
|
| +++ b/chrome/common/extensions/manifest_handlers/nacl_modules_handler.h
|
| @@ -0,0 +1,41 @@
|
| +// 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_MANIFEST_HANDLERS_NACL_MODULES_HANDLER_H_
|
| +#define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_NACL_MODULES_HANDLER_H_
|
| +
|
| +#include <list>
|
| +#include <string>
|
| +
|
| +#include "chrome/common/extensions/extension.h"
|
| +#include "chrome/common/extensions/manifest_handler.h"
|
| +
|
| +namespace extensions {
|
| +
|
| +// An NaCl module included in the extension.
|
| +struct NaClModuleInfo {
|
| + typedef std::list<NaClModuleInfo> List;
|
| + // Returns the NaCl modules for the extensions, or NULL if none exist.
|
| + static const NaClModuleInfo::List* GetNaClModules(
|
| + const Extension* extension);
|
| +
|
| + GURL url;
|
| + std::string mime_type;
|
| +};
|
| +
|
| +// Parses the "nacl_modules" manifest key.
|
| +class NaClModulesHandler : public ManifestHandler {
|
| + public:
|
| + NaClModulesHandler();
|
| + virtual ~NaClModulesHandler();
|
| +
|
| + virtual bool Parse(Extension* extension, string16* error) OVERRIDE;
|
| +
|
| + private:
|
| + virtual const std::vector<std::string> Keys() const OVERRIDE;
|
| +};
|
| +
|
| +} // namespace extensions
|
| +
|
| +#endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_NACL_MODULES_HANDLER_H_
|
|
|