Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: chrome/browser/extensions/extension_processes_api_constants.cc

Issue 10175008: Improving the process model extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved to async extension functions and generated docs. Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 kCssCache[] = "cssCache";
12 const char kFPS[] = "fps";
10 const char kIdKey[] = "id"; 13 const char kIdKey[] = "id";
14 const char kImageCache[] = "imageCache";
15 const char kJsMemoryAllocated[] = "jsMemoryAllocated";
16 const char kJsMemoryUsed[] = "jsMemoryUsed";
17 const char kMemoryUsage[] = "memoryUsage";
11 const char kNetworkKey[] = "network"; 18 const char kNetworkKey[] = "network";
19 const char kOsProcessId[] = "osProcessId";
12 const char kPrivateMemoryKey[] = "privateMemory"; 20 const char kPrivateMemoryKey[] = "privateMemory";
13 const char kProcessesKey[] = "processes"; 21 const char kProcessesKey[] = "processes";
22 const char kProfile[] = "profile";
23 const char kScriptCache[] = "scriptCache";
14 const char kSharedMemoryKey[] = "sharedMemory"; 24 const char kSharedMemoryKey[] = "sharedMemory";
25 const char kSqliteMemory[] = "sqliteMemory";
26 const char kTabsList[] = "tabs";
15 const char kTypeKey[] = "type"; 27 const char kTypeKey[] = "type";
16 28
29 // Process types.
17 const char kProcessTypeBrowser[] = "browser"; 30 const char kProcessTypeBrowser[] = "browser";
18 const char kProcessTypeExtension[] = "extension"; 31 const char kProcessTypeExtension[] = "extension";
19 const char kProcessTypeGPU[] = "gpu"; 32 const char kProcessTypeGPU[] = "gpu";
20 const char kProcessTypeNacl[] = "nacl"; 33 const char kProcessTypeNacl[] = "nacl";
21 const char kProcessTypeNotification[] = "notification"; 34 const char kProcessTypeNotification[] = "notification";
22 const char kProcessTypeOther[] = "other"; 35 const char kProcessTypeOther[] = "other";
23 const char kProcessTypePlugin[] = "plugin"; 36 const char kProcessTypePlugin[] = "plugin";
24 const char kProcessTypeRenderer[] = "renderer"; 37 const char kProcessTypeRenderer[] = "renderer";
25 const char kProcessTypeUtility[] = "utility"; 38 const char kProcessTypeUtility[] = "utility";
26 const char kProcessTypeWorker[] = "worker"; 39 const char kProcessTypeWorker[] = "worker";
27 40
41 // Cache object properties.
42 const char kCacheLiveSize[] = "liveSize";
43 const char kCacheSize[] = "size";
44
45 // MemoryUsage object properties.
46 const char kMemUsagePrivate[] = "private";
47 const char kMemUsageProportional[] = "proportional";
48 const char kMemUsageResident[] = "resident";
49 const char kMemUsageShared[] = "shared";
50 const char kMemUsageVirtual[] = "virtual";
51 const char kMemUsageVirtualMapped[] = "virtualMapped";
52
53 // Event names.
54 const char kOnCreated[] = "experimental.processes.onCreated";
55 const char kOnExited[] = "experimental.processes.onExited";
56 const char kOnUnresponsive[] = "experimental.processes.onUnresponsive";
28 const char kOnUpdated[] = "experimental.processes.onUpdated"; 57 const char kOnUpdated[] = "experimental.processes.onUpdated";
58 const char kOnUpdatedWithMemory[] =
59 "experimental.processes.onUpdatedWithMemory";
60
61 // Error strings.
62 const char kExtensionNotSupported[] = "The extension API is not supported.";
63 const char kProcessNotFound[] = "Process not found: *.";
29 64
30 } // namespace extension_processes_api_constants 65 } // namespace extension_processes_api_constants
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698