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

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

Issue 1145233002: Revert of Change WebContents::last_active_time_ to Time instead of Timeticks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
OLDNEW
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 #ifndef CHROME_BROWSER_CHROMEOS_MEMORY_OOM_PRIORITY_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_MEMORY_OOM_PRIORITY_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_MEMORY_OOM_PRIORITY_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_MEMORY_OOM_PRIORITY_MANAGER_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 struct TabStats { 73 struct TabStats {
74 TabStats(); 74 TabStats();
75 ~TabStats(); 75 ~TabStats();
76 bool is_app; // browser window is an app 76 bool is_app; // browser window is an app
77 bool is_reloadable_ui; // Reloadable web UI page, like NTP or Settings. 77 bool is_reloadable_ui; // Reloadable web UI page, like NTP or Settings.
78 bool is_playing_audio; 78 bool is_playing_audio;
79 bool is_pinned; 79 bool is_pinned;
80 bool is_selected; // selected in the currently active browser window 80 bool is_selected; // selected in the currently active browser window
81 bool is_discarded; 81 bool is_discarded;
82 base::Time last_active; 82 base::TimeTicks last_active;
83 base::ProcessHandle renderer_handle; 83 base::ProcessHandle renderer_handle;
84 int child_process_host_id; 84 int child_process_host_id;
85 base::string16 title; 85 base::string16 title;
86 int64 tab_contents_id; // unique ID per WebContents 86 int64 tab_contents_id; // unique ID per WebContents
87 }; 87 };
88 typedef std::vector<TabStats> TabStatsList; 88 typedef std::vector<TabStats> TabStatsList;
89 89
90 // Returns true if the |url| represents an internal Chrome web UI page that 90 // Returns true if the |url| represents an internal Chrome web UI page that
91 // can be easily reloaded and hence makes a good choice to discard. 91 // can be easily reloaded and hence makes a good choice to discard.
92 static bool IsReloadableUI(const GURL& url); 92 static bool IsReloadableUI(const GURL& url);
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // Whether a tab discard event has occurred during the last time interval, 184 // Whether a tab discard event has occurred during the last time interval,
185 // used for statistics normalized by usage. 185 // used for statistics normalized by usage.
186 bool recent_tab_discard_; 186 bool recent_tab_discard_;
187 187
188 DISALLOW_COPY_AND_ASSIGN(OomPriorityManager); 188 DISALLOW_COPY_AND_ASSIGN(OomPriorityManager);
189 }; 189 };
190 190
191 } // namespace chromeos 191 } // namespace chromeos
192 192
193 #endif // CHROME_BROWSER_CHROMEOS_MEMORY_OOM_PRIORITY_MANAGER_H_ 193 #endif // CHROME_BROWSER_CHROMEOS_MEMORY_OOM_PRIORITY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698