OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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.h" | 5 #include "chrome/browser/memory/tab_manager.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <set> | 10 #include <set> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/bind_helpers.h" | 14 #include "base/bind_helpers.h" |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/feature_list.h" | 16 #include "base/feature_list.h" |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/memory/memory_pressure_monitor.h" | 18 #include "base/memory/memory_pressure_monitor.h" |
19 #include "base/metrics/field_trial.h" | 19 #include "base/metrics/field_trial.h" |
20 #include "base/metrics/histogram.h" | 20 #include "base/metrics/histogram.h" |
21 #include "base/process/process.h" | 21 #include "base/process/process.h" |
22 #include "base/strings/string16.h" | 22 #include "base/strings/string16.h" |
23 #include "base/strings/string_number_conversions.h" | 23 #include "base/strings/string_number_conversions.h" |
24 #include "base/strings/string_util.h" | 24 #include "base/strings/string_util.h" |
25 #include "base/strings/utf_string_conversions.h" | 25 #include "base/strings/utf_string_conversions.h" |
26 #include "base/thread_task_runner_handle.h" | |
27 #include "base/threading/thread.h" | 26 #include "base/threading/thread.h" |
| 27 #include "base/threading/thread_task_runner_handle.h" |
28 #include "base/time/tick_clock.h" | 28 #include "base/time/tick_clock.h" |
29 #include "build/build_config.h" | 29 #include "build/build_config.h" |
30 #include "chrome/browser/browser_process.h" | 30 #include "chrome/browser/browser_process.h" |
31 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | 31 #include "chrome/browser/media/media_capture_devices_dispatcher.h" |
32 #include "chrome/browser/media/media_stream_capture_indicator.h" | 32 #include "chrome/browser/media/media_stream_capture_indicator.h" |
33 #include "chrome/browser/memory/oom_memory_details.h" | 33 #include "chrome/browser/memory/oom_memory_details.h" |
34 #include "chrome/browser/memory/tab_manager_web_contents_data.h" | 34 #include "chrome/browser/memory/tab_manager_web_contents_data.h" |
35 #include "chrome/browser/profiles/profile.h" | 35 #include "chrome/browser/profiles/profile.h" |
36 #include "chrome/browser/ui/browser.h" | 36 #include "chrome/browser/ui/browser.h" |
37 #include "chrome/browser/ui/browser_list.h" | 37 #include "chrome/browser/ui/browser_list.h" |
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 } | 844 } |
845 } else { | 845 } else { |
846 // The code here can only be tested under a full browser test. | 846 // The code here can only be tested under a full browser test. |
847 AddTabStats(&stats_list); | 847 AddTabStats(&stats_list); |
848 } | 848 } |
849 | 849 |
850 return stats_list; | 850 return stats_list; |
851 } | 851 } |
852 | 852 |
853 } // namespace memory | 853 } // namespace memory |
OLD | NEW |