Files
2026-06-12 23:18:12 +08:00

109 lines
3.6 KiB
C++

// CodeGear C++Builder
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
// All rights reserved
// (DO NOT EDIT: machine generated header) 'uCEFWriteHandler.pas' rev: 37.00 (Windows)
#ifndef uCEFWriteHandlerHPP
#define uCEFWriteHandlerHPP
#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 <Winapi.Windows.hpp>
#include <uCEFBaseRefCounted.hpp>
#include <uCEFInterfaces.hpp>
#include <uCEFTypes.hpp>
//-- user supplied -----------------------------------------------------------
namespace Ucefwritehandler
{
//-- forward type declarations -----------------------------------------------
class DELPHICLASS TCefWriteHandlerOwn;
class DELPHICLASS TCefBytesWriteHandler;
//-- type declarations -------------------------------------------------------
#pragma pack(push,4)
class PASCALIMPLEMENTATION TCefWriteHandlerOwn : public Ucefbaserefcounted::TCefBaseRefCountedOwn
{
typedef Ucefbaserefcounted::TCefBaseRefCountedOwn inherited;
protected:
virtual System::NativeUInt __fastcall Write(const void * ptr, System::NativeUInt size, System::NativeUInt n);
virtual int __fastcall Seek(__int64 offset, int whence);
virtual __int64 __fastcall Tell();
virtual int __fastcall Flush();
virtual bool __fastcall MayBlock();
public:
__fastcall virtual TCefWriteHandlerOwn();
public:
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCefWriteHandlerOwn(unsigned size, bool owned) : Ucefbaserefcounted::TCefBaseRefCountedOwn(size, owned) { }
/* TCefBaseRefCountedOwn.Destroy */ inline __fastcall virtual ~TCefWriteHandlerOwn() { }
private:
void *__ICefWriteHandler; // Ucefinterfaces::ICefWriteHandler
public:
#if defined(MANAGED_INTERFACE_OPERATORS)
// {F2431888-4EAB-421E-9EC3-320BE695AF30}
operator Ucefinterfaces::_di_ICefWriteHandler()
{
Ucefinterfaces::_di_ICefWriteHandler intf;
this->GetInterface(intf);
return intf;
}
#else
operator Ucefinterfaces::ICefWriteHandler*(void) { return (Ucefinterfaces::ICefWriteHandler*)&__ICefWriteHandler; }
#endif
};
#pragma pack(pop)
class PASCALIMPLEMENTATION TCefBytesWriteHandler : public TCefWriteHandlerOwn
{
typedef TCefWriteHandlerOwn inherited;
protected:
Winapi::Windows::TRTLCriticalSection FCriticalSection;
System::NativeUInt FGrow;
void *FBuffer;
__int64 FBufferSize;
__int64 FOffset;
System::NativeUInt __fastcall Grow(System::NativeUInt size);
public:
__fastcall TCefBytesWriteHandler(System::NativeUInt aGrow);
__fastcall virtual ~TCefBytesWriteHandler();
virtual System::NativeUInt __fastcall Write(const void * ptr, System::NativeUInt size, System::NativeUInt n);
virtual int __fastcall Seek(__int64 offset, int whence);
virtual __int64 __fastcall Tell();
virtual int __fastcall Flush();
virtual bool __fastcall MayBlock();
void * __fastcall GetData();
__int64 __fastcall GetDataSize();
public:
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCefBytesWriteHandler(unsigned size, bool owned) : TCefWriteHandlerOwn(size, owned) { }
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Ucefwritehandler */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFWRITEHANDLER)
using namespace Ucefwritehandler;
#endif
#pragma pack(pop)
#pragma option pop
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // uCEFWriteHandlerHPP