Update cookie funcs to return newdecl Cookie (#1379)

This commit is contained in:
Arron Vinyard 2020-11-07 16:16:29 -05:00 committed by GitHub
parent 1cd0efad41
commit 0caa349f6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,8 @@ methodmap Cookie < Handle {
// no longer needed.
//
// @param name Name of cookie to find.
// @return A handle to the cookie if it is found. INVALID_HANDLE otherwise.
// @return A handle to the cookie if it is found, null otherwise.
public static native Cookie Find(const char[] name);
// Set the value of a Client preference cookie.
@ -183,7 +184,7 @@ methodmap Cookie < Handle {
* exists, a handle to it will still be returned.
* @error Cookie name is blank.
*/
native Handle RegClientCookie(const char[] name, const char[] description, CookieAccess access);
native Cookie RegClientCookie(const char[] name, const char[] description, CookieAccess access);
/**
* Searches for a Client preference cookie.
@ -192,9 +193,10 @@ native Handle RegClientCookie(const char[] name, const char[] description, Cooki
* no longer needed.
*
* @param name Name of cookie to find.
* @return A handle to the cookie if it is found. INVALID_HANDLE otherwise.
* @return A handle to the cookie if it is found, null otherwise.
*/
native Handle FindClientCookie(const char[] name);
native Cookie FindClientCookie(const char[] name);
/**
* Set the value of a Client preference cookie.