Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Side by Side Diff: chrome/browser/oom_priority_manager.cc

Issue 5582002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/omnibox_search_hint.cc ('k') | chrome/browser/options_page_base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/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/tab_contents_wrapper.h"
18 #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"
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)
22 #error This file only meant to be compiled on ChromeOS 22 #error This file only meant to be compiled on ChromeOS
23 #endif 23 #endif
24 24
25 using base::TimeDelta; 25 using base::TimeDelta;
26 using base::TimeTicks; 26 using base::TimeTicks;
27 using base::ProcessHandle; 27 using base::ProcessHandle;
28 using base::ProcessMetrics; 28 using base::ProcessMetrics;
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 already_seen.insert(iterator->renderer_handle); 168 already_seen.insert(iterator->renderer_handle);
169 Singleton<ZygoteHost>::get()->AdjustRendererOOMScore( 169 Singleton<ZygoteHost>::get()->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
OLDNEW
« no previous file with comments | « chrome/browser/omnibox_search_hint.cc ('k') | chrome/browser/options_page_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698