109 lines
5.0 KiB
C++
109 lines
5.0 KiB
C++
// CodeGear C++Builder
|
|
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
|
|
// All rights reserved
|
|
|
|
// (DO NOT EDIT: machine generated header) 'uCEFServerHandler.pas' rev: 37.00 (Windows)
|
|
|
|
#ifndef uCEFServerHandlerHPP
|
|
#define uCEFServerHandlerHPP
|
|
|
|
#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 Ucefserverhandler
|
|
{
|
|
//-- forward type declarations -----------------------------------------------
|
|
class DELPHICLASS TCEFServerHandlerOwn;
|
|
class DELPHICLASS TCustomServerHandler;
|
|
//-- type declarations -------------------------------------------------------
|
|
#pragma pack(push,4)
|
|
class PASCALIMPLEMENTATION TCEFServerHandlerOwn : public Ucefbaserefcounted::TCefBaseRefCountedOwn
|
|
{
|
|
typedef Ucefbaserefcounted::TCefBaseRefCountedOwn inherited;
|
|
|
|
protected:
|
|
virtual void __fastcall OnServerCreated(const Ucefinterfaces::_di_ICefServer server);
|
|
virtual void __fastcall OnServerDestroyed(const Ucefinterfaces::_di_ICefServer server);
|
|
virtual void __fastcall OnClientConnected(const Ucefinterfaces::_di_ICefServer server, int connection_id);
|
|
virtual void __fastcall OnClientDisconnected(const Ucefinterfaces::_di_ICefServer server, int connection_id);
|
|
virtual void __fastcall OnHttpRequest(const Ucefinterfaces::_di_ICefServer server, int connection_id, const Uceftypes::ustring client_address, const Ucefinterfaces::_di_ICefRequest request);
|
|
virtual void __fastcall OnWebSocketRequest(const Ucefinterfaces::_di_ICefServer server, int connection_id, const Uceftypes::ustring client_address, const Ucefinterfaces::_di_ICefRequest request, const Ucefinterfaces::_di_ICefCallback callback);
|
|
virtual void __fastcall OnWebSocketConnected(const Ucefinterfaces::_di_ICefServer server, int connection_id);
|
|
virtual void __fastcall OnWebSocketMessage(const Ucefinterfaces::_di_ICefServer server, int connection_id, const void * data, System::NativeUInt data_size);
|
|
|
|
public:
|
|
__fastcall virtual TCEFServerHandlerOwn();
|
|
public:
|
|
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCEFServerHandlerOwn(unsigned size, bool owned) : Ucefbaserefcounted::TCefBaseRefCountedOwn(size, owned) { }
|
|
/* TCefBaseRefCountedOwn.Destroy */ inline __fastcall virtual ~TCEFServerHandlerOwn() { }
|
|
|
|
private:
|
|
void *__ICefServerHandler; // Ucefinterfaces::ICefServerHandler
|
|
|
|
public:
|
|
#if defined(MANAGED_INTERFACE_OPERATORS)
|
|
// {AFB64A63-44C9-44CD-959B-D8E20F549879}
|
|
operator Ucefinterfaces::_di_ICefServerHandler()
|
|
{
|
|
Ucefinterfaces::_di_ICefServerHandler intf;
|
|
this->GetInterface(intf);
|
|
return intf;
|
|
}
|
|
#else
|
|
operator Ucefinterfaces::ICefServerHandler*(void) { return (Ucefinterfaces::ICefServerHandler*)&__ICefServerHandler; }
|
|
#endif
|
|
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
#pragma pack(push,4)
|
|
class PASCALIMPLEMENTATION TCustomServerHandler : public TCEFServerHandlerOwn
|
|
{
|
|
typedef TCEFServerHandlerOwn inherited;
|
|
|
|
protected:
|
|
void *FEvents;
|
|
virtual void __fastcall OnServerCreated(const Ucefinterfaces::_di_ICefServer server);
|
|
virtual void __fastcall OnServerDestroyed(const Ucefinterfaces::_di_ICefServer server);
|
|
virtual void __fastcall OnClientConnected(const Ucefinterfaces::_di_ICefServer server, int connection_id);
|
|
virtual void __fastcall OnClientDisconnected(const Ucefinterfaces::_di_ICefServer server, int connection_id);
|
|
virtual void __fastcall OnHttpRequest(const Ucefinterfaces::_di_ICefServer server, int connection_id, const Uceftypes::ustring client_address, const Ucefinterfaces::_di_ICefRequest request);
|
|
virtual void __fastcall OnWebSocketRequest(const Ucefinterfaces::_di_ICefServer server, int connection_id, const Uceftypes::ustring client_address, const Ucefinterfaces::_di_ICefRequest request, const Ucefinterfaces::_di_ICefCallback callback);
|
|
virtual void __fastcall OnWebSocketConnected(const Ucefinterfaces::_di_ICefServer server, int connection_id);
|
|
virtual void __fastcall OnWebSocketMessage(const Ucefinterfaces::_di_ICefServer server, int connection_id, const void * data, System::NativeUInt data_size);
|
|
|
|
public:
|
|
__fastcall TCustomServerHandler(const Ucefinterfaces::_di_IServerEvents events);
|
|
__fastcall virtual ~TCustomServerHandler();
|
|
public:
|
|
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCustomServerHandler(unsigned size, bool owned) : TCEFServerHandlerOwn(size, owned) { }
|
|
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
//-- var, const, procedure ---------------------------------------------------
|
|
} /* namespace Ucefserverhandler */
|
|
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFSERVERHANDLER)
|
|
using namespace Ucefserverhandler;
|
|
#endif
|
|
#pragma pack(pop)
|
|
#pragma option pop
|
|
|
|
#pragma delphiheader end.
|
|
//-- end unit ----------------------------------------------------------------
|
|
#endif // uCEFServerHandlerHPP
|