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