void ApplicationCacheHost::notifyDOMApplicationCache(EventID id, int total, int done) { if (m_defersEvents) { // Event dispatching is deferred until document.onload has fired. m_deferredEvents.append(DeferredEvent(id, total, done)); return; } dispatchDOMEvent(id, total, done); }
void ApplicationCacheHost::notifyDOMApplicationCache(EventID id, int total, int done) { if (id != PROGRESS_EVENT) InspectorInstrumentation::updateApplicationCacheStatus(m_documentLoader->frame()); if (m_defersEvents) { // Event dispatching is deferred until document.onload has fired. m_deferredEvents.append(DeferredEvent(id, total, done)); return; } dispatchDOMEvent(id, total, done); }
void ApplicationCacheHost::notifyApplicationCache(EventID id, int progressTotal, int progressDone, WebApplicationCacheHost::ErrorReason errorReason, const String& errorURL, int errorStatus, const String& errorMessage) { if (id != PROGRESS_EVENT) InspectorInstrumentation::updateApplicationCacheStatus(m_documentLoader->frame()); if (m_defersEvents) { // Event dispatching is deferred until document.onload has fired. m_deferredEvents.append(DeferredEvent(id, progressTotal, progressDone, errorReason, errorURL, errorStatus, errorMessage)); return; } dispatchDOMEvent(id, progressTotal, progressDone, errorReason, errorURL, errorStatus, errorMessage); }
void ApplicationCacheHost::notifyDOMApplicationCache(EventID id, int total, int done) { #if ENABLE(INSPECTOR) // If host's frame is main frame and inspector frontend is connected, update appcache status. if (id != PROGRESS_EVENT && m_documentLoader->frame()) { Page* page = m_documentLoader->frame()->page(); if (page && page->inspectorController()->applicationCacheAgent() && page->mainFrame() == m_documentLoader->frame()) page->inspectorController()->applicationCacheAgent()->updateApplicationCacheStatus(status()); } #endif if (m_defersEvents) { // Event dispatching is deferred until document.onload has fired. m_deferredEvents.append(DeferredEvent(id, total, done)); return; } dispatchDOMEvent(id, total, done); }