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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentSettings.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
« no previous file with comments | « content/browser/android/content_settings.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content/browser/ContentSettings.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java b/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java
index f3b858bc20d4d80ac59c7b846fccea1f38989616..f221b04c8ecb370c1a227fe9636e731b033fb9f6 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java
@@ -87,8 +87,6 @@ public class ContentSettings {
private boolean mJavaScriptCanOpenWindowsAutomatically = false;
private PluginState mPluginState = PluginState.OFF;
private boolean mDomStorageEnabled = false;
- private boolean mAllowFileUrlAccess = true;
- private boolean mAllowContentUrlAccess = true;
// Not accessed by the native side.
private String mDefaultUserAgent = "";
@@ -347,59 +345,6 @@ public class ContentSettings {
return mDisplayZoomControls;
}
- /**
- * Enables or disables file access within ContentView. File access is enabled by
- * default. Note that this enables or disables file system access only.
- * Assets and resources are still accessible using file:///android_asset and
- * file:///android_res.
- */
- public void setAllowFileAccess(boolean allow) {
- assert mCanModifySettings;
- synchronized (mContentSettingsLock) {
- if (mAllowFileUrlAccess != allow) {
- mAllowFileUrlAccess = allow;
- mEventHandler.syncSettingsLocked();
- }
- }
- }
-
- /**
- * Gets whether this ContentView supports file access.
- *
- * @see #setAllowFileAccess
- */
- public boolean getAllowFileAccess() {
- synchronized (mContentSettingsLock) {
- return mAllowFileUrlAccess;
- }
- }
-
- /**
- * Enables or disables content URL access within ContentView. Content URL
- * access allows ContentView to load content from a content provider installed
- * in the system. The default is enabled.
- */
- public void setAllowContentAccess(boolean allow) {
- assert mCanModifySettings;
- synchronized (mContentSettingsLock) {
- if (mAllowContentUrlAccess != allow) {
- mAllowContentUrlAccess = allow;
- mEventHandler.syncSettingsLocked();
- }
- }
- }
-
- /**
- * Gets whether this ContentView supports content URL access.
- *
- * @see #setAllowContentAccess
- */
- public boolean getAllowContentAccess() {
- synchronized (mContentSettingsLock) {
- return mAllowContentUrlAccess;
- }
- }
-
boolean supportsMultiTouchZoom() {
return mSupportZoom && mBuiltInZoomControls;
}
« no previous file with comments | « content/browser/android/content_settings.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698