| Index: android_webview/java/src/org/chromium/android_webview/AwSettings.java
|
| diff --git a/android_webview/java/src/org/chromium/android_webview/AwSettings.java b/android_webview/java/src/org/chromium/android_webview/AwSettings.java
|
| index 8b5ca999c069f6a391c379d372ef5a0d51f9215c..7606e841e44ae886881b3587f48b48ac358a6187 100644
|
| --- a/android_webview/java/src/org/chromium/android_webview/AwSettings.java
|
| +++ b/android_webview/java/src/org/chromium/android_webview/AwSettings.java
|
| @@ -7,6 +7,7 @@ package org.chromium.android_webview;
|
| import android.content.Context;
|
| import android.content.pm.PackageManager;
|
| import android.os.Process;
|
| +import android.webkit.WebSettings;
|
|
|
| /**
|
| * Stores Android WebView specific settings that does not need to be synced to WebKit.
|
| @@ -23,6 +24,7 @@ public class AwSettings {
|
| private boolean mBlockNetworkLoads; // Default depends on permission of embedding APK.
|
| private boolean mAllowContentUrlAccess = true;
|
| private boolean mAllowFileUrlAccess = true;
|
| + private int mCacheMode = WebSettings.LOAD_DEFAULT;
|
|
|
| public AwSettings(Context context) {
|
| mContext = context;
|
| @@ -96,4 +98,24 @@ public class AwSettings {
|
| return mAllowContentUrlAccess;
|
| }
|
| }
|
| +
|
| + /**
|
| + * See {@link android.webkit.WebSettings#setCacheMode}.
|
| + */
|
| + public void setCacheMode(int mode) {
|
| + synchronized (mAwSettingsLock) {
|
| + if (mCacheMode != mode) {
|
| + mCacheMode = mode;
|
| + }
|
| + }
|
| + }
|
| +
|
| + /**
|
| + * See {@link android.webkit.WebSettings#getCacheMode}.
|
| + */
|
| + public int getCacheMode() {
|
| + synchronized (mAwSettingsLock) {
|
| + return mCacheMode;
|
| + }
|
| + }
|
| }
|
|
|