com.tencent.smtt.sdk.WebStorage Java Examples
The following examples show how to use
com.tencent.smtt.sdk.WebStorage.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WebChromeClientWrapper.java From AgentWebX5 with Apache License 2.0 | 5 votes |
@Deprecated public void onExceededDatabaseQuota(String url, String databaseIdentifier, long quota, long estimatedDatabaseSize, long totalQuota, WebStorage.QuotaUpdater quotaUpdater) { // This default implementation passes the current quota back to WebCore. // WebCore will interpret this that new quota was declined. //注掉 // quotaUpdater.updateQuota(quota); if (this.mRealWebChromeClient != null){ this.mRealWebChromeClient.onExceededDatabaseQuota(url, databaseIdentifier, quota, estimatedDatabaseSize, totalQuota, quotaUpdater); return; } super.onExceededDatabaseQuota(url,databaseIdentifier,quota,estimatedDatabaseSize,totalQuota,quotaUpdater); }
Example #2
Source File: WebChromeClientWrapper.java From AgentWebX5 with Apache License 2.0 | 5 votes |
@Deprecated public void onReachedMaxAppCacheSize(long requiredStorage, long quota, WebStorage.QuotaUpdater quotaUpdater) { if (this.mRealWebChromeClient != null){ this.mRealWebChromeClient.onReachedMaxAppCacheSize(requiredStorage, quota, quotaUpdater); return; } super.onReachedMaxAppCacheSize(requiredStorage,quota,quotaUpdater); }
Example #3
Source File: DefaultChromeClient.java From AgentWebX5 with Apache License 2.0 | 5 votes |
@Override public void onExceededDatabaseQuota(String url, String databaseIdentifier, long quota, long estimatedDatabaseSize, long totalQuota, WebStorage.QuotaUpdater quotaUpdater) { if (AgentWebX5Utils.isOverriedMethod(mWebChromeClient, "onExceededDatabaseQuota", ChromePath + ".onExceededDatabaseQuota", String.class, String.class, long.class, long.class, long.class, WebStorage.QuotaUpdater.class)) { super.onExceededDatabaseQuota(url, databaseIdentifier, quota, estimatedDatabaseSize, totalQuota, quotaUpdater); return; } quotaUpdater.updateQuota(totalQuota * 2); }
Example #4
Source File: DefaultChromeClient.java From AgentWebX5 with Apache License 2.0 | 5 votes |
@Override public void onReachedMaxAppCacheSize(long requiredStorage, long quota, WebStorage.QuotaUpdater quotaUpdater) { if (AgentWebX5Utils.isOverriedMethod(mWebChromeClient, "onReachedMaxAppCacheSize", ChromePath + ".onReachedMaxAppCacheSize", long.class, long.class, WebStorage.QuotaUpdater.class)) { super.onReachedMaxAppCacheSize(requiredStorage, quota, quotaUpdater); return; } quotaUpdater.updateQuota(requiredStorage * 2); }
Example #5
Source File: X5WebChromeClient.java From x5webview-cordova-plugin with Apache License 2.0 | 5 votes |
/** * Handle database quota exceeded notification. */ @Override public void onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize, long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater) { LOG.d(LOG_TAG, "onExceededDatabaseQuota estimatedSize: %d currentQuota: %d totalUsedQuota: %d", estimatedSize, currentQuota, totalUsedQuota); quotaUpdater.updateQuota(MAX_QUOTA); }
Example #6
Source File: X5WebChromeClient.java From cordova-plugin-x5-webview with Apache License 2.0 | 5 votes |
/** * Handle database quota exceeded notification. */ public void onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize, long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater) { LOG.d(LOG_TAG, "onExceededDatabaseQuota estimatedSize: %d currentQuota: %d totalUsedQuota: %d", estimatedSize, currentQuota, totalUsedQuota); quotaUpdater.updateQuota(MAX_QUOTA); }
Example #7
Source File: X5WebChromeClient.java From cordova-plugin-x5-tbs with Apache License 2.0 | 5 votes |
/** * Handle database quota exceeded notification. */ @Override public void onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize, long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater) { LOG.d(LOG_TAG, "onExceededDatabaseQuota estimatedSize: %d currentQuota: %d totalUsedQuota: %d", estimatedSize, currentQuota, totalUsedQuota); quotaUpdater.updateQuota(MAX_QUOTA); }
Example #8
Source File: X5WebChromeClient.java From cordova-plugin-x5engine-webview with Apache License 2.0 | 5 votes |
/** * Handle database quota exceeded notification. */ @Override public void onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize, long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater) { LOG.d(LOG_TAG, "onExceededDatabaseQuota estimatedSize: %d currentQuota: %d totalUsedQuota: %d", estimatedSize, currentQuota, totalUsedQuota); quotaUpdater.updateQuota(MAX_QUOTA); }
Example #9
Source File: X5WebChromeClient.java From YCWebView with Apache License 2.0 | 2 votes |
/** * * @param l l * @param l1 l1 * @param quotaUpdater quotaUpdater,WebStorage 用于管理WebView提供的JS存储API, * 比如Application Cache API,Web SQL Database API,HTML5 Web Storage API */ @Override public void onReachedMaxAppCacheSize(long l, long l1, WebStorage.QuotaUpdater quotaUpdater) { super.onReachedMaxAppCacheSize(l, l1, quotaUpdater); }
Example #10
Source File: X5WebChromeClient.java From YCWebView with Apache License 2.0 | 2 votes |
/** * * @param s s * @param s1 s1 * @param l l * @param l1 l1 * @param l2 l2 * @param quotaUpdater quotaUpdater,WebStorage 用于管理WebView提供的JS存储API, * 比如Application Cache API,Web SQL Database API,HTML5 Web Storage API */ @Override public void onExceededDatabaseQuota(String s, String s1, long l, long l1, long l2, WebStorage.QuotaUpdater quotaUpdater) { super.onExceededDatabaseQuota(s, s1, l, l1, l2, quotaUpdater); }
Example #11
Source File: WebChromeClientListener.java From JsBridge with MIT License | 2 votes |
@Override public void onExceededDatabaseQuota(String url, String databaseIdentifier, long quota, long estimatedDatabaseSize, long totalQuota, WebStorage.QuotaUpdater quotaUpdater) { }
Example #12
Source File: WebChromeClientListener.java From JsBridge with MIT License | 2 votes |
@Override public void onReachedMaxAppCacheSize(long requiredStorage, long quota, WebStorage.QuotaUpdater quotaUpdater) { }
Example #13
Source File: OnWebChromeClientListener.java From JsBridge with MIT License | votes |
void onExceededDatabaseQuota(String url, String databaseIdentifier, long quota, long estimatedDatabaseSize, long totalQuota, WebStorage.QuotaUpdater quotaUpdater);
Example #14
Source File: OnWebChromeClientListener.java From JsBridge with MIT License | votes |
void onReachedMaxAppCacheSize(long requiredStorage, long quota, WebStorage.QuotaUpdater quotaUpdater);