| 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 return false; | 201 return false; |
| 202 } | 202 } |
| 203 | 203 |
| 204 std::string WebContentsDelegate::GetDefaultMediaDeviceID( | 204 std::string WebContentsDelegate::GetDefaultMediaDeviceID( |
| 205 WebContents* web_contents, | 205 WebContents* web_contents, |
| 206 MediaStreamType type) { | 206 MediaStreamType type) { |
| 207 return std::string(); | 207 return std::string(); |
| 208 } | 208 } |
| 209 | 209 |
| 210 #if defined(OS_ANDROID) | 210 #if defined(OS_ANDROID) |
| 211 void WebContentsDelegate::RequestMediaDecodePermission( | |
| 212 WebContents* web_contents, | |
| 213 const base::Callback<void(bool)>& callback) { | |
| 214 callback.Run(false); | |
| 215 } | |
| 216 | |
| 217 base::android::ScopedJavaLocalRef<jobject> | 211 base::android::ScopedJavaLocalRef<jobject> |
| 218 WebContentsDelegate::GetContentVideoViewEmbedder() { | 212 WebContentsDelegate::GetContentVideoViewEmbedder() { |
| 219 return base::android::ScopedJavaLocalRef<jobject>(); | 213 return base::android::ScopedJavaLocalRef<jobject>(); |
| 220 } | 214 } |
| 221 | 215 |
| 222 bool WebContentsDelegate::ShouldBlockMediaRequest(const GURL& url) { | 216 bool WebContentsDelegate::ShouldBlockMediaRequest(const GURL& url) { |
| 223 return false; | 217 return false; |
| 224 } | 218 } |
| 225 #endif | 219 #endif |
| 226 | 220 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 | 274 |
| 281 bool WebContentsDelegate::ShouldAllowRunningInsecureContent( | 275 bool WebContentsDelegate::ShouldAllowRunningInsecureContent( |
| 282 WebContents* web_contents, | 276 WebContents* web_contents, |
| 283 bool allowed_per_prefs, | 277 bool allowed_per_prefs, |
| 284 const url::Origin& origin, | 278 const url::Origin& origin, |
| 285 const GURL& resource_url) { | 279 const GURL& resource_url) { |
| 286 return allowed_per_prefs; | 280 return allowed_per_prefs; |
| 287 } | 281 } |
| 288 | 282 |
| 289 } // namespace content | 283 } // namespace content |
| OLD | NEW |