/**@class android.webkit.CookieManager @extends java.lang.Object Manages the cookies used by an application's {@link android.webkit.WebView} instances. Cookies are manipulated according to RFC2109. */ var CookieManager = { /**Gets the singleton CookieManager instance. @return {Object {android.webkit.CookieManager}} the singleton CookieManager instance */ getInstance : function( ) {}, /**Sets whether the application's {@link android.webkit.WebView} instances should send and accept cookies. By default this is set to {@code true} and the WebView accepts cookies. <p> When this is {@code true} {@link android.webkit.CookieManager#setAcceptThirdPartyCookies setAcceptThirdPartyCookies} and {@link android.webkit.CookieManager#setAcceptFileSchemeCookies setAcceptFileSchemeCookies} can be used to control the policy for those specific types of cookie. @param {Boolean} accept whether {@link WebView} instances should send and accept cookies */ setAcceptCookie : function( ) {}, /**Gets whether the application's {@link android.webkit.WebView} instances send and accept cookies. @return {Boolean} {@code true} if {@link WebView} instances send and accept cookies */ acceptCookie : function( ) {}, /**Sets whether the {@link android.webkit.WebView} should allow third party cookies to be set. Allowing third party cookies is a per WebView policy and can be set differently on different WebView instances. <p> Apps that target {@link android.os.Build.VERSION_CODES#KITKAT} or below default to allowing third party cookies. Apps targeting {@link android.os.Build.VERSION_CODES#LOLLIPOP} or later default to disallowing third party cookies. @param {Object {WebView}} webview the {@link WebView} instance to set the cookie policy on @param {Boolean} accept whether the {@link WebView} instance should accept third party cookies */ setAcceptThirdPartyCookies : function( ) {}, /**Gets whether the {@link android.webkit.WebView} should allow third party cookies to be set. @param {Object {WebView}} webview the {@link WebView} instance to get the cookie policy for @return {Boolean} {@code true} if the {@link WebView} accepts third party cookies */ acceptThirdPartyCookies : function( ) {}, /**Sets a cookie for the given URL. Any existing cookie with the same host, path and name will be replaced with the new cookie. The cookie being set will be ignored if it is expired. @param {String} url the URL for which the cookie is to be set @param {String} value the cookie as a string, using the format of the 'Set-Cookie' HTTP response header */ setCookie : function( ) {}, /**Sets a cookie for the given URL. Any existing cookie with the same host, path and name will be replaced with the new cookie. The cookie being set will be ignored if it is expired. <p> This method is asynchronous. If a {@link android.webkit.ValueCallback} is provided, {@link android.webkit.ValueCallback#onReceiveValue(T) onReceiveValue()} will be called on the current thread's {@link android.os.Looper} once the operation is complete. The value provided to the callback indicates whether the cookie was set successfully. You can pass {@code null} as the callback if you don't need to know when the operation completes or whether it succeeded, and in this case it is safe to call the method from a thread without a Looper. @param {String} url the URL for which the cookie is to be set @param {String} value the cookie as a string, using the format of the 'Set-Cookie' HTTP response header @param {Object {android.webkit.ValueCallback}} callback a callback to be executed when the cookie has been set */ setCookie : function( ) {}, /**Gets the cookies for the given URL. @param {String} url the URL for which the cookies are requested @return {String} value the cookies as a string, using the format of the 'Cookie' HTTP request header */ getCookie : function( ) {}, /**See {@link #getCookie}(String). @param {String} url the URL for which the cookies are requested @param {Boolean} privateBrowsing whether to use the private browsing cookie jar @return {String} value the cookies as a string, using the format of the 'Cookie' HTTP request header @hide Used by Browser and by WebViewProvider implementations. */ getCookie : function( ) {}, /**Gets cookie(s) for a given uri so that it can be set to "cookie:" in http request header. @param {Object {WebAddress}} uri the WebAddress for which the cookies are requested @return {String} value the cookies as a string, using the format of the 'Cookie' HTTP request header @hide Used by RequestHandle and by WebViewProvider implementations. */ getCookie : function( ) {}, /**Removes all session cookies, which are cookies without an expiration date. @deprecated use {@link #removeSessionCookies(ValueCallback)} instead. */ removeSessionCookie : function( ) {}, /**Removes all session cookies, which are cookies without an expiration date. <p> This method is asynchronous. If a {@link android.webkit.ValueCallback} is provided, {@link android.webkit.ValueCallback#onReceiveValue(T) onReceiveValue()} will be called on the current thread's {@link android.os.Looper} once the operation is complete. The value provided to the callback indicates whether any cookies were removed. You can pass {@code null} as the callback if you don't need to know when the operation completes or whether any cookie were removed, and in this case it is safe to call the method from a thread without a Looper. @param {Object {android.webkit.ValueCallback}} callback a callback which is executed when the session cookies have been removed */ removeSessionCookies : function( ) {}, /**Removes all cookies. @deprecated Use {@link #removeAllCookies(ValueCallback)} instead. */ removeAllCookie : function( ) {}, /**Removes all cookies. <p> This method is asynchronous. If a {@link android.webkit.ValueCallback} is provided, {@link android.webkit.ValueCallback#onReceiveValue(T) onReceiveValue()} will be called on the current thread's {@link android.os.Looper} once the operation is complete. The value provided to the callback indicates whether any cookies were removed. You can pass {@code null} as the callback if you don't need to know when the operation completes or whether any cookies were removed, and in this case it is safe to call the method from a thread without a Looper. @param {Object {android.webkit.ValueCallback}} callback a callback which is executed when the cookies have been removed */ removeAllCookies : function( ) {}, /**Gets whether there are stored cookies. @return {Boolean} {@code true} if there are stored cookies */ hasCookies : function( ) {}, /**See {@link #hasCookies}(). @param {Boolean} privateBrowsing whether to use the private browsing cookie jar @hide Used by Browser and WebViewProvider implementations. */ hasCookies : function( ) {}, /**Removes all expired cookies. @deprecated The WebView handles removing expired cookies automatically. */ removeExpiredCookie : function( ) {}, /**Ensures all cookies currently accessible through the getCookie API are written to persistent storage. This call will block the caller until it is done and may perform I/O. */ flush : function( ) {}, /**Gets whether the application's {@link android.webkit.WebView} instances send and accept cookies for file scheme URLs. @return {Boolean} {@code true} if {@link WebView} instances send and accept cookies for file scheme URLs */ allowFileSchemeCookies : function( ) {}, /**Sets whether the application's {@link android.webkit.WebView} instances should send and accept cookies for file scheme URLs. Use of cookies with file scheme URLs is potentially insecure and turned off by default. Do not use this feature unless you can be sure that no unintentional sharing of cookie data can take place. <p> Note that calls to this method will have no effect if made after a {@link android.webkit.WebView} or CookieManager instance has been created. */ setAcceptFileSchemeCookies : function( ) {}, };