OLD | NEW |
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_PUBLIC_BROWSER_BROWSER_THREAD_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ |
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ | 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // This is the thread that interacts with the database. | 69 // This is the thread that interacts with the database. |
70 DB, | 70 DB, |
71 | 71 |
72 // This is the "main" thread for WebKit within the browser process when | 72 // This is the "main" thread for WebKit within the browser process when |
73 // NOT in --single-process mode. | 73 // NOT in --single-process mode. |
74 WEBKIT, | 74 WEBKIT, |
75 | 75 |
76 // This is the thread that interacts with the file system. | 76 // This is the thread that interacts with the file system. |
77 FILE, | 77 FILE, |
78 | 78 |
| 79 // Used for file system operations that block user interactions. |
| 80 // Responsiveness of this thread affect users. |
| 81 FILE_USER_BLOCKING, |
| 82 |
79 // Used to launch and terminate Chrome processes. | 83 // Used to launch and terminate Chrome processes. |
80 PROCESS_LAUNCHER, | 84 PROCESS_LAUNCHER, |
81 | 85 |
82 // This is the thread to handle slow HTTP cache operations. | 86 // This is the thread to handle slow HTTP cache operations. |
83 CACHE, | 87 CACHE, |
84 | 88 |
85 // This is the thread that processes IPC and network messages. | 89 // This is the thread that processes IPC and network messages. |
86 IO, | 90 IO, |
87 | 91 |
88 #if defined(OS_CHROMEOS) | 92 #if defined(OS_CHROMEOS) |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 private: | 256 private: |
253 friend class BrowserThreadImpl; | 257 friend class BrowserThreadImpl; |
254 | 258 |
255 BrowserThread() {} | 259 BrowserThread() {} |
256 DISALLOW_COPY_AND_ASSIGN(BrowserThread); | 260 DISALLOW_COPY_AND_ASSIGN(BrowserThread); |
257 }; | 261 }; |
258 | 262 |
259 } // namespace content | 263 } // namespace content |
260 | 264 |
261 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ | 265 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ |
OLD | NEW |