#include "chrome/browser/task_manager/providers/child_process_task.h"
#include <utility>
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/i18n/rtl.h"
#include "base/numerics/safe_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/extensions/chrome_content_browser_client_extensions_part.h"
#include "chrome/browser/process_resource_usage.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/task_manager/task_manager_observer.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/grit/theme_resources.h"
#include "components/nacl/common/nacl_process_type.h"
#include "content/public/browser/browser_child_process_host.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/child_process_data.h"
#include "content/public/browser/child_process_host.h"
#include "content/public/common/process_type.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension_set.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "services/service_manager/public/cpp/interface_provider.h"
#include "ui/base/l10n/l10n_util.h"
namespace task_manager {
namespace {
std::u16string GetLocalizedTitle(const std::u16string& title,
int process_type,
ChildProcessTask::ProcessSubtype subtype) { … }
ProcessResourceUsage* CreateProcessResourcesSampler(
int unique_child_process_id) { … }
bool UsesV8Memory(int process_type) { … }
}
gfx::ImageSkia* ChildProcessTask::s_icon_ = …;
ChildProcessTask::ChildProcessTask(const content::ChildProcessData& data,
ProcessSubtype subtype)
: … { … }
ChildProcessTask::~ChildProcessTask() { … }
void ChildProcessTask::Refresh(const base::TimeDelta& update_interval,
int64_t refresh_flags) { … }
Task::Type ChildProcessTask::GetType() const { … }
int ChildProcessTask::GetChildProcessUniqueID() const { … }
int64_t ChildProcessTask::GetV8MemoryAllocated() const { … }
int64_t ChildProcessTask::GetV8MemoryUsed() const { … }
}