summaryrefslogtreecommitdiffstats
path: root/chrome/browser/task_manager/task_manager_util.h
blob: ca64dba317048a5a3326c2d63b71ee2636a1d8fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// 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_TASK_MANAGER_UTIL_H_
#define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_UTIL_H_

#include "base/basictypes.h"
#include "base/strings/string16.h"

class Profile;

namespace content {
class WebContents;
}

namespace task_manager {

namespace util {

// Returns the appropriate message prefix ID for tabs and extensions,
// reflecting whether they are apps or in incognito mode.
int GetMessagePrefixID(bool is_app,
                       bool is_extension,
                       bool is_incognito,
                       bool is_prerender,
                       bool is_background);

// Returns the name of profile from InfoCache.
base::string16 GetProfileNameFromInfoCache(Profile* profile);

// Returns the title from web contents.
base::string16 GetTitleFromWebContents(content::WebContents* web_contents);

}  // namespace util

}  // namespace task_manager

#endif  // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_UTIL_H_