OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // Constants used for the Processes API. | 5 // Constants used for the Processes API. |
6 | 6 |
7 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESSES_API_CONSTANTS_H_ | 7 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESSES_API_CONSTANTS_H_ |
8 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESSES_API_CONSTANTS_H_ | 8 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESSES_API_CONSTANTS_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 namespace extension_processes_api_constants { | 11 namespace extension_processes_api_constants { |
12 | 12 |
13 // Keys used in serializing process data & events. | 13 // Process object properties. |
14 extern const char kCpuKey[]; | 14 extern const char kCpuKey[]; |
| 15 extern const char kCssCacheKey[]; |
| 16 extern const char kFPSKey[]; |
15 extern const char kIdKey[]; | 17 extern const char kIdKey[]; |
| 18 extern const char kImageCacheKey[]; |
| 19 extern const char kJsMemoryAllocatedKey[]; |
| 20 extern const char kJsMemoryUsedKey[]; |
16 extern const char kNetworkKey[]; | 21 extern const char kNetworkKey[]; |
| 22 extern const char kOsProcessIdKey[]; |
17 extern const char kPrivateMemoryKey[]; | 23 extern const char kPrivateMemoryKey[]; |
18 extern const char kProcessesKey[]; | 24 extern const char kProcessesKey[]; |
19 extern const char kSharedMemoryKey[]; | 25 extern const char kProfileKey[]; |
| 26 extern const char kScriptCacheKey[]; |
| 27 extern const char kSqliteMemoryKey[]; |
| 28 extern const char kTabsListKey[]; |
20 extern const char kTypeKey[]; | 29 extern const char kTypeKey[]; |
21 | 30 |
| 31 // Process types. |
22 extern const char kProcessTypeBrowser[]; | 32 extern const char kProcessTypeBrowser[]; |
23 extern const char kProcessTypeExtension[]; | 33 extern const char kProcessTypeExtension[]; |
24 extern const char kProcessTypeGPU[]; | 34 extern const char kProcessTypeGPU[]; |
25 extern const char kProcessTypeNacl[]; | 35 extern const char kProcessTypeNacl[]; |
26 extern const char kProcessTypeNotification[]; | 36 extern const char kProcessTypeNotification[]; |
27 extern const char kProcessTypeOther[]; | 37 extern const char kProcessTypeOther[]; |
28 extern const char kProcessTypePlugin[]; | 38 extern const char kProcessTypePlugin[]; |
29 extern const char kProcessTypeRenderer[]; | 39 extern const char kProcessTypeRenderer[]; |
30 extern const char kProcessTypeUtility[]; | 40 extern const char kProcessTypeUtility[]; |
31 extern const char kProcessTypeWorker[]; | 41 extern const char kProcessTypeWorker[]; |
32 | 42 |
| 43 // Cache object properties. |
| 44 extern const char kCacheLiveSize[]; |
| 45 extern const char kCacheSize[]; |
| 46 |
| 47 // Event names. |
| 48 extern const char kOnCreated[]; |
| 49 extern const char kOnExited[]; |
| 50 extern const char kOnUnresponsive[]; |
33 extern const char kOnUpdated[]; | 51 extern const char kOnUpdated[]; |
| 52 extern const char kOnUpdatedWithMemory[]; |
| 53 |
| 54 // Error strings. |
| 55 extern const char kExtensionNotSupported[]; |
| 56 extern const char kProcessNotFound[]; |
34 | 57 |
35 }; // namespace extension_processes_api_constants | 58 }; // namespace extension_processes_api_constants |
36 | 59 |
37 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESSES_API_CONSTANTS_H_ | 60 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESSES_API_CONSTANTS_H_ |
OLD | NEW |