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

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: 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
« no previous file with comments | « no previous file | android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698