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

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 to async extension functions and generated docs. 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..86b06e172c6e626243ed306952c3d2411843287c 100644
--- a/chrome/browser/extensions/extension_processes_api_constants.cc
+++ b/chrome/browser/extensions/extension_processes_api_constants.cc
@@ -6,14 +6,27 @@
namespace extension_processes_api_constants {
+// Process object properties.
const char kCpuKey[] = "cpu";
+const char kCssCache[] = "cssCache";
+const char kFPS[] = "fps";
const char kIdKey[] = "id";
+const char kImageCache[] = "imageCache";
+const char kJsMemoryAllocated[] = "jsMemoryAllocated";
+const char kJsMemoryUsed[] = "jsMemoryUsed";
+const char kMemoryUsage[] = "memoryUsage";
const char kNetworkKey[] = "network";
+const char kOsProcessId[] = "osProcessId";
const char kPrivateMemoryKey[] = "privateMemory";
const char kProcessesKey[] = "processes";
+const char kProfile[] = "profile";
+const char kScriptCache[] = "scriptCache";
const char kSharedMemoryKey[] = "sharedMemory";
+const char kSqliteMemory[] = "sqliteMemory";
+const char kTabsList[] = "tabs";
const char kTypeKey[] = "type";
+// Process types.
const char kProcessTypeBrowser[] = "browser";
const char kProcessTypeExtension[] = "extension";
const char kProcessTypeGPU[] = "gpu";
@@ -25,6 +38,28 @@ const char kProcessTypeRenderer[] = "renderer";
const char kProcessTypeUtility[] = "utility";
const char kProcessTypeWorker[] = "worker";
+// Cache object properties.
+const char kCacheLiveSize[] = "liveSize";
+const char kCacheSize[] = "size";
+
+// MemoryUsage object properties.
+const char kMemUsagePrivate[] = "private";
+const char kMemUsageProportional[] = "proportional";
+const char kMemUsageResident[] = "resident";
+const char kMemUsageShared[] = "shared";
+const char kMemUsageVirtual[] = "virtual";
+const char kMemUsageVirtualMapped[] = "virtualMapped";
+
+// 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.";
+const char kProcessNotFound[] = "Process not found: *.";
} // namespace extension_processes_api_constants

Powered by Google App Engine
This is Rietveld 408576698