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 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/process/kill.h" | 9 #include "base/process/kill.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 // Asks permission to use the camera and/or microphone. If permission is | 105 // Asks permission to use the camera and/or microphone. If permission is |
106 // granted, a call should be made to |callback| with the devices. If the | 106 // granted, a call should be made to |callback| with the devices. If the |
107 // request is denied, a call should be made to |callback| with an empty list | 107 // request is denied, a call should be made to |callback| with an empty list |
108 // of devices. |request| has the details of the request (e.g. which of audio | 108 // of devices. |request| has the details of the request (e.g. which of audio |
109 // and/or video devices are requested, and lists of available devices). | 109 // and/or video devices are requested, and lists of available devices). |
110 virtual void RequestMediaAccessPermission( | 110 virtual void RequestMediaAccessPermission( |
111 const MediaStreamRequest& request, | 111 const MediaStreamRequest& request, |
112 const MediaResponseCallback& callback); | 112 const MediaResponseCallback& callback); |
113 | 113 |
| 114 virtual void CanDownload(const std::string& request_method, |
| 115 const GURL& url, |
| 116 const base::Callback<void(bool)>& callback); |
114 }; | 117 }; |
115 | 118 |
116 } // namespace content | 119 } // namespace content |
117 | 120 |
118 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ | 121 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ |
OLD | NEW |