Home | History | Annotate | Download | only in mac

Lines Matching full:m_handle

64     ResourceHandle* m_handle;
755 m_handle = handle;
761 m_handle = 0;
771 if (!m_handle || !m_handle->client())
780 LOG(Network, "Handle %p delegate connection:%p willSendRequest:%@ redirectResponse:%d, Location:<%@>", m_handle, connection, [newRequest description], static_cast<int>([(id)redirectResponse statusCode]), [[(id)redirectResponse allHeaderFields] objectForKey:@"Location"]);
782 LOG(Network, "Handle %p delegate connection:%p willSendRequest:%@ redirectResponse:non-HTTP", m_handle, connection, [newRequest description]);
786 String lastHTTPMethod = m_handle->lastHTTPMethod();
791 FormData* body = m_handle->firstRequest().httpBody();
795 String originalContentType = m_handle->firstRequest().httpContentType();
810 m_handle->willSendRequest(request, redirectResponse);
819 associateStreamWithResourceHandle(newBodyStream, m_handle);
830 LOG(Network, "Handle %p delegate connectionShouldUseCredentialStorage:%p", m_handle, connection);
832 if (!m_handle)
836 return m_handle->shouldUseCredentialStorage();
843 LOG(Network, "Handle %p delegate connection:%p didReceiveAuthenticationChallenge:%p", m_handle, connection, challenge);
845 if (!m_handle)
848 m_handle->didReceiveAuthenticationChallenge(core(challenge));
855 LOG(Network, "Handle %p delegate connection:%p didCancelAuthenticationChallenge:%p", m_handle, connection, challenge);
857 if (!m_handle)
860 m_handle->didCancelAuthenticationChallenge(core(challenge));
868 if (!m_handle)
872 return m_handle->canAuthenticateAgainstProtectionSpace(core(protectionSpace));
880 LOG(Network, "Handle %p delegate connection:%p didReceiveResponse:%p (HTTP status %d, reported MIMEType '%s')", m_handle, connection, r, [r respondsToSelector:@selector(statusCode)] ? [(id)r statusCode] : 0, [[r MIMEType] UTF8String]);
882 if (!m_handle || !m_handle->client())
891 if ([m_handle->firstRequest().nsURLRequest() _propertyForKey:@"ForceHTMLMIMEType"])
910 m_handle->client()->didReceiveResponse(m_handle, r);
917 LOG(Network, "Handle %p delegate connection:%p didReceiveDataArray:%p arraySize:%d", m_handle, connection, dataArray, [dataArray count]);
922 if (!m_handle || !m_handle->client())
925 if (m_handle->client()->supportsDataArray())
926 m_handle->client()->didReceiveDataArray(m_handle, reinterpret_cast<CFArrayRef>(dataArray));
929 m_handle->client()->didReceiveData(m_handle, static_cast<const char*>([data bytes]), [data length], static_cast<int>([data length]));
940 LOG(Network, "Handle %p delegate connection:%p didReceiveData:%p lengthReceived:%lld", m_handle, connection, data, lengthReceived);
942 if (!m_handle || !m_handle->client())
951 m_handle->client()->didReceiveData(m_handle, (const char*)[data bytes], [data length], -1);
958 LOG(Network, "Handle %p delegate connection:%p willStopBufferingData:%p", m_handle, connection, data);
960 if (!m_handle || !m_handle->client())
966 m_handle->client()->willStopBufferingData(m_handle, (const char*)[data bytes], static_cast<int>([data length]));
974 LOG(Network, "Handle %p delegate connection:%p didSendBodyData:%d totalBytesWritten:%d totalBytesExpectedToWrite:%d", m_handle, connection, bytesWritten, totalBytesWritten, totalBytesExpectedToWrite);
976 if (!m_handle || !m_handle->client())
979 m_handle->client()->didSendData(m_handle, totalBytesWritten, totalBytesExpectedToWrite);
986 LOG(Network, "Handle %p delegate connectionDidFinishLoading:%p", m_handle, connection);
988 if (!m_handle || !m_handle->client())
993 disassociateStreamWithResourceHandle([m_handle->firstRequest().nsURLRequest() HTTPBodyStream]);
995 m_handle->client()->didFinishLoading(m_handle, 0);
1002 LOG(Network, "Handle %p delegate connection:%p didFailWithError:%@", m_handle, connection, error);
1004 if (!m_handle || !m_handle->client())
1009 disassociateStreamWithResourceHandle([m_handle->firstRequest().nsURLRequest() HTTPBodyStream]);
1011 m_handle->client()->didFail(m_handle, error);
1027 LOG(Network, "Handle %p delegate connection:%p willCacheResponse:%p", m_handle, connection, cachedResponse);
1059 if (!m_handle || !m_handle->client())
1064 NSCachedURLResponse *newResponse = m_handle->client()->willCacheResponse(m_handle, cachedResponse);
1070 m_handle->client()->willCacheResponse(m_handle, policy);