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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewClient.java

Issue 52463004: Block media loading when AwSettings.setBlockNetworkLoads is true. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable failed test Created 7 years, 1 month 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 package org.chromium.content.browser; 5 package org.chromium.content.browser;
6 6
7 import android.content.ActivityNotFoundException; 7 import android.content.ActivityNotFoundException;
8 import android.content.Context; 8 import android.content.Context;
9 import android.content.Intent; 9 import android.content.Intent;
10 import android.graphics.RectF; 10 import android.graphics.RectF;
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 public void onExternalVideoSurfaceRequested(int playerId) { 176 public void onExternalVideoSurfaceRequested(int playerId) {
177 } 177 }
178 178
179 public void onGeometryChanged(int playerId, RectF rect) { 179 public void onGeometryChanged(int playerId, RectF rect) {
180 } 180 }
181 181
182 public ContentVideoViewClient getContentVideoViewClient() { 182 public ContentVideoViewClient getContentVideoViewClient() {
183 return null; 183 return null;
184 } 184 }
185
186 /**
187 * Called when BrowserMediaPlayerManager wants to load a media resource.
188 * @param url the URL of media resource to load.
189 * @return true to prevent the resource from being loaded.
190 */
191 public boolean shouldBlockMediaRequest(String url) {
192 return false;
193 }
185 } 194 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698