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

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

Issue 2441563002: arc: Create intermediate directories in c/b/c/arc (Closed)
Patch Set: Re-rebase to ToT Created 4 years, 2 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 | « chrome/browser/chromeos/arc/arc_print_service.cc ('k') | 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
deleted file mode 100644
index 81a6e89be022689e9897602e7f0f4ea8adb9ccaa..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/arc/arc_process.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// 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 <stdint.h>
-#include <string>
-#include <vector>
-
-#include "base/process/process_handle.h"
-#include "components/arc/common/process.mojom.h"
-
-namespace arc {
-
-class ArcProcess {
- public:
- ArcProcess(base::ProcessId nspid,
- base::ProcessId pid,
- const std::string& process_name,
- mojom::ProcessState process_state,
- bool is_focused,
- int64_t last_activity_time);
- ~ArcProcess();
-
- ArcProcess(ArcProcess&& other);
- ArcProcess& operator=(ArcProcess&& other);
-
- // Sort by descending importance.
- bool operator<(const ArcProcess& rhs) const;
-
- 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_; }
- bool is_focused() const { return is_focused_; }
- int64_t last_activity_time() const { return last_activity_time_; }
- 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_;
- // If the Android app is the focused window.
- bool is_focused_;
- // A monotonic timer recording the last time this process was active.
- // Milliseconds since Android boot. This info is passed from Android
- // ActivityManagerService via IPC.
- int64_t last_activity_time_;
- std::vector<std::string> packages_;
-
- DISALLOW_COPY_AND_ASSIGN(ArcProcess);
-};
-
-} // namespace arc
-
-#endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_PROCESS_H_
« no previous file with comments | « chrome/browser/chromeos/arc/arc_print_service.cc ('k') | chrome/browser/chromeos/arc/arc_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698