| 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..9c7919206ab398fb16f315d1d0e86d747dd1202c 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,27 @@ class OptionsPageHandler : public ManifestHandler {
|
| DISALLOW_COPY_AND_ASSIGN(OptionsPageHandler);
|
| };
|
|
|
| +// Parses the "about_page" manifest key.
|
| +// TODO(sashab): Make this and any other similar handlers extend from the same
|
| +// abstract class, URLManifestHandler, which has pure virtual methods for
|
| +// detecting the required URL type (relative or absolute) and abstracts the
|
| +// URL parsing logic away.
|
| +class AboutPageHandler : public ManifestHandler {
|
| + public:
|
| + AboutPageHandler();
|
| + virtual ~AboutPageHandler();
|
| +
|
| + virtual bool Parse(Extension* extension, base::string16* error) OVERRIDE;
|
| + virtual bool Validate(const Extension* extension,
|
| + 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:
|
|
|