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

Unified Diff: extensions/shell/browser/shell_extensions_browser_client.cc

Issue 493453004: app_shell: Add audio and video capture support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: (video-capture) rebase Created 6 years, 4 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
« no previous file with comments | « extensions/shell/browser/shell_extension_host_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/shell/browser/shell_extensions_browser_client.cc
diff --git a/extensions/shell/browser/shell_extensions_browser_client.cc b/extensions/shell/browser/shell_extensions_browser_client.cc
index 2858521a716b365dedefc4b579d0dae0c4338e5d..eee57b6ea81aa996cb36e45d6c74ee1f6d6d9c70 100644
--- a/extensions/shell/browser/shell_extensions_browser_client.cc
+++ b/extensions/shell/browser/shell_extensions_browser_client.cc
@@ -11,13 +11,12 @@
#include "components/user_prefs/user_prefs.h"
#include "extensions/browser/app_sorting.h"
#include "extensions/browser/extension_function_registry.h"
-#include "extensions/browser/extension_host_delegate.h"
#include "extensions/browser/extension_prefs.h"
#include "extensions/common/api/generated_api.h"
#include "extensions/shell/browser/api/shell_extensions_api_client.h"
#include "extensions/shell/browser/shell_app_sorting.h"
+#include "extensions/shell/browser/shell_extension_host_delegate.h"
#include "extensions/shell/browser/shell_extension_system_factory.h"
-#include "extensions/shell/browser/shell_extension_web_contents_observer.h"
#include "extensions/shell/browser/shell_runtime_api_delegate.h"
#include "extensions/shell/common/api/generated_api.h"
@@ -31,51 +30,6 @@ void RegisterPrefs(user_prefs::PrefRegistrySyncable* registry) {
ExtensionPrefs::RegisterProfilePrefs(registry);
}
-// A minimal ExtensionHostDelegate.
-class ShellExtensionHostDelegate : public ExtensionHostDelegate {
- public:
- ShellExtensionHostDelegate() {}
- virtual ~ShellExtensionHostDelegate() {}
-
- // ExtensionHostDelegate implementation.
- virtual void OnExtensionHostCreated(
- content::WebContents* web_contents) OVERRIDE;
-
- virtual void OnRenderViewCreatedForBackgroundPage(
- ExtensionHost* host) OVERRIDE {}
-
- virtual content::JavaScriptDialogManager* GetJavaScriptDialogManager()
- OVERRIDE {
- // TODO(jamescook): Create a JavaScriptDialogManager or reuse the one from
- // content_shell.
- NOTREACHED();
- return NULL;
- }
-
- virtual void CreateTab(content::WebContents* web_contents,
- const std::string& extension_id,
- WindowOpenDisposition disposition,
- const gfx::Rect& initial_pos,
- bool user_gesture) OVERRIDE {
- // TODO(jamescook): Should app_shell support opening popup windows?
- NOTREACHED();
- }
-
- virtual void ProcessMediaAccessRequest(
- content::WebContents* web_contents,
- const content::MediaStreamRequest& request,
- const content::MediaResponseCallback& callback,
- const Extension* extension) OVERRIDE {
- // app_shell does not support media capture.
- NOTREACHED();
- }
-};
-
-void ShellExtensionHostDelegate::OnExtensionHostCreated(
- content::WebContents* web_contents) {
- ShellExtensionWebContentsObserver::CreateForWebContents(web_contents);
-}
-
} // namespace
ShellExtensionsBrowserClient::ShellExtensionsBrowserClient(
« no previous file with comments | « extensions/shell/browser/shell_extension_host_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698