| 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> |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "components/metrics/system_memory_stats_recorder.h" | 46 #include "components/metrics/system_memory_stats_recorder.h" |
| 47 #include "components/variations/variations_associated_data.h" | 47 #include "components/variations/variations_associated_data.h" |
| 48 #include "content/public/browser/browser_thread.h" | 48 #include "content/public/browser/browser_thread.h" |
| 49 #include "content/public/browser/memory_pressure_controller.h" | 49 #include "content/public/browser/memory_pressure_controller.h" |
| 50 #include "content/public/browser/navigation_controller.h" | 50 #include "content/public/browser/navigation_controller.h" |
| 51 #include "content/public/browser/render_process_host.h" | 51 #include "content/public/browser/render_process_host.h" |
| 52 #include "content/public/browser/web_contents.h" | 52 #include "content/public/browser/web_contents.h" |
| 53 #include "content/public/common/page_importance_signals.h" | 53 #include "content/public/common/page_importance_signals.h" |
| 54 | 54 |
| 55 #if defined(OS_CHROMEOS) | 55 #if defined(OS_CHROMEOS) |
| 56 #include "ash/common/session/session_state_delegate.h" |
| 56 #include "ash/multi_profile_uma.h" | 57 #include "ash/multi_profile_uma.h" |
| 57 #include "ash/session/session_state_delegate.h" | |
| 58 #include "ash/shell.h" | 58 #include "ash/shell.h" |
| 59 #include "chrome/browser/memory/tab_manager_delegate_chromeos.h" | 59 #include "chrome/browser/memory/tab_manager_delegate_chromeos.h" |
| 60 #endif | 60 #endif |
| 61 | 61 |
| 62 using base::TimeDelta; | 62 using base::TimeDelta; |
| 63 using base::TimeTicks; | 63 using base::TimeTicks; |
| 64 using content::BrowserThread; | 64 using content::BrowserThread; |
| 65 using content::WebContents; | 65 using content::WebContents; |
| 66 | 66 |
| 67 namespace memory { | 67 namespace memory { |
| (...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 } | 884 } |
| 885 } else { | 885 } else { |
| 886 // The code here can only be tested under a full browser test. | 886 // The code here can only be tested under a full browser test. |
| 887 AddTabStats(&stats_list); | 887 AddTabStats(&stats_list); |
| 888 } | 888 } |
| 889 | 889 |
| 890 return stats_list; | 890 return stats_list; |
| 891 } | 891 } |
| 892 | 892 |
| 893 } // namespace memory | 893 } // namespace memory |
| OLD | NEW |