| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 << "Not supported."; | 201 << "Not supported."; |
| 202 return false; | 202 return false; |
| 203 } | 203 } |
| 204 | 204 |
| 205 #if defined(OS_ANDROID) | 205 #if defined(OS_ANDROID) |
| 206 void WebContentsDelegate::RequestMediaDecodePermission( | 206 void WebContentsDelegate::RequestMediaDecodePermission( |
| 207 WebContents* web_contents, | 207 WebContents* web_contents, |
| 208 const base::Callback<void(bool)>& callback) { | 208 const base::Callback<void(bool)>& callback) { |
| 209 callback.Run(false); | 209 callback.Run(false); |
| 210 } | 210 } |
| 211 |
| 212 base::android::ScopedJavaLocalRef<jobject> |
| 213 WebContentsDelegate::GetContentVideoViewEmbedder() { |
| 214 return base::android::ScopedJavaLocalRef<jobject>(); |
| 215 } |
| 216 |
| 217 bool WebContentsDelegate::ShouldBlockMediaRequest(const GURL& url) { |
| 218 return false; |
| 219 } |
| 211 #endif | 220 #endif |
| 212 | 221 |
| 213 bool WebContentsDelegate::RequestPpapiBrokerPermission( | 222 bool WebContentsDelegate::RequestPpapiBrokerPermission( |
| 214 WebContents* web_contents, | 223 WebContents* web_contents, |
| 215 const GURL& url, | 224 const GURL& url, |
| 216 const base::FilePath& plugin_path, | 225 const base::FilePath& plugin_path, |
| 217 const base::Callback<void(bool)>& callback) { | 226 const base::Callback<void(bool)>& callback) { |
| 218 return false; | 227 return false; |
| 219 } | 228 } |
| 220 | 229 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 void WebContentsDelegate::ShowCertificateViewerInDevTools( | 267 void WebContentsDelegate::ShowCertificateViewerInDevTools( |
| 259 WebContents* web_contents, | 268 WebContents* web_contents, |
| 260 scoped_refptr<net::X509Certificate> certificate) { | 269 scoped_refptr<net::X509Certificate> certificate) { |
| 261 } | 270 } |
| 262 | 271 |
| 263 void WebContentsDelegate::RequestAppBannerFromDevTools( | 272 void WebContentsDelegate::RequestAppBannerFromDevTools( |
| 264 content::WebContents* web_contents) { | 273 content::WebContents* web_contents) { |
| 265 } | 274 } |
| 266 | 275 |
| 267 } // namespace content | 276 } // namespace content |
| OLD | NEW |