Roll src/third_party/WebKit eac3800:0237a66 (svn 202606:202607)
[chromium-blink-merge.git] / chrome / browser / memory / tab_stats.h
blobdcc979d7beeb88a46259c496894ec678f0ea58f9
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_MEMORY_TAB_STATS_H_
6 #define CHROME_BROWSER_MEMORY_TAB_STATS_H_
8 #include <vector>
10 #include "base/process/process.h"
11 #include "base/strings/string16.h"
12 #include "base/time/time.h"
14 namespace memory {
16 struct TabStats {
17 TabStats();
18 ~TabStats();
19 bool is_app; // Browser window is an app.
20 bool is_internal_page; // Internal page, such as NTP or Settings.
21 bool is_playing_audio;
22 bool is_pinned;
23 bool is_selected; // Selected in the currently active browser window.
24 bool is_discarded;
25 int discard_count;
26 base::TimeTicks last_active;
27 base::ProcessHandle renderer_handle;
28 int child_process_host_id;
29 base::string16 title;
30 #if defined(OS_CHROMEOS)
31 int oom_score;
32 #endif
33 int64 tab_contents_id; // Unique ID per WebContents.
36 typedef std::vector<TabStats> TabStatsList;
38 } // namespace memory
40 #endif // CHROME_BROWSER_MEMORY_TAB_STATS_H_