Chromium Code Reviews| Index: chrome/browser/task_manager/resource_util.h |
| diff --git a/chrome/browser/task_manager/resource_util.h b/chrome/browser/task_manager/resource_util.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3dc6f46d6b316dbc4905b800aa1e28dcc60ed15a |
| --- /dev/null |
| +++ b/chrome/browser/task_manager/resource_util.h |
| @@ -0,0 +1,42 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_TASK_MANAGER_RESOURCE_UTIL_H_ |
| +#define CHROME_BROWSER_TASK_MANAGER_RESOURCE_UTIL_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "base/string16.h" |
| + |
| +class Profile; |
| + |
| +namespace content { |
| +class WebContents; |
| +} |
| + |
| +namespace task_manager { |
| + |
| +class ResourceUtil { |
|
yoshiki
2013/05/20 04:50:02
This class is static and no need to be a class. I
peria
2013/05/20 05:39:04
Done.
I also renamed this file to task_manager_uti
|
| + public: |
| + // Returns the appropriate message prefix ID for tabs and extensions, |
| + // reflecting whether they are apps or in incognito mode. |
| + static int GetMessagePrefixID(bool is_app, |
| + bool is_extension, |
| + bool is_incognito, |
| + bool is_prerender, |
| + bool is_instant_overlay, |
| + bool is_background); |
| + |
| + // Returns the name of profle from InfoCache. |
| + static string16 GetProfileNameFromInfoCache(Profile* profile); |
| + |
| + // Returns the title from web contents. |
| + static string16 GetTitleFromWebContents(content::WebContents* web_contents); |
| + |
| + private: |
| + DISALLOW_IMPLICIT_CONSTRUCTORS(ResourceUtil); |
| +}; |
| + |
| +} // namespace task_manager |
| + |
| +#endif // CHROME_BROWSER_TASK_MANAGER_RESOURCE_UTIL_H_ |