Methods Summary |
---|
public synchronized boolean | acceptCookie()
return mChromeCookieManager.acceptCookie();
|
public synchronized boolean | acceptThirdPartyCookies(android.webkit.WebView webView)
return webView.getSettings().getAcceptThirdPartyCookies();
|
protected boolean | allowFileSchemeCookiesImpl()
return mChromeCookieManager.allowFileSchemeCookies();
|
private static java.lang.String | fixupUrl(java.lang.String url)
// WebAddress is a private API in the android framework and a "quirk"
// of the Classic WebView implementation that allowed embedders to
// be relaxed about what URLs they passed into the CookieManager, so we
// do the same normalisation before entering the chromium stack.
return new WebAddress(url).toString();
|
public void | flush()
mChromeCookieManager.flushCookieStore();
|
public synchronized java.lang.String | getCookie(android.net.WebAddress uri)IMPORTANT: This override is required for compatibility with the API 21 version of
{@link CookieManager}.
return mChromeCookieManager.getCookie(uri.toString());
|
public java.lang.String | getCookie(java.lang.String url)
try {
return mChromeCookieManager.getCookie(fixupUrl(url));
} catch (ParseException e) {
Log.e(LOGTAG, "Unable to get cookies due to error parsing URL: " + url, e);
return null;
}
|
public java.lang.String | getCookie(java.lang.String url, boolean privateBrowsing)
return getCookie(url);
|
public synchronized boolean | hasCookies()
return mChromeCookieManager.hasCookies();
|
public synchronized boolean | hasCookies(boolean privateBrowsing)
return mChromeCookieManager.hasCookies();
|
public void | removeAllCookie()
mChromeCookieManager.removeAllCookies();
|
public void | removeAllCookies(android.webkit.ValueCallback callback)
mChromeCookieManager.removeAllCookies(callback);
|
public void | removeExpiredCookie()
mChromeCookieManager.removeExpiredCookie();
|
public void | removeSessionCookie()
mChromeCookieManager.removeSessionCookies();
|
public void | removeSessionCookies(android.webkit.ValueCallback callback)
mChromeCookieManager.removeSessionCookies(callback);
|
public synchronized void | setAcceptCookie(boolean accept)
mChromeCookieManager.setAcceptCookie(accept);
|
protected void | setAcceptFileSchemeCookiesImpl(boolean accept)
mChromeCookieManager.setAcceptFileSchemeCookies(accept);
|
public synchronized void | setAcceptThirdPartyCookies(android.webkit.WebView webView, boolean accept)
webView.getSettings().setAcceptThirdPartyCookies(accept);
|
public void | setCookie(java.lang.String url, java.lang.String value)
try {
mChromeCookieManager.setCookie(fixupUrl(url), value);
} catch (ParseException e) {
Log.e(LOGTAG, "Not setting cookie due to error parsing URL: " + url, e);
}
|
public void | setCookie(java.lang.String url, java.lang.String value, android.webkit.ValueCallback callback)
try {
mChromeCookieManager.setCookie(fixupUrl(url), value, callback);
} catch (ParseException e) {
Log.e(LOGTAG, "Not setting cookie due to error parsing URL: " + url, e);
}
|