summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/extensions/extension.h')
-rw-r--r--chrome/common/extensions/extension.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index 5ed2f7f..03eaee3 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -286,9 +286,10 @@ class Extension {
bool GetBackgroundPageReady();
void SetBackgroundPageReady();
- // The origins that this app is registered to.
+ // App stuff.
const std::vector<GURL>& app_origins() const { return app_origins_; }
- bool IsApp() const { return !app_origins_.empty(); }
+ const GURL& app_launch_url() const { return app_launch_url_; }
+ bool IsApp() const { return !app_launch_url_.is_empty(); }
private:
// Helper method that loads a UserScript object from a
@@ -422,6 +423,9 @@ class Extension {
// The vector of origin URLs associated with an app.
std::vector<GURL> app_origins_;
+ // The URL an app should launch to.
+ GURL app_launch_url_;
+
// Runtime data: