| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_BROWSER_CHROMEOS_ARC_PROCESS_ARC_PROCESS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_PROCESS_ARC_PROCESS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_PROCESS_ARC_PROCESS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_PROCESS_ARC_PROCESS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 std::string process_name_; | 45 std::string process_name_; |
| 46 mojom::ProcessState process_state_; | 46 mojom::ProcessState process_state_; |
| 47 // If the Android app is the focused window. | 47 // If the Android app is the focused window. |
| 48 bool is_focused_; | 48 bool is_focused_; |
| 49 // A monotonic timer recording the last time this process was active. | 49 // A monotonic timer recording the last time this process was active. |
| 50 // Milliseconds since Android boot. This info is passed from Android | 50 // Milliseconds since Android boot. This info is passed from Android |
| 51 // ActivityManagerService via IPC. | 51 // ActivityManagerService via IPC. |
| 52 int64_t last_activity_time_; | 52 int64_t last_activity_time_; |
| 53 std::vector<std::string> packages_; | 53 std::vector<std::string> packages_; |
| 54 | 54 |
| 55 friend std::ostream& operator<<(std::ostream& out, |
| 56 const ArcProcess& arc_process); |
| 57 |
| 55 DISALLOW_COPY_AND_ASSIGN(ArcProcess); | 58 DISALLOW_COPY_AND_ASSIGN(ArcProcess); |
| 56 }; | 59 }; |
| 57 | 60 |
| 58 } // namespace arc | 61 } // namespace arc |
| 59 | 62 |
| 60 #endif // CHROME_BROWSER_CHROMEOS_ARC_PROCESS_ARC_PROCESS_H_ | 63 #endif // CHROME_BROWSER_CHROMEOS_ARC_PROCESS_ARC_PROCESS_H_ |
| OLD | NEW |