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

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

Issue 10107002: TabContents -> WebContentsImpl, part 18. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months 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/memory_details.cc ('k') | chrome/browser/oom_priority_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #ifndef CHROME_BROWSER_OOM_PRIORITY_MANAGER_H_ 6 #ifndef CHROME_BROWSER_OOM_PRIORITY_MANAGER_H_
7 #define CHROME_BROWSER_OOM_PRIORITY_MANAGER_H_ 7 #define CHROME_BROWSER_OOM_PRIORITY_MANAGER_H_
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 struct TabStats { 56 struct TabStats {
57 TabStats(); 57 TabStats();
58 ~TabStats(); 58 ~TabStats();
59 bool is_pinned; 59 bool is_pinned;
60 bool is_selected; 60 bool is_selected;
61 base::TimeTicks last_selected; 61 base::TimeTicks last_selected;
62 base::ProcessHandle renderer_handle; 62 base::ProcessHandle renderer_handle;
63 bool sudden_termination_allowed; 63 bool sudden_termination_allowed;
64 string16 title; 64 string16 title;
65 int64 tab_contents_id; // unique ID per TabContents 65 int64 tab_contents_id; // unique ID per WebContents
66 }; 66 };
67 typedef std::vector<TabStats> TabStatsList; 67 typedef std::vector<TabStats> TabStatsList;
68 68
69 TabStatsList GetTabStatsOnUIThread(); 69 TabStatsList GetTabStatsOnUIThread();
70 70
71 // Called when the timer fires, sets oom_adjust_score for all renderers. 71 // Called when the timer fires, sets oom_adjust_score for all renderers.
72 void AdjustOomPriorities(); 72 void AdjustOomPriorities();
73 73
74 // Called by AdjustOomPriorities. 74 // Called by AdjustOomPriorities.
75 void AdjustOomPrioritiesOnFileThread(TabStatsList stats_list); 75 void AdjustOomPrioritiesOnFileThread(TabStatsList stats_list);
(...skipping 22 matching lines...) Expand all
98 base::ProcessHandle focused_tab_pid_; 98 base::ProcessHandle focused_tab_pid_;
99 99
100 scoped_ptr<LowMemoryObserver> low_memory_observer_; 100 scoped_ptr<LowMemoryObserver> low_memory_observer_;
101 101
102 DISALLOW_COPY_AND_ASSIGN(OomPriorityManager); 102 DISALLOW_COPY_AND_ASSIGN(OomPriorityManager);
103 }; 103 };
104 104
105 } // namespace browser 105 } // namespace browser
106 106
107 #endif // CHROME_BROWSER_OOM_PRIORITY_MANAGER_H_ 107 #endif // CHROME_BROWSER_OOM_PRIORITY_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/memory_details.cc ('k') | chrome/browser/oom_priority_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698