OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/oom_priority_manager.h" | 5 #include "chrome/browser/oom_priority_manager.h" |
6 | 6 |
7 #include <list> | 7 #include <list> |
8 | 8 |
9 #include "base/process.h" | 9 #include "base/process.h" |
10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
11 #include "base/thread.h" | 11 #include "base/threading/thread.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "chrome/browser/browser_list.h" | 13 #include "chrome/browser/browser_list.h" |
14 #include "chrome/browser/browser_thread.h" | 14 #include "chrome/browser/browser_thread.h" |
15 #include "chrome/browser/renderer_host/render_process_host.h" | 15 #include "chrome/browser/renderer_host/render_process_host.h" |
16 #include "chrome/browser/tab_contents/tab_contents.h" | 16 #include "chrome/browser/tab_contents/tab_contents.h" |
17 #include "chrome/browser/tabs/tab_strip_model.h" | 17 #include "chrome/browser/tabs/tab_strip_model.h" |
18 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 18 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
19 #include "chrome/browser/zygote_host_linux.h" | 19 #include "chrome/browser/zygote_host_linux.h" |
20 | 20 |
21 #if !defined(OS_CHROMEOS) | 21 #if !defined(OS_CHROMEOS) |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 already_seen.insert(iterator->renderer_handle); | 168 already_seen.insert(iterator->renderer_handle); |
169 ZygoteHost::GetInstance()->AdjustRendererOOMScore( | 169 ZygoteHost::GetInstance()->AdjustRendererOOMScore( |
170 iterator->renderer_handle, | 170 iterator->renderer_handle, |
171 static_cast<int>(priority + 0.5f)); | 171 static_cast<int>(priority + 0.5f)); |
172 priority += priority_increment; | 172 priority += priority_increment; |
173 } | 173 } |
174 } | 174 } |
175 } | 175 } |
176 | 176 |
177 } // namespace browser | 177 } // namespace browser |
OLD | NEW |