#include "components/cronet/native/generated/cronet.idl_impl_interface.h"
#include "base/check.h"
void Cronet_Buffer_Destroy(Cronet_BufferPtr self) { … }
void Cronet_Buffer_SetClientContext(Cronet_BufferPtr self,
Cronet_ClientContext client_context) { … }
Cronet_ClientContext Cronet_Buffer_GetClientContext(Cronet_BufferPtr self) { … }
void Cronet_Buffer_InitWithDataAndCallback(Cronet_BufferPtr self,
Cronet_RawDataPtr data,
uint64_t size,
Cronet_BufferCallbackPtr callback) { … }
void Cronet_Buffer_InitWithAlloc(Cronet_BufferPtr self, uint64_t size) { … }
uint64_t Cronet_Buffer_GetSize(Cronet_BufferPtr self) { … }
Cronet_RawDataPtr Cronet_Buffer_GetData(Cronet_BufferPtr self) { … }
class Cronet_BufferStub : public Cronet_Buffer { … };
Cronet_BufferPtr Cronet_Buffer_CreateWith(
Cronet_Buffer_InitWithDataAndCallbackFunc InitWithDataAndCallbackFunc,
Cronet_Buffer_InitWithAllocFunc InitWithAllocFunc,
Cronet_Buffer_GetSizeFunc GetSizeFunc,
Cronet_Buffer_GetDataFunc GetDataFunc) { … }
void Cronet_BufferCallback_Destroy(Cronet_BufferCallbackPtr self) { … }
void Cronet_BufferCallback_SetClientContext(
Cronet_BufferCallbackPtr self,
Cronet_ClientContext client_context) { … }
Cronet_ClientContext Cronet_BufferCallback_GetClientContext(
Cronet_BufferCallbackPtr self) { … }
void Cronet_BufferCallback_OnDestroy(Cronet_BufferCallbackPtr self,
Cronet_BufferPtr buffer) { … }
class Cronet_BufferCallbackStub : public Cronet_BufferCallback { … };
Cronet_BufferCallbackPtr Cronet_BufferCallback_CreateWith(
Cronet_BufferCallback_OnDestroyFunc OnDestroyFunc) { … }
void Cronet_Runnable_Destroy(Cronet_RunnablePtr self) { … }
void Cronet_Runnable_SetClientContext(Cronet_RunnablePtr self,
Cronet_ClientContext client_context) { … }
Cronet_ClientContext Cronet_Runnable_GetClientContext(Cronet_RunnablePtr self) { … }
void Cronet_Runnable_Run(Cronet_RunnablePtr self) { … }
class Cronet_RunnableStub : public Cronet_Runnable { … };
Cronet_RunnablePtr Cronet_Runnable_CreateWith(Cronet_Runnable_RunFunc RunFunc) { … }
void Cronet_Executor_Destroy(Cronet_ExecutorPtr self) { … }
void Cronet_Executor_SetClientContext(Cronet_ExecutorPtr self,
Cronet_ClientContext client_context) { … }
Cronet_ClientContext Cronet_Executor_GetClientContext(Cronet_ExecutorPtr self) { … }
void Cronet_Executor_Execute(Cronet_ExecutorPtr self,
Cronet_RunnablePtr command) { … }
class Cronet_ExecutorStub : public Cronet_Executor { … };
Cronet_ExecutorPtr Cronet_Executor_CreateWith(
Cronet_Executor_ExecuteFunc ExecuteFunc) { … }
void Cronet_Engine_Destroy(Cronet_EnginePtr self) { … }
void Cronet_Engine_SetClientContext(Cronet_EnginePtr self,
Cronet_ClientContext client_context) { … }
Cronet_ClientContext Cronet_Engine_GetClientContext(Cronet_EnginePtr self) { … }
Cronet_RESULT Cronet_Engine_StartWithParams(Cronet_EnginePtr self,
Cronet_EngineParamsPtr params) { … }
bool Cronet_Engine_StartNetLogToFile(Cronet_EnginePtr self,
Cronet_String file_name,
bool log_all) { … }
void Cronet_Engine_StopNetLog(Cronet_EnginePtr self) { … }
Cronet_RESULT Cronet_Engine_Shutdown(Cronet_EnginePtr self) { … }
Cronet_String Cronet_Engine_GetVersionString(Cronet_EnginePtr self) { … }
Cronet_String Cronet_Engine_GetDefaultUserAgent(Cronet_EnginePtr self) { … }
void Cronet_Engine_AddRequestFinishedListener(
Cronet_EnginePtr self,
Cronet_RequestFinishedInfoListenerPtr listener,
Cronet_ExecutorPtr executor) { … }
void Cronet_Engine_RemoveRequestFinishedListener(
Cronet_EnginePtr self,
Cronet_RequestFinishedInfoListenerPtr listener) { … }
class Cronet_EngineStub : public Cronet_Engine { … };
Cronet_EnginePtr Cronet_Engine_CreateWith(
Cronet_Engine_StartWithParamsFunc StartWithParamsFunc,
Cronet_Engine_StartNetLogToFileFunc StartNetLogToFileFunc,
Cronet_Engine_StopNetLogFunc StopNetLogFunc,
Cronet_Engine_ShutdownFunc ShutdownFunc,
Cronet_Engine_GetVersionStringFunc GetVersionStringFunc,
Cronet_Engine_GetDefaultUserAgentFunc GetDefaultUserAgentFunc,
Cronet_Engine_AddRequestFinishedListenerFunc AddRequestFinishedListenerFunc,
Cronet_Engine_RemoveRequestFinishedListenerFunc
RemoveRequestFinishedListenerFunc) { … }
void Cronet_UrlRequestStatusListener_Destroy(
Cronet_UrlRequestStatusListenerPtr self) { … }
void Cronet_UrlRequestStatusListener_SetClientContext(
Cronet_UrlRequestStatusListenerPtr self,
Cronet_ClientContext client_context) { … }
Cronet_ClientContext Cronet_UrlRequestStatusListener_GetClientContext(
Cronet_UrlRequestStatusListenerPtr self) { … }
void Cronet_UrlRequestStatusListener_OnStatus(
Cronet_UrlRequestStatusListenerPtr self,
Cronet_UrlRequestStatusListener_Status status) { … }
class Cronet_UrlRequestStatusListenerStub
: public Cronet_UrlRequestStatusListener { … };
Cronet_UrlRequestStatusListenerPtr Cronet_UrlRequestStatusListener_CreateWith(
Cronet_UrlRequestStatusListener_OnStatusFunc OnStatusFunc) { … }
void Cronet_UrlRequestCallback_Destroy(Cronet_UrlRequestCallbackPtr self) { … }
void Cronet_UrlRequestCallback_SetClientContext(
Cronet_UrlRequestCallbackPtr self,
Cronet_ClientContext client_context) { … }
Cronet_ClientContext Cronet_UrlRequestCallback_GetClientContext(
Cronet_UrlRequestCallbackPtr self) { … }
void Cronet_UrlRequestCallback_OnRedirectReceived(
Cronet_UrlRequestCallbackPtr self,
Cronet_UrlRequestPtr request,
Cronet_UrlResponseInfoPtr info,
Cronet_String new_location_url) { … }
void Cronet_UrlRequestCallback_OnResponseStarted(
Cronet_UrlRequestCallbackPtr self,
Cronet_UrlRequestPtr request,
Cronet_UrlResponseInfoPtr info) { … }
void Cronet_UrlRequestCallback_OnReadCompleted(
Cronet_UrlRequestCallbackPtr self,
Cronet_UrlRequestPtr request,
Cronet_UrlResponseInfoPtr info,
Cronet_BufferPtr buffer,
uint64_t bytes_read) { … }
void Cronet_UrlRequestCallback_OnSucceeded(Cronet_UrlRequestCallbackPtr self,
Cronet_UrlRequestPtr request,
Cronet_UrlResponseInfoPtr info) { … }
void Cronet_UrlRequestCallback_OnFailed(Cronet_UrlRequestCallbackPtr self,
Cronet_UrlRequestPtr request,
Cronet_UrlResponseInfoPtr info,
Cronet_ErrorPtr error) { … }
void Cronet_UrlRequestCallback_OnCanceled(Cronet_UrlRequestCallbackPtr self,
Cronet_UrlRequestPtr request,
Cronet_UrlResponseInfoPtr info) { … }
class Cronet_UrlRequestCallbackStub : public Cronet_UrlRequestCallback { … };
Cronet_UrlRequestCallbackPtr Cronet_UrlRequestCallback_CreateWith(
Cronet_UrlRequestCallback_OnRedirectReceivedFunc OnRedirectReceivedFunc,
Cronet_UrlRequestCallback_OnResponseStartedFunc OnResponseStartedFunc,
Cronet_UrlRequestCallback_OnReadCompletedFunc OnReadCompletedFunc,
Cronet_UrlRequestCallback_OnSucceededFunc OnSucceededFunc,
Cronet_UrlRequestCallback_OnFailedFunc OnFailedFunc,
Cronet_UrlRequestCallback_OnCanceledFunc OnCanceledFunc) { … }
void Cronet_UploadDataSink_Destroy(Cronet_UploadDataSinkPtr self) { … }
void Cronet_UploadDataSink_SetClientContext(
Cronet_UploadDataSinkPtr self,
Cronet_ClientContext client_context) { … }
Cronet_ClientContext Cronet_UploadDataSink_GetClientContext(
Cronet_UploadDataSinkPtr self) { … }
void Cronet_UploadDataSink_OnReadSucceeded(Cronet_UploadDataSinkPtr self,
uint64_t bytes_read,
bool final_chunk) { … }
void Cronet_UploadDataSink_OnReadError(Cronet_UploadDataSinkPtr self,
Cronet_String error_message) { … }
void Cronet_UploadDataSink_OnRewindSucceeded(Cronet_UploadDataSinkPtr self) { … }
void Cronet_UploadDataSink_OnRewindError(Cronet_UploadDataSinkPtr self,
Cronet_String error_message) { … }
class Cronet_UploadDataSinkStub : public Cronet_UploadDataSink { … };
Cronet_UploadDataSinkPtr Cronet_UploadDataSink_CreateWith(
Cronet_UploadDataSink_OnReadSucceededFunc OnReadSucceededFunc,
Cronet_UploadDataSink_OnReadErrorFunc OnReadErrorFunc,
Cronet_UploadDataSink_OnRewindSucceededFunc OnRewindSucceededFunc,
Cronet_UploadDataSink_OnRewindErrorFunc OnRewindErrorFunc) { … }
void Cronet_UploadDataProvider_Destroy(Cronet_UploadDataProviderPtr self) { … }
void Cronet_UploadDataProvider_SetClientContext(
Cronet_UploadDataProviderPtr self,
Cronet_ClientContext client_context) { … }
Cronet_ClientContext Cronet_UploadDataProvider_GetClientContext(
Cronet_UploadDataProviderPtr self) { … }
int64_t Cronet_UploadDataProvider_GetLength(Cronet_UploadDataProviderPtr self) { … }
void Cronet_UploadDataProvider_Read(Cronet_UploadDataProviderPtr self,
Cronet_UploadDataSinkPtr upload_data_sink,
Cronet_BufferPtr buffer) { … }
void Cronet_UploadDataProvider_Rewind(
Cronet_UploadDataProviderPtr self,
Cronet_UploadDataSinkPtr upload_data_sink) { … }
void Cronet_UploadDataProvider_Close(Cronet_UploadDataProviderPtr self) { … }
class Cronet_UploadDataProviderStub : public Cronet_UploadDataProvider { … };
Cronet_UploadDataProviderPtr Cronet_UploadDataProvider_CreateWith(
Cronet_UploadDataProvider_GetLengthFunc GetLengthFunc,
Cronet_UploadDataProvider_ReadFunc ReadFunc,
Cronet_UploadDataProvider_RewindFunc RewindFunc,
Cronet_UploadDataProvider_CloseFunc CloseFunc) { … }
void Cronet_UrlRequest_Destroy(Cronet_UrlRequestPtr self) { … }
void Cronet_UrlRequest_SetClientContext(Cronet_UrlRequestPtr self,
Cronet_ClientContext client_context) { … }
Cronet_ClientContext Cronet_UrlRequest_GetClientContext(
Cronet_UrlRequestPtr self) { … }
Cronet_RESULT Cronet_UrlRequest_InitWithParams(
Cronet_UrlRequestPtr self,
Cronet_EnginePtr engine,
Cronet_String url,
Cronet_UrlRequestParamsPtr params,
Cronet_UrlRequestCallbackPtr callback,
Cronet_ExecutorPtr executor) { … }
Cronet_RESULT Cronet_UrlRequest_Start(Cronet_UrlRequestPtr self) { … }
Cronet_RESULT Cronet_UrlRequest_FollowRedirect(Cronet_UrlRequestPtr self) { … }
Cronet_RESULT Cronet_UrlRequest_Read(Cronet_UrlRequestPtr self,
Cronet_BufferPtr buffer) { … }
void Cronet_UrlRequest_Cancel(Cronet_UrlRequestPtr self) { … }
bool Cronet_UrlRequest_IsDone(Cronet_UrlRequestPtr self) { … }
void Cronet_UrlRequest_GetStatus(Cronet_UrlRequestPtr self,
Cronet_UrlRequestStatusListenerPtr listener) { … }
class Cronet_UrlRequestStub : public Cronet_UrlRequest { … };
Cronet_UrlRequestPtr Cronet_UrlRequest_CreateWith(
Cronet_UrlRequest_InitWithParamsFunc InitWithParamsFunc,
Cronet_UrlRequest_StartFunc StartFunc,
Cronet_UrlRequest_FollowRedirectFunc FollowRedirectFunc,
Cronet_UrlRequest_ReadFunc ReadFunc,
Cronet_UrlRequest_CancelFunc CancelFunc,
Cronet_UrlRequest_IsDoneFunc IsDoneFunc,
Cronet_UrlRequest_GetStatusFunc GetStatusFunc) { … }
void Cronet_RequestFinishedInfoListener_Destroy(
Cronet_RequestFinishedInfoListenerPtr self) { … }
void Cronet_RequestFinishedInfoListener_SetClientContext(
Cronet_RequestFinishedInfoListenerPtr self,
Cronet_ClientContext client_context) { … }
Cronet_ClientContext Cronet_RequestFinishedInfoListener_GetClientContext(
Cronet_RequestFinishedInfoListenerPtr self) { … }
void Cronet_RequestFinishedInfoListener_OnRequestFinished(
Cronet_RequestFinishedInfoListenerPtr self,
Cronet_RequestFinishedInfoPtr request_info,
Cronet_UrlResponseInfoPtr response_info,
Cronet_ErrorPtr error) { … }
class Cronet_RequestFinishedInfoListenerStub
: public Cronet_RequestFinishedInfoListener { … };
Cronet_RequestFinishedInfoListenerPtr
Cronet_RequestFinishedInfoListener_CreateWith(
Cronet_RequestFinishedInfoListener_OnRequestFinishedFunc
OnRequestFinishedFunc) { … }