/packages/cocoaint/src/foundation/NSHTTPCookieStorage.inc

https://github.com/slibre/freepascal · Pascal · 77 lines · 27 code · 18 blank · 32 comment · 0 complexity · 5ef986ace6f82da5ade67aaca6d5f663 MD5 · raw file

  1. { Parsed from Foundation.framework NSHTTPCookieStorage.h }
  2. {$ifdef TYPES}
  3. {$ifndef NSHTTPCOOKIESTORAGE_PAS_T}
  4. {$define NSHTTPCOOKIESTORAGE_PAS_T}
  5. { Constants }
  6. const
  7. NSHTTPCookieAcceptPolicyAlways = 0;
  8. NSHTTPCookieAcceptPolicyNever = 1;
  9. NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain = 2;
  10. { Types }
  11. type
  12. NSHTTPCookieAcceptPolicy = NSUInteger;
  13. NSHTTPCookieAcceptPolicyPtr = ^NSHTTPCookieAcceptPolicy;
  14. {$endif}
  15. {$endif}
  16. {$ifdef RECORDS}
  17. {$ifndef NSHTTPCOOKIESTORAGE_PAS_R}
  18. {$define NSHTTPCOOKIESTORAGE_PAS_R}
  19. {$endif}
  20. {$endif}
  21. {$ifdef FUNCTIONS}
  22. {$ifndef NSHTTPCOOKIESTORAGE_PAS_F}
  23. {$define NSHTTPCOOKIESTORAGE_PAS_F}
  24. {$endif}
  25. {$endif}
  26. {$ifdef EXTERNAL_SYMBOLS}
  27. {$ifndef NSHTTPCOOKIESTORAGE_PAS_S}
  28. {$define NSHTTPCOOKIESTORAGE_PAS_S}
  29. { External string constants }
  30. var
  31. NSHTTPCookieManagerAcceptPolicyChangedNotification: NSString; cvar; external;
  32. NSHTTPCookieManagerCookiesChangedNotification: NSString; cvar; external;
  33. {$endif}
  34. {$endif}
  35. {$ifdef FORWARD}
  36. NSHTTPCookieStorage = objcclass;
  37. NSHTTPCookieStoragePointer = ^NSHTTPCookieStorage;
  38. NSHTTPCookieStoragePtr = NSHTTPCookieStoragePointer;
  39. {$endif}
  40. {$ifdef CLASSES}
  41. {$ifndef NSHTTPCOOKIESTORAGE_PAS_C}
  42. {$define NSHTTPCOOKIESTORAGE_PAS_C}
  43. { NSHTTPCookieStorage }
  44. NSHTTPCookieStorage = objcclass external (NSObject)
  45. private
  46. _internal: NSHTTPCookieStorageInternal;
  47. public
  48. class function sharedHTTPCookieStorage: NSHTTPCookieStorage; message 'sharedHTTPCookieStorage';
  49. function initWithStorageLocation(storageFileURL: NSURL): id; message 'initWithStorageLocation:';
  50. function cookies: NSArray; message 'cookies';
  51. procedure setCookie(cookie: NSHTTPCookie); message 'setCookie:';
  52. procedure deleteCookie(cookie: NSHTTPCookie); message 'deleteCookie:';
  53. function cookiesForURL(URL: NSURL): NSArray; message 'cookiesForURL:';
  54. procedure setCookies_forURL_mainDocumentURL(cookies_: NSArray; URL: NSURL; mainDocumentURL: NSURL); message 'setCookies:forURL:mainDocumentURL:';
  55. function cookieAcceptPolicy: NSHTTPCookieAcceptPolicy; message 'cookieAcceptPolicy';
  56. procedure setCookieAcceptPolicy(cookieAcceptPolicy_: NSHTTPCookieAcceptPolicy); message 'setCookieAcceptPolicy:';
  57. end;
  58. {$endif}
  59. {$endif}