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 #include "chrome/browser/extensions/extension_processes_api_constants.h" | 5 #include "chrome/browser/extensions/extension_processes_api_constants.h" |
6 | 6 |
7 namespace extension_processes_api_constants { | 7 namespace extension_processes_api_constants { |
8 | 8 |
| 9 // Process object properties. |
9 const char kCpuKey[] = "cpu"; | 10 const char kCpuKey[] = "cpu"; |
| 11 const char kCssCacheKey[] = "cssCache"; |
| 12 const char kFPSKey[] = "fps"; |
10 const char kIdKey[] = "id"; | 13 const char kIdKey[] = "id"; |
| 14 const char kImageCacheKey[] = "imageCache"; |
| 15 const char kJsMemoryAllocatedKey[] = "jsMemoryAllocated"; |
| 16 const char kJsMemoryUsedKey[] = "jsMemoryUsed"; |
11 const char kNetworkKey[] = "network"; | 17 const char kNetworkKey[] = "network"; |
| 18 const char kOsProcessIdKey[] = "osProcessId"; |
12 const char kPrivateMemoryKey[] = "privateMemory"; | 19 const char kPrivateMemoryKey[] = "privateMemory"; |
13 const char kProcessesKey[] = "processes"; | 20 const char kProcessesKey[] = "processes"; |
14 const char kSharedMemoryKey[] = "sharedMemory"; | 21 const char kProfileKey[] = "profile"; |
| 22 const char kScriptCacheKey[] = "scriptCache"; |
| 23 const char kSqliteMemoryKey[] = "sqliteMemory"; |
| 24 const char kTabsListKey[] = "tabs"; |
15 const char kTypeKey[] = "type"; | 25 const char kTypeKey[] = "type"; |
16 | 26 |
| 27 // Process types. |
17 const char kProcessTypeBrowser[] = "browser"; | 28 const char kProcessTypeBrowser[] = "browser"; |
18 const char kProcessTypeExtension[] = "extension"; | 29 const char kProcessTypeExtension[] = "extension"; |
19 const char kProcessTypeGPU[] = "gpu"; | 30 const char kProcessTypeGPU[] = "gpu"; |
20 const char kProcessTypeNacl[] = "nacl"; | 31 const char kProcessTypeNacl[] = "nacl"; |
21 const char kProcessTypeNotification[] = "notification"; | 32 const char kProcessTypeNotification[] = "notification"; |
22 const char kProcessTypeOther[] = "other"; | 33 const char kProcessTypeOther[] = "other"; |
23 const char kProcessTypePlugin[] = "plugin"; | 34 const char kProcessTypePlugin[] = "plugin"; |
24 const char kProcessTypeRenderer[] = "renderer"; | 35 const char kProcessTypeRenderer[] = "renderer"; |
25 const char kProcessTypeUtility[] = "utility"; | 36 const char kProcessTypeUtility[] = "utility"; |
26 const char kProcessTypeWorker[] = "worker"; | 37 const char kProcessTypeWorker[] = "worker"; |
27 | 38 |
| 39 // Cache object properties. |
| 40 const char kCacheLiveSize[] = "liveSize"; |
| 41 const char kCacheSize[] = "size"; |
| 42 |
| 43 // Event names. |
| 44 const char kOnCreated[] = "experimental.processes.onCreated"; |
| 45 const char kOnExited[] = "experimental.processes.onExited"; |
| 46 const char kOnUnresponsive[] = "experimental.processes.onUnresponsive"; |
28 const char kOnUpdated[] = "experimental.processes.onUpdated"; | 47 const char kOnUpdated[] = "experimental.processes.onUpdated"; |
| 48 const char kOnUpdatedWithMemory[] = |
| 49 "experimental.processes.onUpdatedWithMemory"; |
| 50 |
| 51 // Error strings. |
| 52 const char kExtensionNotSupported[] = |
| 53 "The Processes extension API is not supported on this platform."; |
| 54 const char kProcessNotFound[] = "Process not found: *."; |
29 | 55 |
30 } // namespace extension_processes_api_constants | 56 } // namespace extension_processes_api_constants |
OLD | NEW |