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

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

Issue 311193005: Add the about_page key to shared_module manifest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change the dialog Created 6 years, 6 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
Index: chrome/common/extensions/manifest_url_handler.h
diff --git a/chrome/common/extensions/manifest_url_handler.h b/chrome/common/extensions/manifest_url_handler.h
index 057589b3cff35ba3ebbdd82f2f5ac5a01c6fb57a..bf286cf3c5c91bb9baf7484db451aae05a0bf021 100644
--- a/chrome/common/extensions/manifest_url_handler.h
+++ b/chrome/common/extensions/manifest_url_handler.h
@@ -40,6 +40,9 @@ struct ManifestURL : public Extension::ManifestData {
// Returns the Options Page for this extension.
static const GURL& GetOptionsPage(const Extension* extension);
+ // Returns the About Page for this extension.
+ static const GURL& GetAboutPage(const Extension* extension);
+
// Returns the webstore page URL for this extension.
static const GURL GetDetailsURL(const Extension* extension);
};
@@ -120,6 +123,23 @@ class OptionsPageHandler : public ManifestHandler {
DISALLOW_COPY_AND_ASSIGN(OptionsPageHandler);
};
+// Parses the "options_page" manifest key.
+class AboutPageHandler : public ManifestHandler {
+ public:
+ AboutPageHandler();
+ virtual ~AboutPageHandler();
+
+ virtual bool Parse(Extension* extension, base::string16* error) OVERRIDE;
+ virtual bool Validate(const Extension* extension,
benwells 2014/06/05 03:59:17 Do you know what calls this? It is weird that it u
sashab 2014/06/10 05:44:13 Not sure what calls it (there are a lot of callsit
Yoyo Zhou 2014/06/10 11:16:18 This is principally called from extensions::file_u
+ std::string* error,
+ std::vector<InstallWarning>* warnings) const OVERRIDE;
+
+ private:
+ virtual const std::vector<std::string> Keys() const OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(AboutPageHandler);
+};
+
// Parses the "chrome_url_overrides" manifest key.
class URLOverridesHandler : public ManifestHandler {
public:

Powered by Google App Engine
This is Rietveld 408576698