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 "content/public/browser/browser_plugin_guest_delegate.h" | 5 #include "content/public/browser/browser_plugin_guest_delegate.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 22 matching lines...) Expand all Loading... |
33 base::Owned(new PermissionResponseCallback(callback)), | 33 base::Owned(new PermissionResponseCallback(callback)), |
34 allowed_by_default, | 34 allowed_by_default, |
35 std::string())); | 35 std::string())); |
36 return 0; | 36 return 0; |
37 } | 37 } |
38 | 38 |
39 GURL BrowserPluginGuestDelegate::ResolveURL(const std::string& src) { | 39 GURL BrowserPluginGuestDelegate::ResolveURL(const std::string& src) { |
40 return GURL(src); | 40 return GURL(src); |
41 } | 41 } |
42 | 42 |
| 43 void BrowserPluginGuestDelegate::RequestMediaAccessPermission( |
| 44 const MediaStreamRequest& request, |
| 45 const MediaResponseCallback& callback) { |
| 46 callback.Run(MediaStreamDevices(), |
| 47 MEDIA_DEVICE_INVALID_STATE, |
| 48 scoped_ptr<MediaStreamUI>()); |
| 49 } |
| 50 |
43 } // namespace content | 51 } // namespace content |
OLD | NEW |