ApplicationCacheHost::CacheInfo ApplicationCacheHost::applicationCacheInfo() { ApplicationCache* cache = applicationCache(); if (!cache || !cache->isComplete()) return CacheInfo(URL(), 0, 0, 0); // FIXME: Add "Creation Time" and "Update Time" to Application Caches. return CacheInfo(cache->manifestResource()->url(), 0, 0, cache->estimatedSizeInStorage()); }
ApplicationCacheHost::CacheInfo ApplicationCacheHost::applicationCacheInfo() { if (!m_internal) return CacheInfo(KURL(), 0, 0, 0); WebKit::WebApplicationCacheHost::CacheInfo webInfo; m_internal->m_outerHost->getAssociatedCacheInfo(&webInfo); return CacheInfo(webInfo.manifestURL, webInfo.creationTime, webInfo.updateTime, webInfo.totalSize); }
ApplicationCacheHost::CacheInfo ApplicationCacheHost::applicationCacheInfo() { if (!m_host) return CacheInfo(KURL(), 0, 0, 0); blink::WebApplicationCacheHost::CacheInfo webInfo; m_host->getAssociatedCacheInfo(&webInfo); return CacheInfo(webInfo.manifestURL, webInfo.creationTime, webInfo.updateTime, webInfo.totalSize); }
void Logger::registerCache(const std::string* iName, const float* iCurrSize, const float* iMaxSize, const int* iCacheMisses) { mCaches[iName] = CacheInfo(iCurrSize, iMaxSize, iCacheMisses); mCacheNames.push_back(iName); mCacheSizes.push_back(iCurrSize); mCacheMaxSizes.push_back(iMaxSize); mCacheMisses.push_back(iCacheMisses); }