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

Side by Side Diff: chrome/common/extensions/manifest_handlers/nacl_modules_handler.h

Issue 60393005: Revert 232631 - Revert 232499 "Move ManifestHandler to top-level extensions." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: deps Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_NACL_MODULES_HANDLER_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_NACL_MODULES_HANDLER_H_
6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_NACL_MODULES_HANDLER_H_ 6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_NACL_MODULES_HANDLER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
11 #include "chrome/common/extensions/extension.h" 11 #include "chrome/common/extensions/extension.h"
12 #include "chrome/common/extensions/manifest_handler.h" 12 #include "extensions/common/manifest_handler.h"
13 13
14 namespace extensions { 14 namespace extensions {
15 15
16 // An NaCl module included in the extension. 16 // An NaCl module included in the extension.
17 struct NaClModuleInfo { 17 struct NaClModuleInfo {
18 typedef std::list<NaClModuleInfo> List; 18 typedef std::list<NaClModuleInfo> List;
19 // Returns the NaCl modules for the extensions, or NULL if none exist. 19 // Returns the NaCl modules for the extensions, or NULL if none exist.
20 static const NaClModuleInfo::List* GetNaClModules( 20 static const NaClModuleInfo::List* GetNaClModules(
21 const Extension* extension); 21 const Extension* extension);
22 22
23 GURL url; 23 GURL url;
24 std::string mime_type; 24 std::string mime_type;
25 }; 25 };
26 26
27 // Parses the "nacl_modules" manifest key. 27 // Parses the "nacl_modules" manifest key.
28 class NaClModulesHandler : public ManifestHandler { 28 class NaClModulesHandler : public ManifestHandler {
29 public: 29 public:
30 NaClModulesHandler(); 30 NaClModulesHandler();
31 virtual ~NaClModulesHandler(); 31 virtual ~NaClModulesHandler();
32 32
33 virtual bool Parse(Extension* extension, string16* error) OVERRIDE; 33 virtual bool Parse(Extension* extension, string16* error) OVERRIDE;
34 34
35 private: 35 private:
36 virtual const std::vector<std::string> Keys() const OVERRIDE; 36 virtual const std::vector<std::string> Keys() const OVERRIDE;
37 }; 37 };
38 38
39 } // namespace extensions 39 } // namespace extensions
40 40
41 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_NACL_MODULES_HANDLER_H_ 41 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_NACL_MODULES_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698