Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / manifest_url_handler.h
index 9c79192..bf5f835 100644 (file)
@@ -30,6 +30,10 @@ struct ManifestURL : public Extension::ManifestData {
   // this returns a blank GURL.
   static const GURL GetHomepageURL(const Extension* extension);
 
+  // Returns true if the extension specified a valid home page url in the
+  // manifest.
+  static bool SpecifiedHomepageURL(const Extension* extension);
+
   // Returns the Update URL for this extension.
   static const GURL& GetUpdateURL(const Extension* extension);
 
@@ -37,9 +41,6 @@ struct ManifestURL : public Extension::ManifestData {
   static bool UpdatesFromGallery(const Extension* extension);
   static bool UpdatesFromGallery(const base::DictionaryValue* manifest);
 
-  // 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);
 
@@ -106,23 +107,6 @@ class UpdateURLHandler : public ManifestHandler {
   DISALLOW_COPY_AND_ASSIGN(UpdateURLHandler);
 };
 
-// Parses the "options_page" manifest key.
-class OptionsPageHandler : public ManifestHandler {
- public:
-  OptionsPageHandler();
-  virtual ~OptionsPageHandler();
-
-  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(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