Chromium Code Reviews| 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 d81b88ebcd62e45ed19bef45c4e6a1586b6a2cd0..abfd1533a359a95881356f18859fa8e93449d2ab 100644 |
| --- a/chrome/browser/task_management/web_contents_tags.h |
| +++ b/chrome/browser/task_management/web_contents_tags.h |
| @@ -39,6 +39,17 @@ class WebContentsTags { |
| // not have to be cleaned up by the caller, as it is owned by |web_contents|. |
| static void CreateForDevToolsContents(content::WebContents* web_contents); |
| + // Tag a WebContents owned by the PrerenderManager so that it shows up in the |
| + // task manager. Calling this function creates a PrerenderTag, 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 CreateForPrerenderContents(content::WebContents* web_contents); |
| + |
| + // Clears the task-manager tag, created by any of the above functions, from |
| + // the given |web_contents| if any. |
|
ncarter (slow)
2015/06/19 19:50:51
Add: "Clearing the tag is necessary only when you
afakhry
2015/06/19 21:49:22
Done.
|
| + static void ClearTag(content::WebContents* web_contents); |
| + |
| private: |
| DISALLOW_COPY_AND_ASSIGN(WebContentsTags); |
| }; |