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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 11090003: [Android] Upstream WebView.allow{Content|File}Access implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Workaround to remove dependency on https://codereview.chromium.org/11030051 Created 8 years, 2 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
Index: android_webview/java/src/org/chromium/android_webview/AwContents.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
index 377e568711bfa966d697b8de9953da2ed4a4fd95..b7995fdf68a686973fd5a26919fcf9631a05b567 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -75,6 +75,18 @@ public class AwContents {
// Called on the IO thread.
@Override
+ public boolean shouldBlockContentUrls() {
+ return !AwContents.this.mSettings.getAllowContentAccess();
+ }
+
+ // Called on the IO thread.
+ @Override
+ public boolean shouldBlockFileUrls() {
+ return !AwContents.this.mSettings.getAllowFileAccess();
+ }
+
+ // Called on the IO thread.
+ @Override
public boolean shouldBlockNetworkLoads() {
return AwContents.this.mSettings.getBlockNetworkLoads();
}

Powered by Google App Engine
This is Rietveld 408576698