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

Unified Diff: apps/apps_client.h

Issue 25034003: Moved apps metro code from apps to chrome/browser/apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix stuffup Created 7 years, 3 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: apps/apps_client.h
diff --git a/apps/apps_client.h b/apps/apps_client.h
index c3a58ca10c4ea993b881952ae78a42d0b162fb60..f67aad679c7f3b1af3035e7e4d1ccb0999735722 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();
« no previous file with comments | « apps/apps.gypi ('k') | apps/launcher.cc » ('j') | chrome/browser/prefs/browser_prefs.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698