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

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

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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/tab_manager_unittest.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 <stdint.h>
9
8 #include <vector> 10 #include <vector>
9 11
10 #include "base/process/process.h" 12 #include "base/process/process.h"
11 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
12 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "build/build_config.h"
13 16
14 namespace memory { 17 namespace memory {
15 18
16 struct TabStats { 19 struct TabStats {
17 TabStats(); 20 TabStats();
18 ~TabStats(); 21 ~TabStats();
19 bool is_app; // Browser window is an app. 22 bool is_app; // Browser window is an app.
20 bool is_internal_page; // Internal page, such as NTP or Settings. 23 bool is_internal_page; // Internal page, such as NTP or Settings.
21 bool is_playing_audio; 24 bool is_playing_audio;
22 bool is_pinned; 25 bool is_pinned;
23 bool is_selected; // Selected in the currently active browser window. 26 bool is_selected; // Selected in the currently active browser window.
24 bool is_discarded; 27 bool is_discarded;
25 bool has_form_entry; // User has entered text in a form. 28 bool has_form_entry; // User has entered text in a form.
26 int discard_count; 29 int discard_count;
27 base::TimeTicks last_active; 30 base::TimeTicks last_active;
28 base::ProcessHandle renderer_handle; 31 base::ProcessHandle renderer_handle;
29 int child_process_host_id; 32 int child_process_host_id;
30 base::string16 title; 33 base::string16 title;
31 #if defined(OS_CHROMEOS) 34 #if defined(OS_CHROMEOS)
32 int oom_score; 35 int oom_score;
33 #endif 36 #endif
34 int64 tab_contents_id; // Unique ID per WebContents. 37 int64_t tab_contents_id; // Unique ID per WebContents.
35 }; 38 };
36 39
37 typedef std::vector<TabStats> TabStatsList; 40 typedef std::vector<TabStats> TabStatsList;
38 41
39 } // namespace memory 42 } // namespace memory
40 43
41 #endif // CHROME_BROWSER_MEMORY_TAB_STATS_H_ 44 #endif // CHROME_BROWSER_MEMORY_TAB_STATS_H_
OLDNEW
« no previous file with comments | « chrome/browser/memory/tab_manager_unittest.cc ('k') | chrome/browser/memory/tab_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698