// CodeGear C++Builder // Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc. // All rights reserved // (DO NOT EDIT: machine generated header) 'uCEFRequestHandler.pas' rev: 37.00 (Windows) #ifndef uCEFRequestHandlerHPP #define uCEFRequestHandlerHPP #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 #include #include #include #include //-- user supplied ----------------------------------------------------------- namespace Ucefrequesthandler { //-- forward type declarations ----------------------------------------------- class DELPHICLASS TCefRequestHandlerOwn; class DELPHICLASS TCustomRequestHandler; //-- type declarations ------------------------------------------------------- #pragma pack(push,4) class PASCALIMPLEMENTATION TCefRequestHandlerOwn : public Ucefbaserefcounted::TCefBaseRefCountedOwn { typedef Ucefbaserefcounted::TCefBaseRefCountedOwn inherited; protected: virtual bool __fastcall OnBeforeBrowse(const Ucefinterfaces::_di_ICefBrowser browser, const Ucefinterfaces::_di_ICefFrame frame, const Ucefinterfaces::_di_ICefRequest request, bool user_gesture, bool isRedirect); virtual bool __fastcall OnOpenUrlFromTab(const Ucefinterfaces::_di_ICefBrowser browser, const Ucefinterfaces::_di_ICefFrame frame, const Uceftypes::ustring targetUrl, Uceftypes::TCefWindowOpenDisposition targetDisposition, bool userGesture); virtual void __fastcall GetResourceRequestHandler(const Ucefinterfaces::_di_ICefBrowser browser, const Ucefinterfaces::_di_ICefFrame frame, const Ucefinterfaces::_di_ICefRequest request, bool is_navigation, bool is_download, const Uceftypes::ustring request_initiator, bool &disable_default_handling, Ucefinterfaces::_di_ICefResourceRequestHandler &aResourceRequestHandler); virtual bool __fastcall GetAuthCredentials(const Ucefinterfaces::_di_ICefBrowser browser, const Uceftypes::ustring originUrl, bool isProxy, const Uceftypes::ustring host, int port, const Uceftypes::ustring realm, const Uceftypes::ustring scheme, const Ucefinterfaces::_di_ICefAuthCallback callback); virtual bool __fastcall OnCertificateError(const Ucefinterfaces::_di_ICefBrowser browser, Uceftypes::TCefErrorCode certError, const Uceftypes::ustring requestUrl, const Ucefinterfaces::_di_ICefSslInfo sslInfo, const Ucefinterfaces::_di_ICefCallback callback); virtual bool __fastcall OnSelectClientCertificate(const Ucefinterfaces::_di_ICefBrowser browser, bool isProxy, const Uceftypes::ustring host, int port, System::NativeUInt certificatesCount, const Ucefinterfaces::TCefX509CertificateArray certificates, const Ucefinterfaces::_di_ICefSelectClientCertificateCallback callback); virtual void __fastcall OnRenderViewReady(const Ucefinterfaces::_di_ICefBrowser browser); virtual bool __fastcall OnRenderProcessUnresponsive(const Ucefinterfaces::_di_ICefBrowser browser, const Ucefinterfaces::_di_ICefUnresponsiveProcessCallback callback); virtual void __fastcall OnRenderProcessResponsive(const Ucefinterfaces::_di_ICefBrowser browser); virtual void __fastcall OnRenderProcessTerminated(const Ucefinterfaces::_di_ICefBrowser browser, Uceftypes::TCefTerminationStatus status, int error_code, const Uceftypes::ustring error_string); virtual void __fastcall OnDocumentAvailableInMainFrame(const Ucefinterfaces::_di_ICefBrowser browser); virtual void __fastcall RemoveReferences(); public: __fastcall virtual TCefRequestHandlerOwn(); public: /* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCefRequestHandlerOwn(unsigned size, bool owned) : Ucefbaserefcounted::TCefBaseRefCountedOwn(size, owned) { } /* TCefBaseRefCountedOwn.Destroy */ inline __fastcall virtual ~TCefRequestHandlerOwn() { } private: void *__ICefRequestHandler; // Ucefinterfaces::ICefRequestHandler public: #if defined(MANAGED_INTERFACE_OPERATORS) // {050877A9-D1F8-4EB3-B58E-50DC3E3D39FD} operator Ucefinterfaces::_di_ICefRequestHandler() { Ucefinterfaces::_di_ICefRequestHandler intf; this->GetInterface(intf); return intf; } #else operator Ucefinterfaces::ICefRequestHandler*(void) { return (Ucefinterfaces::ICefRequestHandler*)&__ICefRequestHandler; } #endif }; #pragma pack(pop) #pragma pack(push,4) class PASCALIMPLEMENTATION TCustomRequestHandler : public TCefRequestHandlerOwn { typedef TCefRequestHandlerOwn inherited; protected: void *FEvents; virtual bool __fastcall OnBeforeBrowse(const Ucefinterfaces::_di_ICefBrowser browser, const Ucefinterfaces::_di_ICefFrame frame, const Ucefinterfaces::_di_ICefRequest request, bool user_gesture, bool isRedirect); virtual bool __fastcall OnOpenUrlFromTab(const Ucefinterfaces::_di_ICefBrowser browser, const Ucefinterfaces::_di_ICefFrame frame, const Uceftypes::ustring targetUrl, Uceftypes::TCefWindowOpenDisposition targetDisposition, bool userGesture); virtual void __fastcall GetResourceRequestHandler(const Ucefinterfaces::_di_ICefBrowser browser, const Ucefinterfaces::_di_ICefFrame frame, const Ucefinterfaces::_di_ICefRequest request, bool is_navigation, bool is_download, const Uceftypes::ustring request_initiator, bool &disable_default_handling, Ucefinterfaces::_di_ICefResourceRequestHandler &aResourceRequestHandler); virtual bool __fastcall GetAuthCredentials(const Ucefinterfaces::_di_ICefBrowser browser, const Uceftypes::ustring originUrl, bool isProxy, const Uceftypes::ustring host, int port, const Uceftypes::ustring realm, const Uceftypes::ustring scheme, const Ucefinterfaces::_di_ICefAuthCallback callback); virtual bool __fastcall OnCertificateError(const Ucefinterfaces::_di_ICefBrowser browser, Uceftypes::TCefErrorCode certError, const Uceftypes::ustring requestUrl, const Ucefinterfaces::_di_ICefSslInfo sslInfo, const Ucefinterfaces::_di_ICefCallback callback); virtual bool __fastcall OnSelectClientCertificate(const Ucefinterfaces::_di_ICefBrowser browser, bool isProxy, const Uceftypes::ustring host, int port, System::NativeUInt certificatesCount, const Ucefinterfaces::TCefX509CertificateArray certificates, const Ucefinterfaces::_di_ICefSelectClientCertificateCallback callback); virtual void __fastcall OnRenderViewReady(const Ucefinterfaces::_di_ICefBrowser browser); virtual bool __fastcall OnRenderProcessUnresponsive(const Ucefinterfaces::_di_ICefBrowser browser, const Ucefinterfaces::_di_ICefUnresponsiveProcessCallback callback); virtual void __fastcall OnRenderProcessResponsive(const Ucefinterfaces::_di_ICefBrowser browser); virtual void __fastcall OnRenderProcessTerminated(const Ucefinterfaces::_di_ICefBrowser browser, Uceftypes::TCefTerminationStatus status, int error_code, const Uceftypes::ustring error_string); virtual void __fastcall OnDocumentAvailableInMainFrame(const Ucefinterfaces::_di_ICefBrowser browser); public: __fastcall virtual TCustomRequestHandler(const Ucefinterfaces::_di_IChromiumEvents events); virtual void __fastcall BeforeDestruction(); virtual void __fastcall RemoveReferences(); public: /* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCustomRequestHandler(unsigned size, bool owned) : TCefRequestHandlerOwn(size, owned) { } /* TCefBaseRefCountedOwn.Destroy */ inline __fastcall virtual ~TCustomRequestHandler() { } }; #pragma pack(pop) //-- var, const, procedure --------------------------------------------------- } /* namespace Ucefrequesthandler */ #if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFREQUESTHANDLER) using namespace Ucefrequesthandler; #endif #pragma pack(pop) #pragma option pop #pragma delphiheader end. //-- end unit ---------------------------------------------------------------- #endif // uCEFRequestHandlerHPP