summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authormbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-14 01:02:53 +0000
committermbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-14 01:02:53 +0000
commitc40acc381fce1ac7f58975d45bd88e26a5e4a973 (patch)
treec7ad6b6abbf1ce022f2f74e6ae70d941072cacde /chrome/renderer
parent9263a4957be27c1c3e0aec8170b6f161619300ca (diff)
downloadchromium_src-c40acc381fce1ac7f58975d45bd88e26a5e4a973.zip
chromium_src-c40acc381fce1ac7f58975d45bd88e26a5e4a973.tar.gz
chromium_src-c40acc381fce1ac7f58975d45bd88e26a5e4a973.tar.bz2
Rename CloseIdleConnections -> CloseCurrentConnections.
This method is (and was) just for debugging; while it was closing idle connections, that was not aggressive enough; the benchmark needs to close all connections, not just the idle ones. To ensure connections are abandoned, create a new pool; leaving the old pool to languish as any pending sockets die. BUG=none TEST=none Review URL: http://codereview.chromium.org/549031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36208 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/render_thread.cc4
-rw-r--r--chrome/renderer/render_thread.h4
-rw-r--r--chrome/renderer/renderer_glue.cc4
3 files changed, 6 insertions, 6 deletions
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc
index 632adab..0a5fe6a 100644
--- a/chrome/renderer/render_thread.cc
+++ b/chrome/renderer/render_thread.cc
@@ -482,8 +482,8 @@ void RenderThread::InformHostOfCacheStatsLater() {
kCacheStatsDelayMS);
}
-void RenderThread::CloseIdleConnections() {
- Send(new ViewHostMsg_CloseIdleConnections());
+void RenderThread::CloseCurrentConnections() {
+ Send(new ViewHostMsg_CloseCurrentConnections());
}
void RenderThread::SetCacheMode(bool enabled) {
diff --git a/chrome/renderer/render_thread.h b/chrome/renderer/render_thread.h
index 6769b06..bde662a 100644
--- a/chrome/renderer/render_thread.h
+++ b/chrome/renderer/render_thread.h
@@ -140,8 +140,8 @@ class RenderThread : public RenderThreadBase,
// bookkeeping operation off the critical latency path.
void InformHostOfCacheStatsLater();
- // Sends a message to the browser to close all idle connections.
- void CloseIdleConnections();
+ // Sends a message to the browser to close all connections.
+ void CloseCurrentConnections();
// Sends a message to the browser to enable or disable the disk cache.
void SetCacheMode(bool enabled);
diff --git a/chrome/renderer/renderer_glue.cc b/chrome/renderer/renderer_glue.cc
index c3d1fe7..ec9e3b2 100644
--- a/chrome/renderer/renderer_glue.cc
+++ b/chrome/renderer/renderer_glue.cc
@@ -238,8 +238,8 @@ void NotifyCacheStats() {
RenderThread::current()->InformHostOfCacheStatsLater();
}
-void CloseIdleConnections() {
- RenderThread::current()->CloseIdleConnections();
+void CloseCurrentConnections() {
+ RenderThread::current()->CloseCurrentConnections();
}
void SetCacheMode(bool enabled) {