124 lines
5.4 KiB
C++
124 lines
5.4 KiB
C++
// CodeGear C++Builder
|
|
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
|
|
// All rights reserved
|
|
|
|
// (DO NOT EDIT: machine generated header) 'uCEFResourceHandler.pas' rev: 37.00 (Windows)
|
|
|
|
#ifndef uCEFResourceHandlerHPP
|
|
#define uCEFResourceHandlerHPP
|
|
|
|
#pragma delphiheader begin
|
|
#pragma option push
|
|
#if defined(__BORLANDC__) && !defined(__clang__)
|
|
#pragma option -w- // All warnings off
|
|
#pragma option -Vx // Zero-length empty class member
|
|
#endif
|
|
#pragma pack(push,8)
|
|
#include <System.hpp>
|
|
#include <SysInit.hpp>
|
|
#include <uCEFBaseRefCounted.hpp>
|
|
#include <uCEFInterfaces.hpp>
|
|
#include <uCEFTypes.hpp>
|
|
|
|
//-- user supplied -----------------------------------------------------------
|
|
|
|
namespace Ucefresourcehandler
|
|
{
|
|
//-- forward type declarations -----------------------------------------------
|
|
class DELPHICLASS TCefResourceHandlerRef;
|
|
class DELPHICLASS TCefResourceHandlerOwn;
|
|
//-- type declarations -------------------------------------------------------
|
|
#pragma pack(push,4)
|
|
class PASCALIMPLEMENTATION TCefResourceHandlerRef : public Ucefbaserefcounted::TCefBaseRefCountedRef
|
|
{
|
|
typedef Ucefbaserefcounted::TCefBaseRefCountedRef inherited;
|
|
|
|
protected:
|
|
bool __fastcall open(const Ucefinterfaces::_di_ICefRequest request, bool &handle_request, const Ucefinterfaces::_di_ICefCallback callback);
|
|
bool __fastcall ProcessRequest(const Ucefinterfaces::_di_ICefRequest request, const Ucefinterfaces::_di_ICefCallback callback);
|
|
void __fastcall GetResponseHeaders(const Ucefinterfaces::_di_ICefResponse response, /* out */ __int64 &responseLength, /* out */ Uceftypes::ustring &redirectUrl);
|
|
bool __fastcall skip(__int64 bytes_to_skip, __int64 &bytes_skipped, const Ucefinterfaces::_di_ICefResourceSkipCallback callback);
|
|
bool __fastcall read(const void * data_out, int bytes_to_read, int &bytes_read, const Ucefinterfaces::_di_ICefResourceReadCallback callback);
|
|
bool __fastcall ReadResponse(const void * dataOut, int bytesToRead, int &bytesRead, const Ucefinterfaces::_di_ICefCallback callback);
|
|
void __fastcall Cancel();
|
|
|
|
public:
|
|
__classmethod Ucefinterfaces::_di_ICefResourceHandler __fastcall UnWrap(void * data);
|
|
public:
|
|
/* TCefBaseRefCountedRef.Create */ inline __fastcall virtual TCefResourceHandlerRef(void * data) : Ucefbaserefcounted::TCefBaseRefCountedRef(data) { }
|
|
/* TCefBaseRefCountedRef.Destroy */ inline __fastcall virtual ~TCefResourceHandlerRef() { }
|
|
|
|
private:
|
|
void *__ICefResourceHandler; // Ucefinterfaces::ICefResourceHandler
|
|
|
|
public:
|
|
#if defined(MANAGED_INTERFACE_OPERATORS)
|
|
// {BD3EA208-AAAD-488C-BFF2-76993022F2B5}
|
|
operator Ucefinterfaces::_di_ICefResourceHandler()
|
|
{
|
|
Ucefinterfaces::_di_ICefResourceHandler intf;
|
|
this->GetInterface(intf);
|
|
return intf;
|
|
}
|
|
#else
|
|
operator Ucefinterfaces::ICefResourceHandler*(void) { return (Ucefinterfaces::ICefResourceHandler*)&__ICefResourceHandler; }
|
|
#endif
|
|
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
#pragma pack(push,4)
|
|
class PASCALIMPLEMENTATION TCefResourceHandlerOwn : public Ucefbaserefcounted::TCefBaseRefCountedOwn
|
|
{
|
|
typedef Ucefbaserefcounted::TCefBaseRefCountedOwn inherited;
|
|
|
|
protected:
|
|
virtual bool __fastcall open(const Ucefinterfaces::_di_ICefRequest request, bool &handle_request, const Ucefinterfaces::_di_ICefCallback callback);
|
|
virtual bool __fastcall ProcessRequest(const Ucefinterfaces::_di_ICefRequest request, const Ucefinterfaces::_di_ICefCallback callback);
|
|
virtual void __fastcall GetResponseHeaders(const Ucefinterfaces::_di_ICefResponse response, /* out */ __int64 &responseLength, /* out */ Uceftypes::ustring &redirectUrl);
|
|
virtual bool __fastcall skip(__int64 bytes_to_skip, __int64 &bytes_skipped, const Ucefinterfaces::_di_ICefResourceSkipCallback callback);
|
|
virtual bool __fastcall read(const void * data_out, int bytes_to_read, int &bytes_read, const Ucefinterfaces::_di_ICefResourceReadCallback callback);
|
|
virtual bool __fastcall ReadResponse(const void * dataOut, int bytesToRead, int &bytesRead, const Ucefinterfaces::_di_ICefCallback callback);
|
|
virtual void __fastcall Cancel();
|
|
|
|
public:
|
|
__fastcall virtual TCefResourceHandlerOwn(const Ucefinterfaces::_di_ICefBrowser browser, const Ucefinterfaces::_di_ICefFrame frame, const Uceftypes::ustring schemeName, const Ucefinterfaces::_di_ICefRequest request);
|
|
public:
|
|
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCefResourceHandlerOwn(unsigned size, bool owned) : Ucefbaserefcounted::TCefBaseRefCountedOwn(size, owned) { }
|
|
/* TCefBaseRefCountedOwn.Destroy */ inline __fastcall virtual ~TCefResourceHandlerOwn() { }
|
|
|
|
private:
|
|
void *__ICefResourceHandler; // Ucefinterfaces::ICefResourceHandler
|
|
|
|
public:
|
|
#if defined(MANAGED_INTERFACE_OPERATORS)
|
|
// {BD3EA208-AAAD-488C-BFF2-76993022F2B5}
|
|
operator Ucefinterfaces::_di_ICefResourceHandler()
|
|
{
|
|
Ucefinterfaces::_di_ICefResourceHandler intf;
|
|
this->GetInterface(intf);
|
|
return intf;
|
|
}
|
|
#else
|
|
operator Ucefinterfaces::ICefResourceHandler*(void) { return (Ucefinterfaces::ICefResourceHandler*)&__ICefResourceHandler; }
|
|
#endif
|
|
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
typedef System::TMetaClass* TCefResourceHandlerClass;
|
|
|
|
//-- var, const, procedure ---------------------------------------------------
|
|
} /* namespace Ucefresourcehandler */
|
|
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFRESOURCEHANDLER)
|
|
using namespace Ucefresourcehandler;
|
|
#endif
|
|
#pragma pack(pop)
|
|
#pragma option pop
|
|
|
|
#pragma delphiheader end.
|
|
//-- end unit ----------------------------------------------------------------
|
|
#endif // uCEFResourceHandlerHPP
|