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

Unified Diff: chrome/common/extensions/extension.h

Issue 6802023: Add nacl_modules key to extension manifests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/common/extensions/extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension.h
===================================================================
--- chrome/common/extensions/extension.h (revision 80644)
+++ chrome/common/extensions/extension.h (working copy)
@@ -102,6 +102,12 @@
bool is_public; // False if only this extension can load this plugin.
};
+ // An NaCl module included in the extension.
+ struct NaClModuleInfo {
+ FilePath path;
+ std::string mime_type;
+ };
+
struct TtsVoice {
std::string voice_name;
std::string locale;
@@ -497,6 +503,9 @@
return sidebar_defaults_.get();
}
const std::vector<PluginInfo>& plugins() const { return plugins_; }
+ const std::vector<NaClModuleInfo>& nacl_modules() const {
+ return nacl_modules_;
+ }
const GURL& background_url() const { return background_url_; }
const GURL& options_url() const { return options_url_; }
const GURL& devtools_url() const { return devtools_url_; }
@@ -725,6 +734,9 @@
// Optional list of NPAPI plugins and associated properties.
std::vector<PluginInfo> plugins_;
+ // Optional list of NaCl modules and associated properties.
+ std::vector<NaClModuleInfo> nacl_modules_;
+
// Optional URL to a master page of which a single instance should be always
// loaded in the background.
GURL background_url_;
« no previous file with comments | « no previous file | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698