summaryrefslogtreecommitdiff
path: root/core/java/android/webkit/StreamLoader.java
Commit message (Collapse)AuthorAgeFilesLines
* Drop support for Android HTTP stackSteve Block2012-02-221-204/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add a new WebCoreWorker thread to handle the tasksGrace Kloba2010-03-011-45/+0
| | | | | | | | | | | | | | | | | | | | | | | which should not block either UI or WebKit. It handles local file access, cache access and trim cache. Move createCache, saveCache and most of getCache out of WebCore thread so that slow IO and database will not affect loading performance. getCache can be still called from WebCore thread in the uncommon cases like redirect and POST validation. Move cache ticker from WebCore thread to WebViewWorkerThread. Move setCookie from WebCore thread to WebViewWorkerThread. Remove the unreferenced files in the cache directory while trim cache. Confirmed with our SQL expert, Vasu, there is no need to wrap clearCache with end/startTransaction any more. http://b/issue?id=2414792 http://b/issue?id=2475242
* Enable StreamLoader to be loaded in a separate thread.Grace Kloba2010-02-041-32/+77
| | | | | | | | | | | | | | | | | | Move ContentLoader and FileLoader to this new way as they involves IO. Will work on CacheLoader later. Change StreamLoader to contain a Handler instead of derive from a Handler so that the Handler can be created in the thread where load() is called. Rename StreamLoader's old "LoadListener mHandler" to mLoadListener. Remove unused import and unreachable exception. Fix http://b/issue?id=2158613 This improved page_cycler performance in moz/intl by 10-30% as we are not blocked by IO any more.
* Check for null data after decoding a data: url.Patrick Scott2010-02-021-1/+4
| | | | | | | Refactor StreamLoader and friends since they all use a Context. Change the successful status to 200 instead of 0. Not sure why it was ever 0. Bug: 2364322
* The new webkit won't keep RAM cache if http header has "no-store". So removeGrace Kloba2009-08-211-1/+0
| | | | it from StreamLoader. And fix the code where we only want to cache network result.
* Centralized debug flags and enabled more granular control of debug settings.Derek Sollenberger2009-06-031-1/+1
|
* Parse the base64 data before creating the data stream.Patrick Scott2009-04-291-1/+5
| | | | | | | | | | | | | This will ensure that we do not parse the data in chunks when passing it to the LoadListener. Decoding in chunks can lead to incomplete sequences which will lead to a failed decode. Check for a cancelled LoadListener in StreamLoader and stop the load. This is just a shortcut for downloaded or failed resources. Cleanup some of the LoadListener code around resetting a few member variables. Reset them in the status callback since that indicates a new response from the server (or StreamLoader).
* Remove references to android.util.ConfigDave Bort2009-04-131-2/+1
| | | | | | | The semantics of Config.DEBUG will be changing soon, and all other Config.* fields will become deprecated/hidden. BUG=1780938
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+199
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-199/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+199