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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
73 | 73 |
74 // Used to launch and terminate Chrome processes. | 74 // Used to launch and terminate Chrome processes. |
75 PROCESS_LAUNCHER, | 75 PROCESS_LAUNCHER, |
76 | 76 |
77 // This is the thread to handle slow HTTP cache operations. | 77 // This is the thread to handle slow HTTP cache operations. |
78 CACHE, | 78 CACHE, |
79 | 79 |
80 // This is the thread that processes IPC and network messages. | 80 // This is the thread that processes IPC and network messages. |
81 IO, | 81 IO, |
82 | 82 |
83 // This is the thread to get system power consumption. | |
84 POWER_PROFILER, | |
pfeldman
2014/01/09 11:38:58
You don't want a named thread for this.
| |
85 | |
83 // NOTE: do not add new threads here that are only used by a small number of | 86 // NOTE: do not add new threads here that are only used by a small number of |
84 // files. Instead you should just use a Thread class and pass its | 87 // files. Instead you should just use a Thread class and pass its |
85 // MessageLoopProxy around. Named threads there are only for threads that | 88 // MessageLoopProxy around. Named threads there are only for threads that |
86 // are used in many places. | 89 // are used in many places. |
87 | 90 |
88 // This identifier does not represent a thread. Instead it counts the | 91 // This identifier does not represent a thread. Instead it counts the |
89 // number of well-known threads. Insert new well-known threads before this | 92 // number of well-known threads. Insert new well-known threads before this |
90 // identifier. | 93 // identifier. |
91 ID_COUNT | 94 ID_COUNT |
92 }; | 95 }; |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
269 private: | 272 private: |
270 friend class BrowserThreadImpl; | 273 friend class BrowserThreadImpl; |
271 | 274 |
272 BrowserThread() {} | 275 BrowserThread() {} |
273 DISALLOW_COPY_AND_ASSIGN(BrowserThread); | 276 DISALLOW_COPY_AND_ASSIGN(BrowserThread); |
274 }; | 277 }; |
275 | 278 |
276 } // namespace content | 279 } // namespace content |
277 | 280 |
278 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ | 281 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ |
OLD | NEW |