87 lines
3.3 KiB
C++
87 lines
3.3 KiB
C++
// CodeGear C++Builder
|
|
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
|
|
// All rights reserved
|
|
|
|
// (DO NOT EDIT: machine generated header) 'uCEFServer.pas' rev: 37.00 (Windows)
|
|
|
|
#ifndef uCEFServerHPP
|
|
#define uCEFServerHPP
|
|
|
|
#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 Ucefserver
|
|
{
|
|
//-- forward type declarations -----------------------------------------------
|
|
class DELPHICLASS TCEFServerRef;
|
|
//-- type declarations -------------------------------------------------------
|
|
#pragma pack(push,4)
|
|
class PASCALIMPLEMENTATION TCEFServerRef : public Ucefbaserefcounted::TCefBaseRefCountedRef
|
|
{
|
|
typedef Ucefbaserefcounted::TCefBaseRefCountedRef inherited;
|
|
|
|
protected:
|
|
virtual Ucefinterfaces::_di_ICefTaskRunner __fastcall GetTaskRunner();
|
|
virtual void __fastcall Shutdown();
|
|
virtual bool __fastcall IsRunning();
|
|
virtual Uceftypes::ustring __fastcall GetAddress();
|
|
virtual bool __fastcall HasConnection();
|
|
virtual bool __fastcall IsValidConnection(int connection_id);
|
|
virtual void __fastcall SendHttp200response(int connection_id, const Uceftypes::ustring content_type, const void * data, System::NativeUInt data_size);
|
|
virtual void __fastcall SendHttp404response(int connection_id);
|
|
virtual void __fastcall SendHttp500response(int connection_id, const Uceftypes::ustring error_message);
|
|
virtual void __fastcall SendHttpResponse(int connection_id, int response_code, const Uceftypes::ustring content_type, __int64 content_length, const Ucefinterfaces::_di_ICefStringMultimap extra_headers);
|
|
virtual void __fastcall SendRawData(int connection_id, const void * data, System::NativeUInt data_size);
|
|
virtual void __fastcall CloseConnection(int connection_id);
|
|
virtual void __fastcall SendWebSocketMessage(int connection_id, const void * data, System::NativeUInt data_size);
|
|
|
|
public:
|
|
__classmethod Ucefinterfaces::_di_ICefServer __fastcall UnWrap(void * data);
|
|
public:
|
|
/* TCefBaseRefCountedRef.Create */ inline __fastcall virtual TCEFServerRef(void * data) : Ucefbaserefcounted::TCefBaseRefCountedRef(data) { }
|
|
/* TCefBaseRefCountedRef.Destroy */ inline __fastcall virtual ~TCEFServerRef() { }
|
|
|
|
private:
|
|
void *__ICefServer; // Ucefinterfaces::ICefServer
|
|
|
|
public:
|
|
#if defined(MANAGED_INTERFACE_OPERATORS)
|
|
// {41D41764-A74B-4552-B166-C77E70549047}
|
|
operator Ucefinterfaces::_di_ICefServer()
|
|
{
|
|
Ucefinterfaces::_di_ICefServer intf;
|
|
this->GetInterface(intf);
|
|
return intf;
|
|
}
|
|
#else
|
|
operator Ucefinterfaces::ICefServer*(void) { return (Ucefinterfaces::ICefServer*)&__ICefServer; }
|
|
#endif
|
|
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
//-- var, const, procedure ---------------------------------------------------
|
|
} /* namespace Ucefserver */
|
|
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFSERVER)
|
|
using namespace Ucefserver;
|
|
#endif
|
|
#pragma pack(pop)
|
|
#pragma option pop
|
|
|
|
#pragma delphiheader end.
|
|
//-- end unit ----------------------------------------------------------------
|
|
#endif // uCEFServerHPP
|