Chromium Code Reviews| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 72 // Used for file system operations that block user interactions. | 72 // Used for file system operations that block user interactions. |
| 73 // Responsiveness of this thread affect users. | 73 // Responsiveness of this thread affect users. |
| 74 FILE_USER_BLOCKING, | 74 FILE_USER_BLOCKING, |
| 75 | 75 |
| 76 // Used to launch and terminate Chrome processes. | 76 // Used to launch and terminate Chrome processes. |
| 77 PROCESS_LAUNCHER, | 77 PROCESS_LAUNCHER, |
| 78 | 78 |
| 79 // This is the thread to handle slow HTTP cache operations. | 79 // This is the thread to handle slow HTTP cache operations. |
| 80 CACHE, | 80 CACHE, |
| 81 | 81 |
| 82 // This is the thread used to manipulate Java objects injected using the | |
| 83 // Java Bridge. | |
| 84 JAVA_BRIDGE, | |
|
joth
2011/12/08 18:25:54
could this go in #if defined, like WEB_SOCKET_PROX
Steve Block
2011/12/09 12:39:10
It could, but I thought the policy was to minimize
| |
| 85 | |
| 82 // This is the thread that processes IPC and network messages. | 86 // This is the thread that processes IPC and network messages. |
| 83 IO, | 87 IO, |
| 84 | 88 |
| 85 #if defined(OS_CHROMEOS) | 89 #if defined(OS_CHROMEOS) |
| 86 // This thread runs websocket to TCP proxy. | 90 // This thread runs websocket to TCP proxy. |
| 87 // TODO(dilmah): remove this thread, instead implement this functionality | 91 // TODO(dilmah): remove this thread, instead implement this functionality |
| 88 // as hooks into websocket layer. | 92 // as hooks into websocket layer. |
| 89 WEB_SOCKET_PROXY, | 93 WEB_SOCKET_PROXY, |
| 90 #endif | 94 #endif |
| 91 | 95 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 242 private: | 246 private: |
| 243 friend class BrowserThreadImpl; | 247 friend class BrowserThreadImpl; |
| 244 | 248 |
| 245 BrowserThread() {} | 249 BrowserThread() {} |
| 246 DISALLOW_COPY_AND_ASSIGN(BrowserThread); | 250 DISALLOW_COPY_AND_ASSIGN(BrowserThread); |
| 247 }; | 251 }; |
| 248 | 252 |
| 249 } // namespace content | 253 } // namespace content |
| 250 | 254 |
| 251 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ | 255 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ |
| OLD | NEW |