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 30 matching lines...) Expand all Loading... |
41 } | 41 } |
42 | 42 |
43 void BrowserPluginGuestDelegate::RequestMediaAccessPermission( | 43 void BrowserPluginGuestDelegate::RequestMediaAccessPermission( |
44 const MediaStreamRequest& request, | 44 const MediaStreamRequest& request, |
45 const MediaResponseCallback& callback) { | 45 const MediaResponseCallback& callback) { |
46 callback.Run(MediaStreamDevices(), | 46 callback.Run(MediaStreamDevices(), |
47 MEDIA_DEVICE_INVALID_STATE, | 47 MEDIA_DEVICE_INVALID_STATE, |
48 scoped_ptr<MediaStreamUI>()); | 48 scoped_ptr<MediaStreamUI>()); |
49 } | 49 } |
50 | 50 |
| 51 void BrowserPluginGuestDelegate::CanDownload( |
| 52 const std::string& request_method, |
| 53 const GURL& url, |
| 54 const base::Callback<void(bool)>& callback) { |
| 55 callback.Run(true); |
| 56 } |
| 57 |
| 58 |
51 } // namespace content | 59 } // namespace content |
OLD | NEW |