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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/UrlUtilities.java

Issue 615433002: Add a resource throttle for sub frame unless scheme of uri is acceptable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/android/url_utilities.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/UrlUtilities.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/UrlUtilities.java b/chrome/android/java/src/org/chromium/chrome/browser/UrlUtilities.java
index ee9df01e3d2a03c1f636454cdc0c2e68cf77076b..132e8b404147e3fdb6fcb80346b5e9465f7b29fc 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/UrlUtilities.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/UrlUtilities.java
@@ -6,6 +6,7 @@ package org.chromium.chrome.browser;
import android.text.TextUtils;
+import org.chromium.base.CalledByNative;
import org.chromium.base.CollectionUtil;
import java.net.URI;
@@ -44,6 +45,7 @@ public class UrlUtilities {
*
* @return True if the URI's scheme is one that ContentView can handle.
*/
+ @CalledByNative
public static boolean isAcceptedScheme(String uri) {
try {
return isAcceptedScheme(new URI(uri));
@@ -66,6 +68,7 @@ public class UrlUtilities {
*
* @return True if the URI's scheme is one that Chrome can download.
*/
+ @CalledByNative
public static boolean isDownloadableScheme(String uri) {
try {
return isDownloadableScheme(new URI(uri));
« no previous file with comments | « no previous file | chrome/browser/android/url_utilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698