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 kIdKey[] = "id";
15const char kImageCacheKey[] = "imageCache";
16const char kJsMemoryAllocatedKey[] = "jsMemoryAllocated";
17const char kJsMemoryUsedKey[] = "jsMemoryUsed";
18const char kNaClDebugPortKey[] = "naclDebugPort";
19const char kNetworkKey[] = "network";
20const char kOsProcessIdKey[] = "osProcessId";
21const char kPrivateMemoryKey[] = "privateMemory";
22const char kProfileKey[] = "profile";
23const char kScriptCacheKey[] = "scriptCache";
24const char kSqliteMemoryKey[] = "sqliteMemory";
25const char kTabsListKey[] = "tabs";
26const char kTitleKey[] = "title";
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[] = "processes.onCreated";
47const char kOnExited[] = "processes.onExited";
48const char kOnUnresponsive[] = "processes.onUnresponsive";
49const char kOnUpdated[] = "processes.onUpdated";
50const char kOnUpdatedWithMemory[] = "processes.onUpdatedWithMemory";
51
52// Error strings.
53const char kExtensionNotSupported[] =
54    "The Processes extension API is not supported on this platform.";
55const char kProcessNotFound[] = "Process not found: *.";
56
57}  // namespace processes_api_constants
58
59}  // namespace extensions
60