OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_HOST_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_HOST_DELEGATE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_HOST_DELEGATE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_HOST_DELEGATE_H_ |
7 | 7 |
8 #include "extensions/browser/extension_host_delegate.h" | 8 #include "extensions/browser/extension_host_delegate.h" |
9 | 9 |
10 namespace extensions { | 10 namespace extensions { |
11 | 11 |
12 // Chrome support for ExtensionHost. | 12 // Chrome support for ExtensionHost. |
13 class ChromeExtensionHostDelegate : public ExtensionHostDelegate { | 13 class ChromeExtensionHostDelegate : public ExtensionHostDelegate { |
14 public: | 14 public: |
15 ChromeExtensionHostDelegate(); | 15 ChromeExtensionHostDelegate(); |
16 ~ChromeExtensionHostDelegate() override; | 16 ~ChromeExtensionHostDelegate() override; |
17 | 17 |
18 // ExtensionHostDelegate implementation. | 18 // ExtensionHostDelegate implementation. |
19 void OnExtensionHostCreated(content::WebContents* web_contents) override; | 19 void OnExtensionHostCreated(content::WebContents* web_contents) override; |
20 void OnRenderViewCreatedForBackgroundPage(ExtensionHost* host) override; | 20 void OnRenderViewCreatedForBackgroundPage(ExtensionHost* host) override; |
21 content::JavaScriptDialogManager* GetJavaScriptDialogManager() override; | 21 content::JavaScriptDialogManager* GetJavaScriptDialogManager() override; |
22 void CreateTab(content::WebContents* web_contents, | 22 void CreateTab(content::WebContents* web_contents, |
23 const std::string& extension_id, | 23 const std::string& extension_id, |
24 WindowOpenDisposition disposition, | 24 WindowOpenDisposition disposition, |
25 const gfx::Rect& initial_pos, | 25 const gfx::Rect& initial_rect, |
26 bool user_gesture) override; | 26 bool user_gesture) override; |
27 void ProcessMediaAccessRequest(content::WebContents* web_contents, | 27 void ProcessMediaAccessRequest(content::WebContents* web_contents, |
28 const content::MediaStreamRequest& request, | 28 const content::MediaStreamRequest& request, |
29 const content::MediaResponseCallback& callback, | 29 const content::MediaResponseCallback& callback, |
30 const Extension* extension) override; | 30 const Extension* extension) override; |
31 bool CheckMediaAccessPermission(content::WebContents* web_contents, | 31 bool CheckMediaAccessPermission(content::WebContents* web_contents, |
32 const GURL& security_origin, | 32 const GURL& security_origin, |
33 content::MediaStreamType type, | 33 content::MediaStreamType type, |
34 const Extension* extension) override; | 34 const Extension* extension) override; |
35 }; | 35 }; |
36 | 36 |
37 } // namespace extensions | 37 } // namespace extensions |
38 | 38 |
39 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_HOST_DELEGATE_H_ | 39 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_HOST_DELEGATE_H_ |
OLD | NEW |