summaryrefslogtreecommitdiffstats
path: root/content/browser/browser_main_loop.cc
diff options
context:
space:
mode:
authormichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-07 01:25:30 +0000
committermichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-07 01:25:30 +0000
commit31dbf9db05bd3b6ac944cd2133d84a99a2401ad7 (patch)
tree5bdfbe6212f1815c212c5dfdfe1c44aa8b92952e /content/browser/browser_main_loop.cc
parentacc32d123e055aa4c2c11538c8405164ef9c9998 (diff)
downloadchromium_src-31dbf9db05bd3b6ac944cd2133d84a99a2401ad7.zip
chromium_src-31dbf9db05bd3b6ac944cd2133d84a99a2401ad7.tar.gz
chromium_src-31dbf9db05bd3b6ac944cd2133d84a99a2401ad7.tar.bz2
Create a secondary file thread, FILE_USER_BLOCKING, for tasks requiring file IO which have user waiting for the results. Process appcache background tasks on that thread.
BUG=68894,78359 Review URL: http://codereview.chromium.org/8366020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113317 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/browser_main_loop.cc')
-rw-r--r--content/browser/browser_main_loop.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index e29a6b1..1e0808c 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -322,6 +322,9 @@ void BrowserMainLoop::RunMainMessageLoopParts(
// Special case as WebKitThread is a separate
// type. |thread_to_start| is not used in this case.
break;
+ case BrowserThread::FILE_USER_BLOCKING:
+ thread_to_start = &file_user_blocking_thread_;
+ break;
case BrowserThread::FILE:
thread_to_start = &file_thread_;
#if defined(OS_WIN)
@@ -448,6 +451,9 @@ void BrowserMainLoop::ShutdownThreadsAndCleanUp() {
// Special case as WebKitThread is a separate
// type. |thread_to_stop| is not used in this case.
break;
+ case BrowserThread::FILE_USER_BLOCKING:
+ thread_to_stop = &file_user_blocking_thread_;
+ break;
case BrowserThread::FILE:
thread_to_stop = &file_thread_;
break;