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

Side by Side Diff: chrome/browser/memory/tab_stats.h

Issue 1249693002: Improve the about/discards UI, allowing each tab to be individually closed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve comments on #6 Created 5 years, 5 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
« no previous file with comments | « chrome/browser/memory/oom_priority_manager.cc ('k') | chrome/browser/memory/tab_stats.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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_MEMORY_TAB_STATS_H_ 5 #ifndef CHROME_BROWSER_MEMORY_TAB_STATS_H_
6 #define CHROME_BROWSER_MEMORY_TAB_STATS_H_ 6 #define CHROME_BROWSER_MEMORY_TAB_STATS_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/process/process.h" 10 #include "base/process/process.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 13
14 namespace memory { 14 namespace memory {
15 15
16 struct TabStats { 16 struct TabStats {
17 TabStats(); 17 TabStats();
18 ~TabStats(); 18 ~TabStats();
19 bool is_app; // Browser window is an app. 19 bool is_app; // Browser window is an app.
20 bool is_internal_page; // Internal page, such as NTP or Settings. 20 bool is_internal_page; // Internal page, such as NTP or Settings.
21 bool is_playing_audio; 21 bool is_playing_audio;
22 bool is_pinned; 22 bool is_pinned;
23 bool is_selected; // Selected in the currently active browser window. 23 bool is_selected; // Selected in the currently active browser window.
24 bool is_discarded; 24 bool is_discarded;
25 base::TimeTicks last_active; 25 base::TimeTicks last_active;
26 base::ProcessHandle renderer_handle; 26 base::ProcessHandle renderer_handle;
27 int child_process_host_id; 27 int child_process_host_id;
28 base::string16 title; 28 base::string16 title;
29 #if defined(OS_CHROMEOS)
30 int oom_score;
31 #endif
29 int64 tab_contents_id; // Unique ID per WebContents. 32 int64 tab_contents_id; // Unique ID per WebContents.
30 }; 33 };
31 34
32 typedef std::vector<TabStats> TabStatsList; 35 typedef std::vector<TabStats> TabStatsList;
33 36
34 } // namespace memory 37 } // namespace memory
35 38
36 #endif // CHROME_BROWSER_MEMORY_TAB_STATS_H_ 39 #endif // CHROME_BROWSER_MEMORY_TAB_STATS_H_
OLDNEW
« no previous file with comments | « chrome/browser/memory/oom_priority_manager.cc ('k') | chrome/browser/memory/tab_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698