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/callback.h" | 7 #include "base/callback.h" |
8 | 8 |
9 namespace content { | 9 namespace content { |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 } | 26 } |
27 | 27 |
28 void BrowserPluginGuestDelegate::RequestMediaAccessPermission( | 28 void BrowserPluginGuestDelegate::RequestMediaAccessPermission( |
29 const MediaStreamRequest& request, | 29 const MediaStreamRequest& request, |
30 const MediaResponseCallback& callback) { | 30 const MediaResponseCallback& callback) { |
31 callback.Run(MediaStreamDevices(), | 31 callback.Run(MediaStreamDevices(), |
32 MEDIA_DEVICE_INVALID_STATE, | 32 MEDIA_DEVICE_INVALID_STATE, |
33 scoped_ptr<MediaStreamUI>()); | 33 scoped_ptr<MediaStreamUI>()); |
34 } | 34 } |
35 | 35 |
| 36 void BrowserPluginGuestDelegate::CanDownload( |
| 37 const std::string& request_method, |
| 38 const GURL& url, |
| 39 const base::Callback<void(bool)>& callback) { |
| 40 callback.Run(true); |
| 41 } |
| 42 |
36 } // namespace content | 43 } // namespace content |
OLD | NEW |