OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // An enumeration of the well-known threads. | 57 // An enumeration of the well-known threads. |
58 // NOTE: threads must be listed in the order of their life-time, with each | 58 // NOTE: threads must be listed in the order of their life-time, with each |
59 // thread outliving every other thread below it. | 59 // thread outliving every other thread below it. |
60 enum ID { | 60 enum ID { |
61 // The main thread in the browser. | 61 // The main thread in the browser. |
62 UI, | 62 UI, |
63 | 63 |
64 // This is the thread that interacts with the database. | 64 // This is the thread that interacts with the database. |
65 DB, | 65 DB, |
66 | 66 |
67 // This is the "main" thread for WebKit within the browser process when | |
68 // NOT in --single-process mode. | |
69 // Deprecated: Do not design new code to use this thread; see | |
70 // http://crbug.com/106839 | |
71 WEBKIT_DEPRECATED, | |
72 | |
73 // This is the thread that interacts with the file system. | 67 // This is the thread that interacts with the file system. |
74 FILE, | 68 FILE, |
75 | 69 |
76 // Used for file system operations that block user interactions. | 70 // Used for file system operations that block user interactions. |
77 // Responsiveness of this thread affect users. | 71 // Responsiveness of this thread affect users. |
78 FILE_USER_BLOCKING, | 72 FILE_USER_BLOCKING, |
79 | 73 |
80 // Used to launch and terminate Chrome processes. | 74 // Used to launch and terminate Chrome processes. |
81 PROCESS_LAUNCHER, | 75 PROCESS_LAUNCHER, |
82 | 76 |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 private: | 265 private: |
272 friend class BrowserThreadImpl; | 266 friend class BrowserThreadImpl; |
273 | 267 |
274 BrowserThread() {} | 268 BrowserThread() {} |
275 DISALLOW_COPY_AND_ASSIGN(BrowserThread); | 269 DISALLOW_COPY_AND_ASSIGN(BrowserThread); |
276 }; | 270 }; |
277 | 271 |
278 } // namespace content | 272 } // namespace content |
279 | 273 |
280 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ | 274 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ |
OLD | NEW |