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 #include "chrome/browser/memory/tab_manager_delegate_chromeos.h" | 5 #include "chrome/browser/memory/tab_manager_delegate_chromeos.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <map> | 10 #include <map> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "ash/shell.h" | 14 #include "ash/shell.h" |
15 #include "base/bind.h" | 15 #include "base/bind.h" |
16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
17 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
18 #include "base/files/file_util.h" | 18 #include "base/files/file_util.h" |
19 #include "base/memory/memory_pressure_monitor_chromeos.h" | 19 #include "base/memory/memory_pressure_monitor_chromeos.h" |
20 #include "base/metrics/histogram_macros.h" | 20 #include "base/metrics/histogram_macros.h" |
21 #include "base/process/process_handle.h" // kNullProcessHandle. | 21 #include "base/process/process_handle.h" // kNullProcessHandle. |
22 #include "base/process/process_metrics.h" | 22 #include "base/process/process_metrics.h" |
23 #include "base/strings/string16.h" | 23 #include "base/strings/string16.h" |
24 #include "base/strings/string_number_conversions.h" | 24 #include "base/strings/string_number_conversions.h" |
25 #include "base/strings/string_util.h" | 25 #include "base/strings/string_util.h" |
26 #include "base/strings/utf_string_conversions.h" | 26 #include "base/strings/utf_string_conversions.h" |
27 #include "base/time/time.h" | 27 #include "base/time/time.h" |
28 #include "chrome/browser/chromeos/arc/arc_process.h" | 28 #include "chrome/browser/chromeos/arc/process/arc_process.h" |
29 #include "chrome/browser/chromeos/arc/arc_process_service.h" | 29 #include "chrome/browser/chromeos/arc/process/arc_process_service.h" |
30 #include "chrome/browser/memory/tab_stats.h" | 30 #include "chrome/browser/memory/tab_stats.h" |
31 #include "chrome/browser/ui/browser.h" | 31 #include "chrome/browser/ui/browser.h" |
32 #include "chrome/browser/ui/browser_list.h" | 32 #include "chrome/browser/ui/browser_list.h" |
33 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 33 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
34 #include "chrome/common/chrome_constants.h" | 34 #include "chrome/common/chrome_constants.h" |
35 #include "chrome/common/chrome_features.h" | 35 #include "chrome/common/chrome_features.h" |
36 #include "chromeos/dbus/dbus_thread_manager.h" | 36 #include "chromeos/dbus/dbus_thread_manager.h" |
37 #include "components/arc/arc_bridge_service.h" | 37 #include "components/arc/arc_bridge_service.h" |
38 #include "components/arc/common/process.mojom.h" | 38 #include "components/arc/common/process.mojom.h" |
39 #include "components/arc/metrics/oom_kills_histogram.h" | 39 #include "components/arc/metrics/oom_kills_histogram.h" |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 } | 747 } |
748 priority += priority_increment; | 748 priority += priority_increment; |
749 } | 749 } |
750 | 750 |
751 if (oom_scores_to_change.size()) | 751 if (oom_scores_to_change.size()) |
752 GetDebugDaemonClient()->SetOomScoreAdj( | 752 GetDebugDaemonClient()->SetOomScoreAdj( |
753 oom_scores_to_change, base::Bind(&OnSetOomScoreAdj)); | 753 oom_scores_to_change, base::Bind(&OnSetOomScoreAdj)); |
754 } | 754 } |
755 | 755 |
756 } // namespace memory | 756 } // namespace memory |
OLD | NEW |