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