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

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 common functionality to ExtensionTabUtil and more feedback fixes. 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 kCssCacheKey[] = "cssCache";
12 const char kFPSKey[] = "fps";
10 const char kIdKey[] = "id"; 13 const char kIdKey[] = "id";
14 const char kImageCacheKey[] = "imageCache";
15 const char kJsMemoryAllocatedKey[] = "jsMemoryAllocated";
16 const char kJsMemoryUsedKey[] = "jsMemoryUsed";
11 const char kNetworkKey[] = "network"; 17 const char kNetworkKey[] = "network";
18 const char kOsProcessIdKey[] = "osProcessId";
12 const char kPrivateMemoryKey[] = "privateMemory"; 19 const char kPrivateMemoryKey[] = "privateMemory";
13 const char kProcessesKey[] = "processes"; 20 const char kProcessesKey[] = "processes";
14 const char kSharedMemoryKey[] = "sharedMemory"; 21 const char kProfileKey[] = "profile";
22 const char kScriptCacheKey[] = "scriptCache";
23 const char kSqliteMemoryKey[] = "sqliteMemory";
24 const char kTabsListKey[] = "tabs";
15 const char kTypeKey[] = "type"; 25 const char kTypeKey[] = "type";
16 26
27 // Process types.
17 const char kProcessTypeBrowser[] = "browser"; 28 const char kProcessTypeBrowser[] = "browser";
18 const char kProcessTypeExtension[] = "extension"; 29 const char kProcessTypeExtension[] = "extension";
19 const char kProcessTypeGPU[] = "gpu"; 30 const char kProcessTypeGPU[] = "gpu";
20 const char kProcessTypeNacl[] = "nacl"; 31 const char kProcessTypeNacl[] = "nacl";
21 const char kProcessTypeNotification[] = "notification"; 32 const char kProcessTypeNotification[] = "notification";
22 const char kProcessTypeOther[] = "other"; 33 const char kProcessTypeOther[] = "other";
23 const char kProcessTypePlugin[] = "plugin"; 34 const char kProcessTypePlugin[] = "plugin";
24 const char kProcessTypeRenderer[] = "renderer"; 35 const char kProcessTypeRenderer[] = "renderer";
25 const char kProcessTypeUtility[] = "utility"; 36 const char kProcessTypeUtility[] = "utility";
26 const char kProcessTypeWorker[] = "worker"; 37 const char kProcessTypeWorker[] = "worker";
27 38
39 // Cache object properties.
40 const char kCacheLiveSize[] = "liveSize";
41 const char kCacheSize[] = "size";
42
43 // Event names.
44 const char kOnCreated[] = "experimental.processes.onCreated";
45 const char kOnExited[] = "experimental.processes.onExited";
46 const char kOnUnresponsive[] = "experimental.processes.onUnresponsive";
28 const char kOnUpdated[] = "experimental.processes.onUpdated"; 47 const char kOnUpdated[] = "experimental.processes.onUpdated";
48 const char kOnUpdatedWithMemory[] =
49 "experimental.processes.onUpdatedWithMemory";
50
51 // Error strings.
52 const char kExtensionNotSupported[] = "The extension API is not supported.";
Charlie Reis 2012/05/02 00:23:13 Should this be specific to the processes extension
nasko 2012/05/02 18:14:02 It will be returned when someone calls a processes
Charlie Reis 2012/05/03 18:47:51 Yes, more explicit messages are useful to develope
nasko 2012/05/03 23:28:04 Done.
53 const char kProcessNotFound[] = "Process not found: *.";
29 54
30 } // namespace extension_processes_api_constants 55 } // namespace extension_processes_api_constants
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698