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

Unified Diff: extensions/shell/browser/shell_apps_client.h

Issue 547593002: Add ShellAppsClient, ShellAppDelegate, ShellNativeAppWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@apifeatures
Patch Set: Address comments Created 6 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: extensions/shell/browser/shell_apps_client.h
diff --git a/extensions/shell/browser/shell_apps_client.h b/extensions/shell/browser/shell_apps_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..2aaa5ba7ec42153c053b911024eb1b33a1984605
--- /dev/null
+++ b/extensions/shell/browser/shell_apps_client.h
@@ -0,0 +1,40 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef EXTENSIONS_SHELL_BROWSER_SHELL_APPS_CLIENT_H_
+#define EXTENSIONS_SHELL_BROWSER_SHELL_APPS_CLIENT_H_
+
+#include "base/compiler_specific.h"
+#include "base/macros.h"
+#include "extensions/browser/app_window/apps_client.h"
+
+namespace extensions {
+
+// app_shell's AppsClient implementation.
+class ShellAppsClient : public AppsClient {
+ public:
+ ShellAppsClient();
+ virtual ~ShellAppsClient();
+
+ // AppsClient overrides:
+ virtual std::vector<content::BrowserContext*> GetLoadedBrowserContexts()
+ OVERRIDE;
+ virtual AppWindow* CreateAppWindow(content::BrowserContext* context,
+ const Extension* extension) OVERRIDE;
+ virtual NativeAppWindow* CreateNativeAppWindow(
+ AppWindow* window,
+ const AppWindow::CreateParams& params) OVERRIDE;
+ virtual void IncrementKeepAliveCount() OVERRIDE;
+ virtual void DecrementKeepAliveCount() OVERRIDE;
+ virtual void OpenDevToolsWindow(content::WebContents* web_contents,
+ const base::Closure& callback) OVERRIDE;
+ virtual bool IsCurrentChannelOlderThanDev() OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ShellAppsClient);
+};
+
+} // namespace extensions
+
+#endif // EXTENSIONS_SHELL_BROWSER_SHELL_APPS_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698