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

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

Issue 174277: override chrome:// URLs via extensions. (Closed)
Patch Set: fix linux errors Created 11 years, 4 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 | « chrome/chrome.gyp ('k') | 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
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index ab68d60058825c708fcbe98a0e6a3b2d73b7b92c..a84cf4614be0b4c24e1120703892002da84d56e4 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -262,6 +262,11 @@ class Extension {
default_locale_ = default_locale;
}
+ // Chrome URL overrides (see ExtensionOverrideUI).
+ DictionaryValue* GetChromeURLOverrides() const {
+ return chrome_url_overrides_.get();
+ }
+
// Runtime data:
// Put dynamic data about the state of a running extension below.
@@ -382,6 +387,10 @@ class Extension {
// Default locale, used for fallback.
std::string default_locale_;
+ // A map of chrome:// hostnames (newtab, downloads, etc.) to Extension URLs
+ // which override the handling of those URLs.
+ scoped_ptr<DictionaryValue> chrome_url_overrides_;
+
// Runtime data:
// True if the background page is ready.
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698