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

Unified Diff: content/public/common/process_type.h

Issue 12662019: Split the ProcessType enum into process types that content knows about (which will remain in src\co… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 9 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: content/public/common/process_type.h
===================================================================
--- content/public/common/process_type.h (revision 189692)
+++ content/public/common/process_type.h (working copy)
@@ -21,21 +21,23 @@
PROCESS_TYPE_RENDERER,
PROCESS_TYPE_PLUGIN,
PROCESS_TYPE_WORKER,
- PROCESS_TYPE_NACL_LOADER,
PROCESS_TYPE_UTILITY,
- PROCESS_TYPE_PROFILE_IMPORT,
PROCESS_TYPE_ZYGOTE,
PROCESS_TYPE_SANDBOX_HELPER,
- PROCESS_TYPE_NACL_BROKER,
PROCESS_TYPE_GPU,
PROCESS_TYPE_PPAPI_PLUGIN,
PROCESS_TYPE_PPAPI_BROKER,
- PROCESS_TYPE_MAX
+ // Custom process types used by the embedder should start from here.
+ PROCESS_TYPE_CONTENT_END,
+ // If any embedder has more than 10 custom process types, update this.
+ // We can switch to getting it from ContentClient, but that seems like
+ // overkill at this time.
+ PROCESS_TYPE_MAX = PROCESS_TYPE_CONTENT_END + 10,
};
// Returns an English name of the process type, should only be used for non
// user-visible strings, or debugging pages like about:memory.
-CONTENT_EXPORT std::string GetProcessTypeNameInEnglish(ProcessType type);
+CONTENT_EXPORT std::string GetProcessTypeNameInEnglish(int type);
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698