summaryrefslogtreecommitdiff
path: root/chromium/extensions/shell/browser/shell_extension_host_delegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/extensions/shell/browser/shell_extension_host_delegate.h')
-rw-r--r--chromium/extensions/shell/browser/shell_extension_host_delegate.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/chromium/extensions/shell/browser/shell_extension_host_delegate.h b/chromium/extensions/shell/browser/shell_extension_host_delegate.h
new file mode 100644
index 00000000000..d91b407e381
--- /dev/null
+++ b/chromium/extensions/shell/browser/shell_extension_host_delegate.h
@@ -0,0 +1,44 @@
+// 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_EXTENSION_HOST_DELEGATE_H_
+#define EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_HOST_DELEGATE_H_
+
+#include "base/macros.h"
+#include "extensions/browser/extension_host_delegate.h"
+
+namespace extensions {
+
+// A minimal ExtensionHostDelegate.
+class ShellExtensionHostDelegate : public ExtensionHostDelegate {
+ public:
+ ShellExtensionHostDelegate();
+ ~ShellExtensionHostDelegate() override;
+
+ // ExtensionHostDelegate implementation.
+ void OnExtensionHostCreated(content::WebContents* web_contents) override;
+ void OnRenderViewCreatedForBackgroundPage(ExtensionHost* host) override;
+ content::JavaScriptDialogManager* GetJavaScriptDialogManager() override;
+ void CreateTab(content::WebContents* web_contents,
+ const std::string& extension_id,
+ WindowOpenDisposition disposition,
+ const gfx::Rect& initial_rect,
+ bool user_gesture) override;
+ void ProcessMediaAccessRequest(content::WebContents* web_contents,
+ const content::MediaStreamRequest& request,
+ const content::MediaResponseCallback& callback,
+ const Extension* extension) override;
+ bool CheckMediaAccessPermission(content::WebContents* web_contents,
+ const GURL& security_origin,
+ content::MediaStreamType type,
+ const Extension* extension) override;
+ ExtensionHostQueue* GetExtensionHostQueue() const override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ShellExtensionHostDelegate);
+};
+
+} // namespace extensions
+
+#endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_HOST_DELEGATE_H_