summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-08-24 10:56:10 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-08-24 10:56:10 -0700
commitba9f5f3f6b0e499708fb9aa05f30f4a2e7d8b616 (patch)
tree69fb69d9c7688541ab74dd8f9168cfad3f5ddafc
parentb321625b859f2db4407810929ca6fa6074f65403 (diff)
parent9d3273f62288fa54536a3928383588398ca2d029 (diff)
downloadframeworks_base-ba9f5f3f6b0e499708fb9aa05f30f4a2e7d8b616.zip
frameworks_base-ba9f5f3f6b0e499708fb9aa05f30f4a2e7d8b616.tar.gz
frameworks_base-ba9f5f3f6b0e499708fb9aa05f30f4a2e7d8b616.tar.bz2
Merge change 22440 into eclair
* changes: Java-side changes to persist Geolocation permissions between browser sessions.
-rw-r--r--core/java/android/webkit/WebSettings.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebSettings.java b/core/java/android/webkit/WebSettings.java
index 4bdd488..e8b2702 100644
--- a/core/java/android/webkit/WebSettings.java
+++ b/core/java/android/webkit/WebSettings.java
@@ -172,6 +172,7 @@ public class WebSettings {
private long mAppCacheMaxSize = Long.MAX_VALUE;
private String mAppCachePath = "";
private String mDatabasePath = "";
+ private String mGeolocationDatabasePath = "";
// Don't need to synchronize the get/set methods as they
// are basic types, also none of these values are used in
// native WebCore code.
@@ -978,6 +979,21 @@ public class WebSettings {
}
/**
+ * Set the path where the Geolocation permissions database should be saved.
+ * This will update WebCore when the Sync runs in the C++ side.
+ * @param databasePath String path to the directory where the Geolocation
+ * permissions database should be saved. May be the empty string but
+ * should never be null.
+ * @hide pending api council approval
+ */
+ public synchronized void setGeolocationDatabasePath(String databasePath) {
+ if (databasePath != null && !databasePath.equals(mDatabasePath)) {
+ mGeolocationDatabasePath = databasePath;
+ postSync();
+ }
+ }
+
+ /**
* Tell the WebView to enable Application Caches API.
* @param flag True if the WebView should enable Application Caches.
* @hide pending api council approval