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

Unified Diff: chrome/browser/task_management/web_contents_tags.h

Issue 1163373002: Comment cleanup in web_contents_tags.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/task_management/web_contents_tags.h
diff --git a/chrome/browser/task_management/web_contents_tags.h b/chrome/browser/task_management/web_contents_tags.h
index 087ebbdb36fe953815cd8771a84c9f360b0442ab..9adbfdd5edea24c8606fc210fd06d80aff45a4cd 100644
--- a/chrome/browser/task_management/web_contents_tags.h
+++ b/chrome/browser/task_management/web_contents_tags.h
@@ -16,15 +16,19 @@ class WebContents;
namespace task_management {
// Defines a factory class for creating the TaskManager-specific Tags for the
-// web_contents that are owned by various types of services.
+// WebContents that are owned by various types of services.
//
-// Any service that creates WebContents instances (via WebContents::Create)
-// needs to make sure that they are tagged using this mechanism, otherwise the
-// associated render processes will not show up in the task manager.
+// Any service or feature that creates WebContents instances (via
+// WebContents::Create) needs to make sure that they are tagged using this
+// mechanism, otherwise the associated render processes will not show up in the
+// task manager.
class WebContentsTags {
public:
- // Creates a BackgroundContentsTag, and attaches it to the specified
- // WebContents. If an instance is already attached, it does nothing.
+ // Tag a BackgroundContents so that it shows up in the task manager. Calling
+ // this function creates a BackgroundContentsTag, and attaches it to
+ // |web_contents|. If an instance is already attached, this does nothing. The
+ // resulting tag does not have to be cleaned up by the caller, as it is owned
+ // by |web_contents|.
static void CreateForBackgroundContents(
content::WebContents* web_contents,
BackgroundContents* background_contents);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698