OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_MEMORY_TAB_MANAGER_DELEGATE_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_MEMORY_TAB_MANAGER_DELEGATE_CHROMEOS_H_ |
6 #define CHROME_BROWSER_MEMORY_TAB_MANAGER_DELEGATE_CHROMEOS_H_ | 6 #define CHROME_BROWSER_MEMORY_TAB_MANAGER_DELEGATE_CHROMEOS_H_ |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 // Timer to guarantee that the tab is focused for a certain amount of time. | 172 // Timer to guarantee that the tab is focused for a certain amount of time. |
173 base::OneShotTimer focus_tab_score_adjust_timer_; | 173 base::OneShotTimer focus_tab_score_adjust_timer_; |
174 // This lock is for |oom_score_map_| and |focused_tab_process_info_|. | 174 // This lock is for |oom_score_map_| and |focused_tab_process_info_|. |
175 base::Lock oom_score_lock_; | 175 base::Lock oom_score_lock_; |
176 // Map maintaining the process handle - oom_score mapping. Behind | 176 // Map maintaining the process handle - oom_score mapping. Behind |
177 // |oom_score_lock_|. | 177 // |oom_score_lock_|. |
178 ProcessScoreMap oom_score_map_; | 178 ProcessScoreMap oom_score_map_; |
179 // Holds the focused tab's child process host id. Behind |oom_score_lock_|. | 179 // Holds the focused tab's child process host id. Behind |oom_score_lock_|. |
180 ProcessInfo focused_tab_process_info_; | 180 ProcessInfo focused_tab_process_info_; |
181 | 181 |
182 // Holds a weak pointer to arc::ProcessInstance. | 182 // Holds a weak pointer to arc::mojom::ProcessInstance. |
183 arc::ProcessInstance* arc_process_instance_; | 183 arc::mojom::ProcessInstance* arc_process_instance_; |
184 // Current ProcessInstance version. | 184 // Current ProcessInstance version. |
185 int arc_process_instance_version_; | 185 int arc_process_instance_version_; |
186 | 186 |
187 // Weak pointer factory used for posting tasks to other threads. | 187 // Weak pointer factory used for posting tasks to other threads. |
188 base::WeakPtrFactory<TabManagerDelegate> weak_ptr_factory_; | 188 base::WeakPtrFactory<TabManagerDelegate> weak_ptr_factory_; |
189 | 189 |
190 DISALLOW_COPY_AND_ASSIGN(TabManagerDelegate); | 190 DISALLOW_COPY_AND_ASSIGN(TabManagerDelegate); |
191 }; | 191 }; |
192 | 192 |
193 } // namespace memory | 193 } // namespace memory |
194 | 194 |
195 #endif // CHROME_BROWSER_MEMORY_TAB_MANAGER_DELEGATE_CHROMEOS_H_ | 195 #endif // CHROME_BROWSER_MEMORY_TAB_MANAGER_DELEGATE_CHROMEOS_H_ |
OLD | NEW |