- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / extensions / api / processes / processes_api_constants.cc
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
7 namespace extensions {
8
9 namespace processes_api_constants {
10
11 // Process object properties.
12 const char kCpuKey[] = "cpu";
13 const char kCssCacheKey[] = "cssCache";
14 const char kFPSKey[] = "fps";
15 const char kIdKey[] = "id";
16 const char kImageCacheKey[] = "imageCache";
17 const char kJsMemoryAllocatedKey[] = "jsMemoryAllocated";
18 const char kJsMemoryUsedKey[] = "jsMemoryUsed";
19 const char kNetworkKey[] = "network";
20 const char kOsProcessIdKey[] = "osProcessId";
21 const char kPrivateMemoryKey[] = "privateMemory";
22 const char kProfileKey[] = "profile";
23 const char kScriptCacheKey[] = "scriptCache";
24 const char kSqliteMemoryKey[] = "sqliteMemory";
25 const char kTabsListKey[] = "tabs";
26 const char kTypeKey[] = "type";
27
28 // Process types.
29 const char kProcessTypeBrowser[] = "browser";
30 const char kProcessTypeExtension[] = "extension";
31 const char kProcessTypeGPU[] = "gpu";
32 const char kProcessTypeNacl[] = "nacl";
33 const char kProcessTypeNotification[] = "notification";
34 const char kProcessTypeOther[] = "other";
35 const char kProcessTypePlugin[] = "plugin";
36 const char kProcessTypeRenderer[] = "renderer";
37 const char kProcessTypeUtility[] = "utility";
38 const char kProcessTypeWorker[] = "worker";
39
40 // Cache object properties.
41 const char kCacheLiveSize[] = "liveSize";
42 const char kCacheSize[] = "size";
43
44 // Event names.
45 const char kOnCreated[] = "processes.onCreated";
46 const char kOnExited[] = "processes.onExited";
47 const char kOnUnresponsive[] = "processes.onUnresponsive";
48 const char kOnUpdated[] = "processes.onUpdated";
49 const char kOnUpdatedWithMemory[] = "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: *.";
55
56 }  // namespace processes_api_constants
57
58 }  // namespace extensions