From 496122b446d2084f6117e2b8704d7c9ec6706422 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 8 Aug 2020 22:02:14 +0300 Subject: Handling "about:home"; GmRequest decoupling GmRequest is given a pointer to the GmCerts to use. Also, timeouts are handled via a posted command so they get processed in the main thread. --- src/gmrequest.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gmrequest.h') diff --git a/src/gmrequest.h b/src/gmrequest.h index 3b2ee3b3..05290128 100644 --- a/src/gmrequest.h +++ b/src/gmrequest.h @@ -5,6 +5,7 @@ #include "gmutil.h" +iDeclareType(GmCerts) iDeclareType(GmResponse) enum iGmCertFlags { @@ -30,11 +31,13 @@ iGmResponse * copy_GmResponse (const iGmResponse *); /*----------------------------------------------------------------------------------------------*/ iDeclareClass(GmRequest) -iDeclareObjectConstruction(GmRequest) +iDeclareObjectConstructionArgs(GmRequest, iGmCerts *) iDeclareNotifyFunc(GmRequest, Updated) +iDeclareNotifyFunc(GmRequest, Timeout) iDeclareNotifyFunc(GmRequest, Finished) iDeclareAudienceGetter(GmRequest, updated) +iDeclareAudienceGetter(GmRequest, timeout) iDeclareAudienceGetter(GmRequest, finished) void setUrl_GmRequest (iGmRequest *, const iString *url); -- cgit v1.2.3