diff options
| author | Tao Bai <michaelbai@google.com> | 2014-04-15 17:37:11 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-04-15 17:37:12 +0000 |
| commit | e5b7c95b8a247e9962710dca127c56a78d4faca5 (patch) | |
| tree | f9955262d43729015a057d9193e29da654903039 /core/java/android/webkit/WebView.java | |
| parent | 14a6d6826cc6253ecd036281a0ede597c8b5bf75 (diff) | |
| parent | 672b99c8f80177784053074d178fdea6750e82df (diff) | |
| download | frameworks_base-e5b7c95b8a247e9962710dca127c56a78d4faca5.zip frameworks_base-e5b7c95b8a247e9962710dca127c56a78d4faca5.tar.gz frameworks_base-e5b7c95b8a247e9962710dca127c56a78d4faca5.tar.bz2 | |
Merge "Define new general permission APIs for webview."
Diffstat (limited to 'core/java/android/webkit/WebView.java')
| -rw-r--r-- | core/java/android/webkit/WebView.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 85168fd..62fbbc4 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -25,6 +25,7 @@ import android.graphics.Paint; import android.graphics.Picture; import android.graphics.Rect; import android.graphics.drawable.Drawable; +import android.net.Uri; import android.net.http.SslCertificate; import android.os.Build; import android.os.Bundle; @@ -1640,6 +1641,21 @@ public class WebView extends AbsoluteLayout } /** + * Preauthorize the given origin to access resources. + * This authorization only valid for this WebView instance life cycle and + * will not retained. + * + * @param origin the origin authorized to access resources + * @param resources the resource authorized to be accessed by origin. + * + * @hide + */ + public void preauthorizePermission(Uri origin, long resources) { + checkThread(); + mProvider.preauthorizePermission(origin, resources); + } + + /** * Sets the Picture listener. This is an interface used to receive * notifications of a new Picture. * |
