Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Side by Side Diff: content/browser/browser_thread.h

Issue 8366020: Create a secondary file thread, FILE_USER_BLOCKING... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_BROWSER_THREAD_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_THREAD_H_
6 #define CONTENT_BROWSER_BROWSER_THREAD_H_ 6 #define CONTENT_BROWSER_BROWSER_THREAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 // This is the thread that interacts with the file system. 59 // This is the thread that interacts with the file system.
60 FILE, 60 FILE,
61 61
62 // Used to launch and terminate Chrome processes. 62 // Used to launch and terminate Chrome processes.
63 PROCESS_LAUNCHER, 63 PROCESS_LAUNCHER,
64 64
65 // This is the thread to handle slow HTTP cache operations. 65 // This is the thread to handle slow HTTP cache operations.
66 CACHE, 66 CACHE,
67 67
68 // Used to handle appcache fileio operations.
69 APPCACHE,
rvargas (doing something else) 2011/10/21 19:46:17 ditto: before the cache thread?
70
68 // This is the thread that processes IPC and network messages. 71 // This is the thread that processes IPC and network messages.
69 IO, 72 IO,
70 73
71 #if defined(OS_CHROMEOS) 74 #if defined(OS_CHROMEOS)
72 // This thread runs websocket to TCP proxy. 75 // This thread runs websocket to TCP proxy.
73 // TODO(dilmah): remove this thread, instead implement this functionality 76 // TODO(dilmah): remove this thread, instead implement this functionality
74 // as hooks into websocket layer. 77 // as hooks into websocket layer.
75 WEB_SOCKET_PROXY, 78 WEB_SOCKET_PROXY,
76 #endif 79 #endif
77 80
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 static base::Lock lock_; 245 static base::Lock lock_;
243 246
244 // An array of the BrowserThread objects. This array is protected by |lock_|. 247 // An array of the BrowserThread objects. This array is protected by |lock_|.
245 // The threads are not owned by this array. Typically, the threads are owned 248 // The threads are not owned by this array. Typically, the threads are owned
246 // on the UI thread by the g_browser_process object. BrowserThreads remove 249 // on the UI thread by the g_browser_process object. BrowserThreads remove
247 // themselves from this array upon destruction. 250 // themselves from this array upon destruction.
248 static BrowserThread* browser_threads_[ID_COUNT]; 251 static BrowserThread* browser_threads_[ID_COUNT];
249 }; 252 };
250 253
251 #endif // CONTENT_BROWSER_BROWSER_THREAD_H_ 254 #endif // CONTENT_BROWSER_BROWSER_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698