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

Side by Side Diff: chrome/common/child_process_info.h

Issue 6328010: Fix Task Manager to correctly display network usage of plug-in processes. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Redo patch set for changes to trunk. Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_CHILD_PROCESS_INFO_H_ 5 #ifndef CHROME_COMMON_CHILD_PROCESS_INFO_H_
6 #define CHROME_COMMON_CHILD_PROCESS_INFO_H_ 6 #define CHROME_COMMON_CHILD_PROCESS_INFO_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // for workers it might be the domain that it's from. 61 // for workers it might be the domain that it's from.
62 std::wstring name() const { return name_; } 62 std::wstring name() const { return name_; }
63 63
64 // Returns the version of the exe, this only appliest to plugins. Otherwise 64 // Returns the version of the exe, this only appliest to plugins. Otherwise
65 // the string is empty. 65 // the string is empty.
66 std::wstring version() const { return version_; } 66 std::wstring version() const { return version_; }
67 67
68 // Getter to the process handle. 68 // Getter to the process handle.
69 base::ProcessHandle handle() const { return process_.handle(); } 69 base::ProcessHandle handle() const { return process_.handle(); }
70 70
71 // Getter to the process ID.
72 int pid() const { return process_.pid(); }
73
71 // The unique identifier for this child process. This identifier is NOT a 74 // The unique identifier for this child process. This identifier is NOT a
72 // process ID, and will be unique for all types of child process for 75 // process ID, and will be unique for all types of child process for
73 // one run of the browser. 76 // one run of the browser.
74 int id() const { return id_; } 77 int id() const { return id_; }
75 78
76 void SetProcessBackgrounded() const { process_.SetProcessBackgrounded(true); } 79 void SetProcessBackgrounded() const { process_.SetProcessBackgrounded(true); }
77 80
78 // Returns an English name of the process type, should only be used for non 81 // Returns an English name of the process type, should only be used for non
79 // user-visible strings, or debugging pages like about:memory. 82 // user-visible strings, or debugging pages like about:memory.
80 static std::string GetFullTypeNameInEnglish(ProcessType type, 83 static std::string GetFullTypeNameInEnglish(ProcessType type,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 RendererProcessType renderer_type_; 132 RendererProcessType renderer_type_;
130 std::wstring name_; 133 std::wstring name_;
131 std::wstring version_; 134 std::wstring version_;
132 int id_; 135 int id_;
133 136
134 // The handle to the process. 137 // The handle to the process.
135 mutable base::Process process_; 138 mutable base::Process process_;
136 }; 139 };
137 140
138 #endif // CHROME_COMMON_CHILD_PROCESS_INFO_H_ 141 #endif // CHROME_COMMON_CHILD_PROCESS_INFO_H_
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/task_manager_resource_providers.cc ('k') | chrome/common/render_messages_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698