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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.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
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/ContentViewClient.java ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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.app.Activity; 7 import android.app.Activity;
8 import android.app.SearchManager; 8 import android.app.SearchManager;
9 import android.content.ContentResolver; 9 import android.content.ContentResolver;
10 import android.content.Context; 10 import android.content.Context;
(...skipping 3203 matching lines...) Expand 10 before | Expand all | Expand 10 after
3214 } 3214 }
3215 3215
3216 private native int nativeInit(boolean hardwareAccelerated, int webContentsPt r, 3216 private native int nativeInit(boolean hardwareAccelerated, int webContentsPt r,
3217 long viewAndroidPtr, long windowAndroidPtr); 3217 long viewAndroidPtr, long windowAndroidPtr);
3218 3218
3219 @CalledByNative 3219 @CalledByNative
3220 private ContentVideoViewClient getContentVideoViewClient() { 3220 private ContentVideoViewClient getContentVideoViewClient() {
3221 return mContentViewClient.getContentVideoViewClient(); 3221 return mContentViewClient.getContentVideoViewClient();
3222 } 3222 }
3223 3223
3224 @CalledByNative
3225 private boolean shouldBlockMediaRequest(String url) {
3226 return mContentViewClient.shouldBlockMediaRequest(url);
3227 }
3228
3224 private native void nativeOnJavaContentViewCoreDestroyed(int nativeContentVi ewCoreImpl); 3229 private native void nativeOnJavaContentViewCoreDestroyed(int nativeContentVi ewCoreImpl);
3225 3230
3226 private native void nativeLoadUrl( 3231 private native void nativeLoadUrl(
3227 int nativeContentViewCoreImpl, 3232 int nativeContentViewCoreImpl,
3228 String url, 3233 String url,
3229 int loadUrlType, 3234 int loadUrlType,
3230 int transitionType, 3235 int transitionType,
3231 int uaOverrideOption, 3236 int uaOverrideOption,
3232 String extraHeaders, 3237 String extraHeaders,
3233 byte[] postData, 3238 byte[] postData,
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
3395 3400
3396 private native void nativeSetAccessibilityEnabled( 3401 private native void nativeSetAccessibilityEnabled(
3397 int nativeContentViewCoreImpl, boolean enabled); 3402 int nativeContentViewCoreImpl, boolean enabled);
3398 3403
3399 private native void nativeSendSingleTapUma(int nativeContentViewCoreImpl, 3404 private native void nativeSendSingleTapUma(int nativeContentViewCoreImpl,
3400 int type, int count); 3405 int type, int count);
3401 3406
3402 private native void nativeSendActionAfterDoubleTapUma(int nativeContentViewC oreImpl, 3407 private native void nativeSendActionAfterDoubleTapUma(int nativeContentViewC oreImpl,
3403 int type, boolean hasDelay, int count); 3408 int type, boolean hasDelay, int count);
3404 } 3409 }
OLDNEW
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/ContentViewClient.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698