OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "content/browser/frame_host/render_frame_host_delegate.h" | 9 #include "content/browser/frame_host/render_frame_host_delegate.h" |
10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
(...skipping 21 matching lines...) Expand all Loading... | |
32 return false; | 32 return false; |
33 } | 33 } |
34 | 34 |
35 WebContents* RenderFrameHostDelegate::GetAsWebContents() { | 35 WebContents* RenderFrameHostDelegate::GetAsWebContents() { |
36 return NULL; | 36 return NULL; |
37 } | 37 } |
38 | 38 |
39 void RenderFrameHostDelegate::RequestMediaAccessPermission( | 39 void RenderFrameHostDelegate::RequestMediaAccessPermission( |
40 const MediaStreamRequest& request, | 40 const MediaStreamRequest& request, |
41 const MediaResponseCallback& callback) { | 41 const MediaResponseCallback& callback) { |
42 NOTREACHED(); | |
tommi (sloooow) - chröme
2014/09/20 14:25:38
I'm not sure about this since there is an implemen
Henrik Grunell
2014/09/22 08:49:52
Yeah, Per and I discussed this before. I had that
| |
42 callback.Run(MediaStreamDevices(), | 43 callback.Run(MediaStreamDevices(), |
43 MEDIA_DEVICE_INVALID_STATE, | 44 MEDIA_DEVICE_INVALID_STATE, |
44 scoped_ptr<MediaStreamUI>()); | 45 scoped_ptr<MediaStreamUI>()); |
45 } | 46 } |
46 | 47 |
47 bool RenderFrameHostDelegate::CheckMediaAccessPermission( | 48 bool RenderFrameHostDelegate::CheckMediaAccessPermission( |
48 const GURL& security_origin, | 49 const GURL& security_origin, |
49 MediaStreamType type) { | 50 MediaStreamType type) { |
50 DCHECK(type == MEDIA_DEVICE_AUDIO_CAPTURE || | 51 NOTREACHED(); |
51 type == MEDIA_DEVICE_VIDEO_CAPTURE); | |
52 return false; | 52 return false; |
53 } | 53 } |
54 | 54 |
55 AccessibilityMode RenderFrameHostDelegate::GetAccessibilityMode() const { | 55 AccessibilityMode RenderFrameHostDelegate::GetAccessibilityMode() const { |
56 return AccessibilityModeOff; | 56 return AccessibilityModeOff; |
57 } | 57 } |
58 | 58 |
59 RenderFrameHost* RenderFrameHostDelegate::GetGuestByInstanceID( | 59 RenderFrameHost* RenderFrameHostDelegate::GetGuestByInstanceID( |
60 int browser_plugin_instance_id) { | 60 int browser_plugin_instance_id) { |
61 return NULL; | 61 return NULL; |
62 } | 62 } |
63 | 63 |
64 #if defined(OS_WIN) | 64 #if defined(OS_WIN) |
65 gfx::NativeViewAccessible | 65 gfx::NativeViewAccessible |
66 RenderFrameHostDelegate::GetParentNativeViewAccessible() { | 66 RenderFrameHostDelegate::GetParentNativeViewAccessible() { |
67 return NULL; | 67 return NULL; |
68 } | 68 } |
69 #endif // defined(OS_WIN) | 69 #endif // defined(OS_WIN) |
70 | 70 |
71 } // namespace content | 71 } // namespace content |
OLD | NEW |