| OLD | NEW |
| 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> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 ~TabStats(); | 26 ~TabStats(); |
| 27 bool is_app; // Browser window is an app. | 27 bool is_app; // Browser window is an app. |
| 28 bool is_internal_page; // Internal page, such as NTP or Settings. | 28 bool is_internal_page; // Internal page, such as NTP or Settings. |
| 29 bool is_media; // Playing audio, acessing cam/mic or mirroring display. | 29 bool is_media; // Playing audio, acessing cam/mic or mirroring display. |
| 30 bool is_pinned; | 30 bool is_pinned; |
| 31 bool is_selected; // Selected in the currently active browser window. | 31 bool is_selected; // Selected in the currently active browser window. |
| 32 bool is_discarded; | 32 bool is_discarded; |
| 33 bool has_form_entry; // User has entered text in a form. | 33 bool has_form_entry; // User has entered text in a form. |
| 34 int discard_count; | 34 int discard_count; |
| 35 base::TimeTicks last_active; | 35 base::TimeTicks last_active; |
| 36 base::TimeTicks last_hidden; |
| 36 content::RenderProcessHost* render_process_host; | 37 content::RenderProcessHost* render_process_host; |
| 37 base::ProcessHandle renderer_handle; | 38 base::ProcessHandle renderer_handle; |
| 38 int child_process_host_id; | 39 int child_process_host_id; |
| 39 base::string16 title; | 40 base::string16 title; |
| 40 #if defined(OS_CHROMEOS) | 41 #if defined(OS_CHROMEOS) |
| 41 int oom_score; | 42 int oom_score; |
| 42 #endif | 43 #endif |
| 43 int64_t tab_contents_id; // Unique ID per WebContents. | 44 int64_t tab_contents_id; // Unique ID per WebContents. |
| 44 bool is_auto_discardable; | 45 bool is_auto_discardable; |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 typedef std::vector<TabStats> TabStatsList; | 48 typedef std::vector<TabStats> TabStatsList; |
| 48 | 49 |
| 49 } // namespace memory | 50 } // namespace memory |
| 50 | 51 |
| 51 #endif // CHROME_BROWSER_MEMORY_TAB_STATS_H_ | 52 #endif // CHROME_BROWSER_MEMORY_TAB_STATS_H_ |
| OLD | NEW |