diff options
author | cpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-21 22:27:35 +0000 |
---|---|---|
committer | cpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-21 22:27:35 +0000 |
commit | 7e3ceeb48be949d4313a49b530f1b6e730921dc4 (patch) | |
tree | 71da032540510c6256ff2ae99e9312401a92ed3d /chrome/common/child_process_info.h | |
parent | db27d4e07ef150349afde9c541647a342e8edeb3 (diff) | |
download | chromium_src-7e3ceeb48be949d4313a49b530f1b6e730921dc4.zip chromium_src-7e3ceeb48be949d4313a49b530f1b6e730921dc4.tar.gz chromium_src-7e3ceeb48be949d4313a49b530f1b6e730921dc4.tar.bz2 |
Adds the plugin version on the title. This shows up
in task manager:
Before
title memory
================================================
|Plug-in: Shockwave Flash | XXXXX |
After
title memory
============================================
|Plug-in: Shockwave Flash (10,0,3,52) | XXXXX |
Some crazy plug-ins embed version string on the title so for those it shows twice. There are not many that fall into that category
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2715001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50399 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/child_process_info.h')
-rw-r--r-- | chrome/common/child_process_info.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/common/child_process_info.h b/chrome/common/child_process_info.h index 1607417..bc36c18 100644 --- a/chrome/common/child_process_info.h +++ b/chrome/common/child_process_info.h @@ -41,6 +41,10 @@ class ChildProcessInfo { // for workers it might be the domain that it's from. std::wstring name() const { return name_; } + // Returns the version of the exe, this only appliest to plugins. Otherwise + // the string is empty. + std::wstring version() const { return version_; } + // Getter to the process handle. base::ProcessHandle handle() const { return process_.handle(); } @@ -93,11 +97,13 @@ class ChildProcessInfo { void set_type(ProcessType type) { type_ = type; } void set_name(const std::wstring& name) { name_ = name; } + void set_version(const std::wstring& ver) { version_ = ver; } void set_handle(base::ProcessHandle handle) { process_.set_handle(handle); } private: ProcessType type_; std::wstring name_; + std::wstring version_; int id_; // The handle to the process. |