bool ResourceHandle::start(Frame* frame) { DocumentLoader* docLoader = frame->loader()->activeDocumentLoader(); MainResourceLoader* mainLoader = docLoader->mainResourceLoader(); bool isMainResource = mainLoader && (mainLoader->handle() == this); PassRefPtr<ResourceLoaderAndroid> loader = ResourceLoaderAndroid::start(this, d->m_request, frame->loader()->client(), isMainResource, false); if (loader) { d->m_loader = loader; return true; } return false; }
CURL* curlHandle(const Document* document) { if (document == NULL) return NULL; DocumentLoader* docLoader = document->loader(); if (docLoader == NULL) return NULL; ResourceLoader* resLoader = docLoader->mainResourceLoader(); if (resLoader == NULL) return NULL; ResourceHandle* handle = resLoader->handle(); if (handle == NULL) return NULL; ResourceHandleInternal* d = handle->getInternal(); if (d == NULL) return NULL; return d->m_handle; }