summaryrefslogtreecommitdiffstats
path: root/apps/apps_client.h
diff options
context:
space:
mode:
authorbenwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-03 08:14:00 +0000
committerbenwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-03 08:14:00 +0000
commitbdb8a1eaff47deef2f795a9180a230b62c20c6f8 (patch)
treea7e737425f7f3dff8f0cbf8c0946e053e7fbe600 /apps/apps_client.h
parentfddc0ee37f12e71e726bd05fea0679578a2deb77 (diff)
downloadchromium_src-bdb8a1eaff47deef2f795a9180a230b62c20c6f8.zip
chromium_src-bdb8a1eaff47deef2f795a9180a230b62c20c6f8.tar.gz
chromium_src-bdb8a1eaff47deef2f795a9180a230b62c20c6f8.tar.bz2
Moved apps metro code from apps to chrome/browser/apps.
This code is chrome specific and does not belong in the generic apps component. BUG=159366 TEST=Run apps and app launcher on Windows 8, in these cases: * when chrome is not running, * when chrome is already running in metro mode, * when chrome is already running and is not in metro mode. Review URL: https://codereview.chromium.org/25034003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226705 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/apps_client.h')
-rw-r--r--apps/apps_client.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/apps_client.h b/apps/apps_client.h
index c3a58ca..f67aad6 100644
--- a/apps/apps_client.h
+++ b/apps/apps_client.h
@@ -11,6 +11,10 @@ namespace content {
class BrowserContext;
}
+namespace extensions {
+class Extension;
+}
+
namespace apps {
// Sets up global state for the apps system. Should be Set() once in each
@@ -20,6 +24,11 @@ class AppsClient {
// Get all loaded browser contexts.
virtual std::vector<content::BrowserContext*> GetLoadedBrowserContexts() = 0;
+ // Do any pre app launch checks. Returns true if the app launch should proceed
+ // or false if the launch should be prevented.
+ virtual bool CheckAppLaunch(content::BrowserContext* context,
+ const extensions::Extension* extension) = 0;
+
// Return the apps client.
static AppsClient* Get();