Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: content/public/browser/web_contents_delegate.cc

Issue 2794283003: Remove MediaThrottler and MediaThrottleInfoBar (Closed)
Patch Set: Deleted Java code Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698