#include "sample_url_request_callback.h"
#include <iostream>
SampleUrlRequestCallback::SampleUrlRequestCallback()
: … { … }
SampleUrlRequestCallback::~SampleUrlRequestCallback() { … }
Cronet_UrlRequestCallbackPtr SampleUrlRequestCallback::GetUrlRequestCallback() { … }
void SampleUrlRequestCallback::OnRedirectReceived(
Cronet_UrlRequestPtr request,
Cronet_UrlResponseInfoPtr info,
Cronet_String newLocationUrl) { … }
void SampleUrlRequestCallback::OnResponseStarted(
Cronet_UrlRequestPtr request,
Cronet_UrlResponseInfoPtr info) { … }
void SampleUrlRequestCallback::OnReadCompleted(Cronet_UrlRequestPtr request,
Cronet_UrlResponseInfoPtr info,
Cronet_BufferPtr buffer,
uint64_t bytes_read) { … }
void SampleUrlRequestCallback::OnSucceeded(Cronet_UrlRequestPtr request,
Cronet_UrlResponseInfoPtr info) { … }
void SampleUrlRequestCallback::OnFailed(Cronet_UrlRequestPtr request,
Cronet_UrlResponseInfoPtr info,
Cronet_ErrorPtr error) { … }
void SampleUrlRequestCallback::OnCanceled(Cronet_UrlRequestPtr request,
Cronet_UrlResponseInfoPtr info) { … }
SampleUrlRequestCallback* SampleUrlRequestCallback::GetThis(
Cronet_UrlRequestCallbackPtr self) { … }
void SampleUrlRequestCallback::OnRedirectReceived(
Cronet_UrlRequestCallbackPtr self,
Cronet_UrlRequestPtr request,
Cronet_UrlResponseInfoPtr info,
Cronet_String newLocationUrl) { … }
void SampleUrlRequestCallback::OnResponseStarted(
Cronet_UrlRequestCallbackPtr self,
Cronet_UrlRequestPtr request,
Cronet_UrlResponseInfoPtr info) { … }
void SampleUrlRequestCallback::OnReadCompleted(
Cronet_UrlRequestCallbackPtr self,
Cronet_UrlRequestPtr request,
Cronet_UrlResponseInfoPtr info,
Cronet_BufferPtr buffer,
uint64_t bytesRead) { … }
void SampleUrlRequestCallback::OnSucceeded(Cronet_UrlRequestCallbackPtr self,
Cronet_UrlRequestPtr request,
Cronet_UrlResponseInfoPtr info) { … }
void SampleUrlRequestCallback::OnFailed(Cronet_UrlRequestCallbackPtr self,
Cronet_UrlRequestPtr request,
Cronet_UrlResponseInfoPtr info,
Cronet_ErrorPtr error) { … }
void SampleUrlRequestCallback::OnCanceled(Cronet_UrlRequestCallbackPtr self,
Cronet_UrlRequestPtr request,
Cronet_UrlResponseInfoPtr info) { … }