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

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

Issue 10915067: Moving extension_processes_api to api/processes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
(Empty)
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/extension_processes_api_constants.h"
6
7 namespace extension_processes_api_constants {
8
9 // Process object properties.
10 const char kCpuKey[] = "cpu";
11 const char kCssCacheKey[] = "cssCache";
12 const char kFPSKey[] = "fps";
13 const char kIdKey[] = "id";
14 const char kImageCacheKey[] = "imageCache";
15 const char kJsMemoryAllocatedKey[] = "jsMemoryAllocated";
16 const char kJsMemoryUsedKey[] = "jsMemoryUsed";
17 const char kNetworkKey[] = "network";
18 const char kOsProcessIdKey[] = "osProcessId";
19 const char kPrivateMemoryKey[] = "privateMemory";
20 const char kProcessesKey[] = "processes";
21 const char kProfileKey[] = "profile";
22 const char kScriptCacheKey[] = "scriptCache";
23 const char kSqliteMemoryKey[] = "sqliteMemory";
24 const char kTabsListKey[] = "tabs";
25 const char kTypeKey[] = "type";
26
27 // Process types.
28 const char kProcessTypeBrowser[] = "browser";
29 const char kProcessTypeExtension[] = "extension";
30 const char kProcessTypeGPU[] = "gpu";
31 const char kProcessTypeNacl[] = "nacl";
32 const char kProcessTypeNotification[] = "notification";
33 const char kProcessTypeOther[] = "other";
34 const char kProcessTypePlugin[] = "plugin";
35 const char kProcessTypeRenderer[] = "renderer";
36 const char kProcessTypeUtility[] = "utility";
37 const char kProcessTypeWorker[] = "worker";
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";
47 const char kOnUpdated[] = "experimental.processes.onUpdated";
48 const char kOnUpdatedWithMemory[] =
49 "experimental.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 extension_processes_api_constants
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698