summaryrefslogtreecommitdiff
path: root/core/java/android/webkit/JniUtil.java
Commit message (Collapse)AuthorAgeFilesLines
* Delete the old WebView.Torne (Richard Coles)2013-10-151-189/+0
| | | | | | | | | Delete all the Java classes used only by the old WebView implementation, and also sections of common classes that were only needed for the old WebView. Bug: 10427705 Change-Id: I02549a71104b35d86d99058c71f43e054730ec7d
* Update references to migrated global settings.Jeff Brown2012-09-251-2/+2
| | | | | | | | | | Fixed one setting that was migrated but not marked deprecated. Removed a hidden setting that is no longer used by the new power manager service. Bug: 7231172 Change-Id: I332f020f876a18d519a1a20598a172f1c98036f7
* Tidy up usage of URLUtil constantsJonathan Dixon2012-03-281-1/+1
| | | | | | | | | | Several of these are duplicated; referring to a single source makes the code paths using them easier to track down. (also removing a spurious import) Bug: 6237833 Change-Id: Ibdacc124c047e37c7f0ced9ecc6f26ae3e6b4326
* Drop support for Android HTTP stackSteve Block2012-02-221-21/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All future releases will use the Chromium HTTP stack and maintaining two HTTP stacks adds maintenance overhead. The Chromium HTTP stack requires V8, but we now use V8 in all build targets (b/5495373), so we can safely drop the Android HTTP stack. LoadListener, HttpAuthHandlerImpl, Network, SslErrorHandlerImpl, WebViewWorker - Android-stack specific, removed StreamLoader, FrameLoader - Require LoadListener, removed CacheLoader, ContentLoader, DataLoader, FileLoader - Extend StreamLoader, removed BrowserFrame - Removed methods that create LoadListener - BrowserFrame.startLoadingResource() is called from native CallbackProxy, WebView - Removed calls to Network methods CacheManager, CookieManager, CookieSyncManager, WebViewCore, WebResourceResponse - Removed other Android-stack specific code JniUtlil - Removed useChromiumHttpStack() WebViewDatabase - Removed all code to create cookies and cache databases for Android HTTP stack See corresponding WebKit change https://android-git.corp.google.com/g/166327. Bug: 5495616 Change-Id: If491675516f6eb187077af4220214bb6e6a8d045
* Part of fix for bug 5584571 Add HTTP request header with app nameKristian Monsen2011-11-091-0/+10
| | | | | | | Need the context to get the package name, adding it method here that can be called from JNI. Change-Id: I530d81d9d922ea73a3f9d185618a5c4cfde0aca7
* WebView part of fix for bug 5307956Kristian Monsen2011-10-191-1/+7
| | | | | | | | JniUtil now returns empty string instead of crashing when the OS can't find/create a cache directory. Have only seen this happen when the whole file system was broken. Change-Id: I867017d62dce83cae3e83959eac9e974433bbdc9
* Cleanup for bug 5278763Kristian Monsen2011-09-121-9/+7
| | | | | | | | Variable is not needed, and removing unneeded check Also throwing an exception if sContext gets set to null. Change-Id: Ic61ba4c88a162eb730e166f0e9f477e809b51f42
* Preload libchromium_net in addition to libwebcore.Ben Murdoch2011-09-011-0/+1
| | | | | | | | To improve WebView app startup time, preload libchromium_net which was recently split from libwebcore into its own shared library. Bug: 5112647 Change-Id: I4417d5a4f8c7783e8fa7b8eaddf89aaeb3693fac
* Add a function to query the available memory on the device.Ben Murdoch2011-08-121-0/+12
| | | | | | | | This function is called over JNI to determine wheter a particular size of memory allocation will leave us in a low memory state. Bug: 5142892 Change-Id: I3d0f85075497c2a374cd866b0223eecaaa4b5f46
* Add a System.Secure setting for the Autofill server URL.Ben Murdoch2011-07-211-3/+12
| | | | | | | | | | | The Autofill server is now configured as a system setting. Add that setting and a method to be called over JNI from the chrome stack to retrieve it. See also external/chromium change I3a22ae42402f52207eee2d0d9df64700cb7c9f45 Bug: 4515820 Change-Id: I0aa85c5bef834b1120baaabdc2dd2e4e607a63b6
* JniUtil depends on webcore native library and should not depend on others to ↵Brian Carlstrom2011-06-221-0/+4
| | | | | | | | load it Bug: 4584468 Change-Id: Ib553cda843669d40cc52ff0bc84bea2c626c5045
* Enable platform notifications for chrome http stackKristian Monsen2011-05-101-0/+6
| | | | Change-Id: I386aef25010c95b15fb6a8edc96e59e538540306
* Add a static method to get the InputStream of a content URLKristian Monsen2011-01-121-2/+31
| | | | | | Part of fix for bug 2862096 Change-Id: I91f7e7aa1f0fef10b1617e91a167594d4de41b71
* Adding a static method to get the size of a content urlKristian Monsen2011-01-121-0/+45
| | | | | | Part of fixes for bug 2862096 Change-Id: I86f1255c17efb367fac54b69b8de220d2874fc70
* Only store Application contextKristian Monsen2010-12-231-1/+1
| | | | | | | | | Context from an Activity are not meant to be store past the lifetime of the Activity. Fix for bug 3306898 Change-Id: Ib2f12cbdc3ec8aa0a6adf4770e6be4569fa6402c
* Fix for crash in third-party appKristian Monsen2010-12-161-3/+10
| | | | | | | | Dolphin crashed when sContext.getCacheDir got called too early. This was because the let the user choose to use sdcard or internal memory, and the choice was not yet made. Change-Id: I8b3ba260c26233c6459efbb9e5e50fad2260a24d
* Move useChromiumHttpStack() from CookieManager to JniUtil.Iain Merrick2010-12-101-0/+18
| | | | | | | | | | | | This is a generally useful method, not specific to CookieManager. I want to use it to modify the behaviour of CacheManager when we're using the Chrome HTTP stack. Corresponding C++ changes in I78a92cb2 BUG=3270236 Change-Id: I56b0ddcaa93ef340f4ffc3578486c3c96316f2ec
* Move getDatabaseDirectory and getCacheDirectory to a new classKristian Monsen2010-11-171-0/+61
The reason for this is that the CookieSyncManager might not be initialized right after a webview is created since the initialization is done with a message. If someone creates a webview and tries to access a cookie right afterwards that would cause an unintended exception. This requires a change in external/webkit Bug 3172863 Change-Id: I4f4f162253e2af09f63ee582bfce9f75ccf4037b