chromium/chrome/browser/task_manager/providers/vm/plugin_vm_process_task.h

// Copyright 2018 The Chromium Authors
// 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_PROVIDERS_VM_PLUGIN_VM_PROCESS_TASK_H_
#define CHROME_BROWSER_TASK_MANAGER_PROVIDERS_VM_PLUGIN_VM_PROCESS_TASK_H_

#include <string>

#include "chrome/browser/task_manager/providers/vm/vm_process_task.h"

namespace task_manager {

// Defines the task that represents a VM process for PluginVm.
class PluginVmProcessTask : public VmProcessTask {
 public:
  PluginVmProcessTask(base::ProcessId pid,
                      const std::string& owner_id,
                      const std::string& vm_name);
  PluginVmProcessTask(const PluginVmProcessTask&) = delete;
  PluginVmProcessTask& operator=(const PluginVmProcessTask&) = delete;
  ~PluginVmProcessTask() override = default;

  // task_manager::Task:
  void Kill() override;
  Type GetType() const override;

 private:
  static gfx::ImageSkia* s_icon_;
};

}  // namespace task_manager

#endif  // CHROME_BROWSER_TASK_MANAGER_PROVIDERS_VM_PLUGIN_VM_PROCESS_TASK_H_