void PluginView::manualLoadDidReceiveResponse(const ResourceResponse& response) { // The plug-in can be null here if it failed to initialize. if (!m_plugin) return; if (!m_isInitialized) { ASSERT(m_manualStreamState == StreamStateInitial); m_manualStreamState = StreamStateHasReceivedResponse; m_manualStreamResponse = response; return; } // Compute the stream related data from the resource response. const KURL& responseURL = response.url(); const String& mimeType = response.mimeType(); long long expectedContentLength = response.expectedContentLength(); String headers = buildHTTPHeaders(response, expectedContentLength); uint32_t streamLength = 0; if (expectedContentLength > 0) streamLength = expectedContentLength; m_plugin->manualStreamDidReceiveResponse(responseURL, streamLength, response.lastModifiedDate(), mimeType, headers, response.suggestedFilename()); }
void PluginView::manualLoadDidReceiveResponse(const ResourceResponse& response) { // Compute the stream related data from the resource response. const KURL& responseURL = response.url(); const String& mimeType = response.mimeType(); long long expectedContentLength = response.expectedContentLength(); String headers = buildHTTPHeaders(response, expectedContentLength); uint32_t streamLength = 0; if (expectedContentLength > 0) streamLength = expectedContentLength; m_plugin->manualStreamDidReceiveResponse(responseURL, streamLength, response.lastModifiedDate(), mimeType, headers); }
void PluginView::Stream::didReceiveResponse(NetscapePlugInStreamLoader*, const ResourceResponse& response) { // Compute the stream related data from the resource response. const KURL& responseURL = response.url(); const String& mimeType = response.mimeType(); long long expectedContentLength = response.expectedContentLength(); String headers = buildHTTPHeaders(response, expectedContentLength); uint32_t streamLength = 0; if (expectedContentLength > 0) streamLength = expectedContentLength; m_pluginView->m_plugin->streamDidReceiveResponse(m_streamID, responseURL, streamLength, response.lastModifiedDate(), mimeType, headers, response.suggestedFilename()); }