WebURLResponse* WebURLResponse::createInstance() { WebURLResponse* instance = new WebURLResponse(); // fake an http response - so it has the IWebHTTPURLResponse interface instance->m_response = ResourceResponse(KURL(ParsedURLString, "http://"), String(), 0, String(), String()); instance->AddRef(); return instance; }
WebURLResponse* WebURLResponse::createInstance(const ResourceResponse& response) { if (response.isNull()) return 0; WebURLResponse* instance = new WebURLResponse(); instance->AddRef(); instance->m_response = response; return instance; }