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

Unified Diff: chrome/browser/chromeos/arc/arc_process.h

Issue 2023643002: Add ARC app icons to the Task Manager UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert back to the original test code Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/arc_process.h
diff --git a/chrome/browser/chromeos/arc/arc_process.h b/chrome/browser/chromeos/arc/arc_process.h
index 253f42b04fa2ceb600228f1ab989df189b66bbf8..01562a25006edb5e8bda1b62bb6f0ad02d80f6e1 100644
--- a/chrome/browser/chromeos/arc/arc_process.h
+++ b/chrome/browser/chromeos/arc/arc_process.h
@@ -1,21 +1,44 @@
// Copyright 2016 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_CHROMEOS_ARC_ARC_PROCESS_H_
#define CHROME_BROWSER_CHROMEOS_ARC_ARC_PROCESS_H_
#include <string>
+#include <vector>
#include "base/process/process_handle.h"
#include "components/arc/common/process.mojom.h"
namespace arc {
-struct ArcProcess {
- base::ProcessId nspid;
- base::ProcessId pid;
- std::string process_name;
- mojom::ProcessState process_state;
+class ArcProcess {
+ public:
+ ArcProcess(base::ProcessId nspid,
+ base::ProcessId pid,
+ const std::string& process_name,
+ mojom::ProcessState process_state);
+ ~ArcProcess();
+
+ ArcProcess(ArcProcess&& other);
+ ArcProcess& operator=(ArcProcess&& other);
+
+ base::ProcessId nspid() const { return nspid_; }
+ base::ProcessId pid() const { return pid_; }
+ const std::string& process_name() const { return process_name_; }
+ mojom::ProcessState process_state() const { return process_state_; }
+ std::vector<std::string>& packages() { return packages_; }
+ const std::vector<std::string>& packages() const { return packages_; }
+
+ private:
+ base::ProcessId nspid_;
+ base::ProcessId pid_;
+ std::string process_name_;
+ mojom::ProcessState process_state_;
+ std::vector<std::string> packages_;
+
+ DISALLOW_COPY_AND_ASSIGN(ArcProcess);
};
} // namespace arc
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698