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

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

Issue 1155713005: Use a resource throttle to implement shouldOverrideUrlLoading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add flag showing that shouldOverrideUrl cancelled the navigation Created 5 years, 6 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 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.annotation.SuppressLint; 7 import android.annotation.SuppressLint;
8 import android.annotation.TargetApi; 8 import android.annotation.TargetApi;
9 import android.app.Activity; 9 import android.app.Activity;
10 import android.app.SearchManager; 10 import android.app.SearchManager;
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 // Using a weak reference avoids cycles that might prevent GC of WebView 's WebContents. 302 // Using a weak reference avoids cycles that might prevent GC of WebView 's WebContents.
303 private final WeakReference<ContentViewCore> mWeakContentViewCore; 303 private final WeakReference<ContentViewCore> mWeakContentViewCore;
304 304
305 ContentViewWebContentsObserver(ContentViewCore contentViewCore) { 305 ContentViewWebContentsObserver(ContentViewCore contentViewCore) {
306 super(contentViewCore.getWebContents()); 306 super(contentViewCore.getWebContents());
307 mWeakContentViewCore = new WeakReference<ContentViewCore>(contentVie wCore); 307 mWeakContentViewCore = new WeakReference<ContentViewCore>(contentVie wCore);
308 } 308 }
309 309
310 @Override 310 @Override
311 public void didFailLoad(boolean isProvisionalLoad, boolean isMainFrame, int errorCode, 311 public void didFailLoad(boolean isProvisionalLoad, boolean isMainFrame, int errorCode,
312 String description, String failingUrl) { 312 String description, String failingUrl, boolean wasIgnoredByHandl er) {
313 // Navigation that fails the provisional load will have the strong b inding removed 313 // Navigation that fails the provisional load will have the strong b inding removed
314 // here. One for which the provisional load is commited will have th e strong binding 314 // here. One for which the provisional load is commited will have th e strong binding
315 // removed in navigationEntryCommitted() below. 315 // removed in navigationEntryCommitted() below.
316 if (isProvisionalLoad) determinedProcessVisibility(); 316 if (isProvisionalLoad) determinedProcessVisibility();
317 } 317 }
318 318
319 @Override 319 @Override
320 public void didNavigateMainFrame(String url, String baseUrl, 320 public void didNavigateMainFrame(String url, String baseUrl,
321 boolean isNavigationToDifferentPage, boolean isFragmentNavigatio n, int statusCode) { 321 boolean isNavigationToDifferentPage, boolean isFragmentNavigatio n, int statusCode) {
322 if (!isNavigationToDifferentPage) return; 322 if (!isNavigationToDifferentPage) return;
(...skipping 2892 matching lines...) Expand 10 before | Expand all | Expand 10 after
3215 String textTrackFontVariant, String textTrackTextColor, String textT rackTextShadow, 3215 String textTrackFontVariant, String textTrackTextColor, String textT rackTextShadow,
3216 String textTrackTextSize); 3216 String textTrackTextSize);
3217 3217
3218 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp l, 3218 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp l,
3219 int x, int y, int w, int h); 3219 int x, int y, int w, int h);
3220 3220
3221 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl , boolean opaque); 3221 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl , boolean opaque);
3222 3222
3223 private native void nativeSetDrawsContent(long nativeContentViewCoreImpl, bo olean draws); 3223 private native void nativeSetDrawsContent(long nativeContentViewCoreImpl, bo olean draws);
3224 } 3224 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698