Home
last modified time | relevance | path

Searched refs:cachedResource (Results 1 – 17 of 17) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/core/inspector/
DInspectorPageAgent.cpp131 static bool prepareResourceBuffer(Resource* cachedResource, bool* hasZeroSize) in prepareResourceBuffer() argument
134 if (!cachedResource) in prepareResourceBuffer()
137 if (cachedResource->dataBufferingPolicy() == DoNotBufferData) in prepareResourceBuffer()
141 if (!cachedResource->encodedSize()) { in prepareResourceBuffer()
146 if (cachedResource->isPurgeable()) { in prepareResourceBuffer()
153 if (!cachedResource->lock()) in prepareResourceBuffer()
160 static bool hasTextContent(Resource* cachedResource) in hasTextContent() argument
162 InspectorPageAgent::ResourceType type = InspectorPageAgent::cachedResourceType(*cachedResource); in hasTextContent()
180 bool InspectorPageAgent::cachedResourceContent(Resource* cachedResource, String* result, bool* base… in cachedResourceContent() argument
183 bool prepared = prepareResourceBuffer(cachedResource, &hasZeroSize); in cachedResourceContent()
[all …]
DInspectorResourceAgent.cpp364 Resource* cachedResource = 0; in didReceiveResourceResponse() local
366 cachedResource = resourceLoader->cachedResource(); in didReceiveResourceResponse()
367 if (!cachedResource || cachedResource->type() == Resource::MainResource) in didReceiveResourceResponse()
368 cachedResource = InspectorPageAgent::cachedResource(loader->frame(), response.url()); in didReceiveResourceResponse()
370 if (cachedResource) { in didReceiveResourceResponse()
373 …resourceResponse->setString(TypeBuilder::Network::Response::MimeType, cachedResource->response().m… in didReceiveResourceResponse()
374 m_resourcesData->addResource(requestId, cachedResource); in didReceiveResourceResponse()
377 …InspectorPageAgent::ResourceType type = cachedResource ? InspectorPageAgent::cachedResourceType(*c… in didReceiveResourceResponse()
392 if (isNotModified && cachedResource && cachedResource->encodedSize()) in didReceiveResourceResponse()
393 didReceiveData(frame, identifier, 0, cachedResource->encodedSize(), 0); in didReceiveResourceResponse()
[all …]
DNetworkResourcesData.cpp255 void NetworkResourcesData::addResource(const String& requestId, Resource* cachedResource) in addResource() argument
260 resourceData->setResource(cachedResource); in addResource()
304 Vector<String> NetworkResourcesData::removeResource(Resource* cachedResource) in removeResource() argument
311 if (resourceData->cachedResource() == cachedResource) { in removeResource()
DNetworkResourcesData.h120 Resource* cachedResource() const { return m_cachedResource; } in cachedResource() function
121 void setResource(Resource* cachedResource) { m_cachedResource = cachedResource; } in setResource() argument
DInspectorInstrumentation.cpp118 void willDestroyResourceImpl(Resource* cachedResource) in willDestroyResourceImpl() argument
126 inspectorResourceAgent->willDestroyResource(cachedResource); in willDestroyResourceImpl()
DInspectorPageAgent.h92 static Resource* cachedResource(LocalFrame*, const KURL&);
DInspectorInstrumentation.idl356 void willDestroyResource(Resource* cachedResource);
/external/chromium_org/third_party/WebKit/Source/core/fetch/
DMemoryCacheTest.cpp125 ResourcePtr<FakeResource> cachedResource = in TEST_F() local
127 cachedResource->fakeEncodedSize(resourceSize1); in TEST_F()
131 memoryCache()->add(cachedResource.get()); in TEST_F()
132 ASSERT_EQ(cachedResource->size(), memoryCache()->deadSize()); in TEST_F()
136 cachedResource->addClient(&client); in TEST_F()
138 ASSERT_EQ(cachedResource->size(), memoryCache()->liveSize()); in TEST_F()
140 cachedResource->fakeEncodedSize(resourceSize2); in TEST_F()
142 ASSERT_EQ(cachedResource->size(), memoryCache()->liveSize()); in TEST_F()
156 Resource* cachedResource = in TEST_F() local
159 cachedResource->appendData(data, 3); in TEST_F()
[all …]
DResourceLoader.h63 Resource* cachedResource() { return m_resource; } in cachedResource() function
DResourceFetcher.h105 Resource* cachedResource(const KURL&) const;
DResourceFetcher.cpp247 Resource* ResourceFetcher::cachedResource(const KURL& resourceURL) const in cachedResource() function in WebCore::ResourceFetcher
1007 if (type == Resource::Image && existingResource == cachedResource(request.url())) in determineRevalidationPolicy()
/external/chromium_org/third_party/WebKit/Source/core/css/
DCSSImageValue.cpp81 if (document.fetcher()->cachedResource(KURL(ParsedURLString, m_absoluteURL))) in restoreCachedResourceIfNeeded()
96 if (Resource* cachedResource = toStyleFetchedImage(m_image)->cachedImage()) in hasFailedOrCanceledSubresources() local
97 return cachedResource->loadFailedOrCanceled(); in hasFailedOrCanceledSubresources()
DCSSImageSetValue.cpp177 if (Resource* cachedResource = toStyleFetchedImageSet(m_imageSet)->cachedImage()) in hasFailedOrCanceledSubresources() local
178 return cachedResource->loadFailedOrCanceled(); in hasFailedOrCanceledSubresources()
DCSSFontFaceSrcValue.cpp122 if (document->fetcher()->cachedResource(KURL(ParsedURLString, resourceURL))) in restoreCachedResourceIfNeeded()
/external/chromium_org/third_party/WebKit/Source/core/loader/
DDocumentLoader.cpp648 bool DocumentLoader::scheduleArchiveLoad(Resource* cachedResource, const ResourceRequest& request) in scheduleArchiveLoad() argument
656 cachedResource->error(Resource::LoadError); in scheduleArchiveLoad()
660 cachedResource->setLoading(true); in scheduleArchiveLoad()
661 cachedResource->responseReceived(archiveResource->response()); in scheduleArchiveLoad()
664 cachedResource->appendData(data->data(), data->size()); in scheduleArchiveLoad()
665 cachedResource->finish(); in scheduleArchiveLoad()
/external/chromium_org/third_party/WebKit/Source/core/html/parser/
DHTMLScriptRunner.cpp190 void HTMLScriptRunner::notifyFinished(Resource* cachedResource) in notifyFinished() argument
192 m_host->notifyScriptLoaded(cachedResource); in notifyFinished()
DHTMLDocumentParser.cpp971 void HTMLDocumentParser::notifyScriptLoaded(Resource* cachedResource) in notifyScriptLoaded() argument
984 m_scriptRunner->executeScriptsWaitingForLoad(cachedResource); in notifyScriptLoaded()