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

Unified Diff: android_webview/browser/aw_contents_io_thread_client.h

Issue 11090003: [Android] Upstream WebView.allow{Content|File}Access implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comments in AwSettings.java 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/browser/aw_contents_io_thread_client.h
diff --git a/android_webview/browser/aw_contents_io_thread_client.h b/android_webview/browser/aw_contents_io_thread_client.h
index ac55035fb7894b7508478114ded0eac71c453d07..659be10b67ca15ddc0a978fd0b0dfb705b7e7cd3 100644
--- a/android_webview/browser/aw_contents_io_thread_client.h
+++ b/android_webview/browser/aw_contents_io_thread_client.h
@@ -45,6 +45,14 @@ class AwContentsIoThreadClient {
virtual scoped_ptr<InterceptedRequestData> ShouldInterceptRequest(
const net::URLRequest* request) = 0;
+ // Retrieve the AllowContentAccess setting value of this AwContents.
+ // This method is called on the IO thread only.
+ virtual bool ShouldBlockContentUrls() const = 0;
+
+ // Retrieve the AllowFileAccess setting value of this AwContents.
+ // This method is called on the IO thread only.
+ virtual bool ShouldBlockFileUrls() const = 0;
+
// Retrieve the BlockNetworkLoads setting value of this AwContents.
// This method is called on the IO thread only.
virtual bool ShouldBlockNetworkLoads() const = 0;

Powered by Google App Engine
This is Rietveld 408576698