Lines Matching defs:CacheResult

97     public static class CacheResult {
243 * Get the base directory of the cache. Together with the local path of the CacheResult,
244 * obtained from {@link android.webkit.CacheManager.CacheResult#getLocalPath}, this
354 * Given a URL, returns the corresponding CacheResult if it exists, or null otherwise.
361 * @return The CacheResult for the given URL
366 public static CacheResult getCacheFile(String url,
371 static CacheResult getCacheFile(String url, long postIdentifier,
378 CacheResult result = nativeGetCacheResult(url);
399 CacheResult result = mDataBase.getCache(databaseKey);
449 * Given a url and its full headers, returns CacheResult if a local cache
454 * CacheResult, and is used to supply surrogate responses for URL
456 * @return CacheResult for a given url
463 public static CacheResult createCacheFile(String url, int statusCode,
474 static CacheResult createCacheFile(String url, int statusCode,
500 CacheResult ret = parseHeaders(statusCode, headers, mimeType);
538 public static void saveCacheFile(String url, CacheResult cacheRet) {
543 CacheResult cacheRet) {
552 // new CacheResult object with a non-null output stream ...
553 // - CacheResult objects returned by getCacheFile() have a null output stream.
554 // - new CacheResult objects have a null output stream and no setter is provided.
589 static boolean cleanupCacheFile(CacheResult cacheRet) {
704 private static void setupFiles(String url, CacheResult cacheRet) {
730 CacheResult oldResult = mDataBase.getCache(url);
802 private static CacheResult parseHeaders(int statusCode, Headers headers,
819 CacheResult ret = new CacheResult();
963 private static native CacheResult nativeGetCacheResult(String url);