Merge "Close idle connections on pause timers"

This commit is contained in:
Kristian Monsen
2011-09-01 20:30:19 -07:00
committed by Android (Google) Code Review

View File

@@ -538,6 +538,8 @@ public final class WebViewCore {
private native void nativeSendListBoxChoice(int choice);
private native void nativeCloseIdleConnections();
/* Tell webkit what its width and height are, for the purposes
of layout/line-breaking. These coordinates are in document space,
which is the same as View coords unless we have zoomed the document
@@ -1262,6 +1264,8 @@ public final class WebViewCore {
if (!JniUtil.useChromiumHttpStack()) {
WebViewWorker.getHandler().sendEmptyMessage(
WebViewWorker.MSG_PAUSE_CACHE_TRANSACTION);
} else {
nativeCloseIdleConnections();
}
break;