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 #include "chrome/browser/extensions/chrome_extension_host_delegate.h" | 5 #include "chrome/browser/extensions/chrome_extension_host_delegate.h" |
6 | 6 |
7 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" | 7 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" |
8 #include "chrome/browser/extensions/extension_service.h" | 8 #include "chrome/browser/extensions/extension_service.h" |
9 #include "chrome/browser/extensions/extension_tab_util.h" | 9 #include "chrome/browser/extensions/extension_tab_util.h" |
10 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | 10 #include "chrome/browser/media/media_capture_devices_dispatcher.h" |
11 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" | 11 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" |
12 #include "components/app_modal_dialogs/javascript_dialog_manager.h" | 12 #include "components/app_modal/javascript_dialog_manager.h" |
13 #include "extensions/browser/extension_host.h" | 13 #include "extensions/browser/extension_host.h" |
14 #include "extensions/browser/extension_system.h" | 14 #include "extensions/browser/extension_system.h" |
15 | 15 |
16 namespace extensions { | 16 namespace extensions { |
17 | 17 |
18 ChromeExtensionHostDelegate::ChromeExtensionHostDelegate() {} | 18 ChromeExtensionHostDelegate::ChromeExtensionHostDelegate() {} |
19 | 19 |
20 ChromeExtensionHostDelegate::~ChromeExtensionHostDelegate() {} | 20 ChromeExtensionHostDelegate::~ChromeExtensionHostDelegate() {} |
21 | 21 |
22 void ChromeExtensionHostDelegate::OnExtensionHostCreated( | 22 void ChromeExtensionHostDelegate::OnExtensionHostCreated( |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 content::WebContents* web_contents, | 60 content::WebContents* web_contents, |
61 const GURL& security_origin, | 61 const GURL& security_origin, |
62 content::MediaStreamType type, | 62 content::MediaStreamType type, |
63 const Extension* extension) { | 63 const Extension* extension) { |
64 return MediaCaptureDevicesDispatcher::GetInstance() | 64 return MediaCaptureDevicesDispatcher::GetInstance() |
65 ->CheckMediaAccessPermission( | 65 ->CheckMediaAccessPermission( |
66 web_contents, security_origin, type, extension); | 66 web_contents, security_origin, type, extension); |
67 } | 67 } |
68 | 68 |
69 } // namespace extensions | 69 } // namespace extensions |
OLD | NEW |