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

Side by Side Diff: chrome/browser/extensions/api/processes/processes_api_constants.cc

Issue 1584473004: Migrate ProcessesEventRouter to the new task manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rearrange some code to make it easier to review. Created 4 years, 10 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
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/api/processes/processes_api_constants.h"
6
7 namespace extensions {
8
9 namespace processes_api_constants {
10
11 // Process object properties.
12 const char kCpuKey[] = "cpu";
13 const char kCssCacheKey[] = "cssCache";
14 const char kIdKey[] = "id";
15 const char kImageCacheKey[] = "imageCache";
16 const char kJsMemoryAllocatedKey[] = "jsMemoryAllocated";
17 const char kJsMemoryUsedKey[] = "jsMemoryUsed";
18 const char kNaClDebugPortKey[] = "naclDebugPort";
19 const char kNetworkKey[] = "network";
20 const char kOsProcessIdKey[] = "osProcessId";
21 const char kPrivateMemoryKey[] = "privateMemory";
22 const char kProfileKey[] = "profile";
23 const char kScriptCacheKey[] = "scriptCache";
24 const char kSqliteMemoryKey[] = "sqliteMemory";
25 const char kTabsListKey[] = "tabs";
26 const char kTitleKey[] = "title";
27 const char kTypeKey[] = "type";
28
29 // Process types.
30 const char kProcessTypeBrowser[] = "browser";
31 const char kProcessTypeExtension[] = "extension";
32 const char kProcessTypeGPU[] = "gpu";
33 const char kProcessTypeNacl[] = "nacl";
34 const char kProcessTypeNotification[] = "notification";
35 const char kProcessTypeOther[] = "other";
36 const char kProcessTypePlugin[] = "plugin";
37 const char kProcessTypeRenderer[] = "renderer";
38 const char kProcessTypeUtility[] = "utility";
39 const char kProcessTypeWorker[] = "worker";
40
41 // Cache object properties.
42 const char kCacheLiveSize[] = "liveSize";
43 const char kCacheSize[] = "size";
44
45 // Event names.
46 const char kOnCreated[] = "processes.onCreated";
47 const char kOnExited[] = "processes.onExited";
48 const char kOnUnresponsive[] = "processes.onUnresponsive";
49 const char kOnUpdated[] = "processes.onUpdated";
50 const char kOnUpdatedWithMemory[] = "processes.onUpdatedWithMemory";
51
52 // Error strings.
53 const char kExtensionNotSupported[] =
54 "The Processes extension API is not supported on this platform.";
55 const char kNotAllowedToTerminate[] = "Not allowed to terminate process: *.";
56 const char kProcessNotFound[] = "Process not found: *.";
57
58 } // namespace processes_api_constants
59
60 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698