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 3 // found in the LICENSE file. 4 5 // Constants used for the Processes API. 6 7 #ifndef CHROME_BROWSER_EXTENSIONS_API_PROCESSES_PROCESSES_API_CONSTANTS_H_ 8 #define CHROME_BROWSER_EXTENSIONS_API_PROCESSES_PROCESSES_API_CONSTANTS_H_ 9 10 namespace extensions { 11 12 namespace processes_api_constants { 13 14 // Process object properties. 15 extern const char kCpuKey[]; 16 extern const char kCssCacheKey[]; 17 extern const char kIdKey[]; 18 extern const char kImageCacheKey[]; 19 extern const char kJsMemoryAllocatedKey[]; 20 extern const char kJsMemoryUsedKey[]; 21 extern const char kNaClDebugPortKey[]; 22 extern const char kNetworkKey[]; 23 extern const char kOsProcessIdKey[]; 24 extern const char kPrivateMemoryKey[]; 25 extern const char kProfileKey[]; 26 extern const char kScriptCacheKey[]; 27 extern const char kSqliteMemoryKey[]; 28 extern const char kTabsListKey[]; 29 extern const char kTitleKey[]; 30 extern const char kTypeKey[]; 31 32 // Process types. 33 extern const char kProcessTypeBrowser[]; 34 extern const char kProcessTypeExtension[]; 35 extern const char kProcessTypeGPU[]; 36 extern const char kProcessTypeNacl[]; 37 extern const char kProcessTypeNotification[]; 38 extern const char kProcessTypeOther[]; 39 extern const char kProcessTypePlugin[]; 40 extern const char kProcessTypeRenderer[]; 41 extern const char kProcessTypeUtility[]; 42 extern const char kProcessTypeWorker[]; 43 44 // Cache object properties. 45 extern const char kCacheLiveSize[]; 46 extern const char kCacheSize[]; 47 48 // Event names. 49 extern const char kOnCreated[]; 50 extern const char kOnExited[]; 51 extern const char kOnUnresponsive[]; 52 extern const char kOnUpdated[]; 53 extern const char kOnUpdatedWithMemory[]; 54 55 // Error strings. 56 extern const char kExtensionNotSupported[]; 57 extern const char kProcessNotFound[]; 58 59 } // namespace processes_api_constants 60 61 } // namespace extensions 62 63 #endif // CHROME_BROWSER_EXTENSIONS_API_PROCESSES_PROCESSES_API_CONSTANTS_H_ 64