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

Unified 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, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_processes_api_constants.cc
diff --git a/chrome/browser/extensions/extension_processes_api_constants.cc b/chrome/browser/extensions/extension_processes_api_constants.cc
index ecb226fb371b3b2839ac67e12cde44e47a77cd95..160b96764a0c199584c57a0f22d93196044b2f65 100644
--- a/chrome/browser/extensions/extension_processes_api_constants.cc
+++ b/chrome/browser/extensions/extension_processes_api_constants.cc
@@ -6,14 +6,25 @@
namespace extension_processes_api_constants {
+// Process object properties.
const char kCpuKey[] = "cpu";
+const char kCssCacheKey[] = "cssCache";
+const char kFPSKey[] = "fps";
const char kIdKey[] = "id";
+const char kImageCacheKey[] = "imageCache";
+const char kJsMemoryAllocatedKey[] = "jsMemoryAllocated";
+const char kJsMemoryUsedKey[] = "jsMemoryUsed";
const char kNetworkKey[] = "network";
+const char kOsProcessIdKey[] = "osProcessId";
const char kPrivateMemoryKey[] = "privateMemory";
const char kProcessesKey[] = "processes";
-const char kSharedMemoryKey[] = "sharedMemory";
+const char kProfileKey[] = "profile";
+const char kScriptCacheKey[] = "scriptCache";
+const char kSqliteMemoryKey[] = "sqliteMemory";
+const char kTabsListKey[] = "tabs";
const char kTypeKey[] = "type";
+// Process types.
const char kProcessTypeBrowser[] = "browser";
const char kProcessTypeExtension[] = "extension";
const char kProcessTypeGPU[] = "gpu";
@@ -25,6 +36,20 @@ const char kProcessTypeRenderer[] = "renderer";
const char kProcessTypeUtility[] = "utility";
const char kProcessTypeWorker[] = "worker";
+// Cache object properties.
+const char kCacheLiveSize[] = "liveSize";
+const char kCacheSize[] = "size";
+
+// Event names.
+const char kOnCreated[] = "experimental.processes.onCreated";
+const char kOnExited[] = "experimental.processes.onExited";
+const char kOnUnresponsive[] = "experimental.processes.onUnresponsive";
const char kOnUpdated[] = "experimental.processes.onUpdated";
+const char kOnUpdatedWithMemory[] =
+ "experimental.processes.onUpdatedWithMemory";
+
+// Error strings.
+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.
+const char kProcessNotFound[] = "Process not found: *.";
} // namespace extension_processes_api_constants

Powered by Google App Engine
This is Rietveld 408576698