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

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

Issue 15010: Implement extension:// protocol. (Closed)
Patch Set: add missing unit test Created 12 years 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 | « chrome/browser/dom_ui/chrome_url_data_manager.cc ('k') | chrome/browser/extensions/extension_protocol.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension.h
diff --git a/chrome/browser/extensions/extension.h b/chrome/browser/extensions/extension.h
index 691a0b7329d0b220a80153d5dfc5789736fef7d6..ac6c6713cf2b1a3407fe4648454873a337a322b9 100644
--- a/chrome/browser/extensions/extension.h
+++ b/chrome/browser/extensions/extension.h
@@ -16,6 +16,7 @@
class Extension {
public:
Extension(){};
+ Extension(const FilePath& path) : path_(path) {};
// The format for extension manifests that this code understands.
static const int kExpectedFormatVersion = 1;
@@ -39,6 +40,9 @@ class Extension {
static const char* kInvalidContentScriptsListError;
static const char* kInvalidContentScriptError;
+ // The path to the folder the extension is stored in.
+ const FilePath& path() const { return path_; }
+
// A human-readable ID for the extension. The convention is to use something
// like 'com.example.myextension', but this is not currently enforced. An
// extension's ID is used in things like directory structures and URLs, and
@@ -65,9 +69,19 @@ class Extension {
void CopyToValue(DictionaryValue* value);
private:
+ // The path to the directory the extension is stored in.
+ FilePath path_;
+
+ // The extension's ID.
std::string id_;
+
+ // The extension's human-readable name.
std::string name_;
+
+ // An optional description for the extension.
std::string description_;
+
+ // Paths to the content scripts the extension contains.
std::vector<std::string> content_scripts_;
DISALLOW_COPY_AND_ASSIGN(Extension);
« no previous file with comments | « chrome/browser/dom_ui/chrome_url_data_manager.cc ('k') | chrome/browser/extensions/extension_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698