OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/extension_host.h" | 5 #include "chrome/browser/extensions/extension_host.h" |
6 | 6 |
7 #include <list> | 7 #include <list> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 #include "grit/chromium_strings.h" | 58 #include "grit/chromium_strings.h" |
59 #include "grit/generated_resources.h" | 59 #include "grit/generated_resources.h" |
60 #include "ui/base/l10n/l10n_util.h" | 60 #include "ui/base/l10n/l10n_util.h" |
61 #include "ui/base/resource/resource_bundle.h" | 61 #include "ui/base/resource/resource_bundle.h" |
62 #include "ui/events/keycodes/keyboard_codes.h" | 62 #include "ui/events/keycodes/keyboard_codes.h" |
63 | 63 |
64 #if !defined(OS_ANDROID) | 64 #if !defined(OS_ANDROID) |
65 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 65 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
66 #endif | 66 #endif |
67 | 67 |
68 using WebKit::WebDragOperation; | 68 using blink::WebDragOperation; |
69 using WebKit::WebDragOperationsMask; | 69 using blink::WebDragOperationsMask; |
70 using content::NativeWebKeyboardEvent; | 70 using content::NativeWebKeyboardEvent; |
71 using content::OpenURLParams; | 71 using content::OpenURLParams; |
72 using content::RenderViewHost; | 72 using content::RenderViewHost; |
73 using content::SiteInstance; | 73 using content::SiteInstance; |
74 using content::WebContents; | 74 using content::WebContents; |
75 | 75 |
76 namespace extensions { | 76 namespace extensions { |
77 | 77 |
78 // Helper class that rate-limits the creation of renderer processes for | 78 // Helper class that rate-limits the creation of renderer processes for |
79 // ExtensionHosts, to avoid blocking the UI. | 79 // ExtensionHosts, to avoid blocking the UI. |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 | 713 |
714 void ExtensionHost::RequestMediaAccessPermission( | 714 void ExtensionHost::RequestMediaAccessPermission( |
715 content::WebContents* web_contents, | 715 content::WebContents* web_contents, |
716 const content::MediaStreamRequest& request, | 716 const content::MediaStreamRequest& request, |
717 const content::MediaResponseCallback& callback) { | 717 const content::MediaResponseCallback& callback) { |
718 MediaCaptureDevicesDispatcher::GetInstance()->ProcessMediaAccessRequest( | 718 MediaCaptureDevicesDispatcher::GetInstance()->ProcessMediaAccessRequest( |
719 web_contents, request, callback, extension()); | 719 web_contents, request, callback, extension()); |
720 } | 720 } |
721 | 721 |
722 } // namespace extensions | 722 } // namespace extensions |
OLD | NEW |