OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/web_contents_delegate.h" | 5 #include "content/public/browser/web_contents_delegate.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 | 194 |
195 bool WebContentsDelegate::CheckMediaAccessPermission( | 195 bool WebContentsDelegate::CheckMediaAccessPermission( |
196 WebContents* web_contents, | 196 WebContents* web_contents, |
197 const GURL& security_origin, | 197 const GURL& security_origin, |
198 MediaStreamType type) { | 198 MediaStreamType type) { |
199 LOG(ERROR) << "WebContentsDelegate::CheckMediaAccessPermission: " | 199 LOG(ERROR) << "WebContentsDelegate::CheckMediaAccessPermission: " |
200 << "Not supported."; | 200 << "Not supported."; |
201 return false; | 201 return false; |
202 } | 202 } |
203 | 203 |
| 204 std::string WebContentsDelegate::GetDefaultMediaDeviceId( |
| 205 WebContents* web_contents, |
| 206 MediaStreamType type) { |
| 207 return std::string(); |
| 208 } |
| 209 |
204 #if defined(OS_ANDROID) | 210 #if defined(OS_ANDROID) |
205 void WebContentsDelegate::RequestMediaDecodePermission( | 211 void WebContentsDelegate::RequestMediaDecodePermission( |
206 WebContents* web_contents, | 212 WebContents* web_contents, |
207 const base::Callback<void(bool)>& callback) { | 213 const base::Callback<void(bool)>& callback) { |
208 callback.Run(false); | 214 callback.Run(false); |
209 } | 215 } |
210 | 216 |
211 base::android::ScopedJavaLocalRef<jobject> | 217 base::android::ScopedJavaLocalRef<jobject> |
212 WebContentsDelegate::GetContentVideoViewEmbedder() { | 218 WebContentsDelegate::GetContentVideoViewEmbedder() { |
213 return base::android::ScopedJavaLocalRef<jobject>(); | 219 return base::android::ScopedJavaLocalRef<jobject>(); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 void WebContentsDelegate::ShowCertificateViewerInDevTools( | 272 void WebContentsDelegate::ShowCertificateViewerInDevTools( |
267 WebContents* web_contents, | 273 WebContents* web_contents, |
268 scoped_refptr<net::X509Certificate> certificate) { | 274 scoped_refptr<net::X509Certificate> certificate) { |
269 } | 275 } |
270 | 276 |
271 void WebContentsDelegate::RequestAppBannerFromDevTools( | 277 void WebContentsDelegate::RequestAppBannerFromDevTools( |
272 content::WebContents* web_contents) { | 278 content::WebContents* web_contents) { |
273 } | 279 } |
274 | 280 |
275 } // namespace content | 281 } // namespace content |
OLD | NEW |