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

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

Issue 1641813002: Provide renderers with memory pressure signals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@contentapi
Patch Set: Addressed creis' comments. Created 4 years, 10 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_stats.h ('k') | content/browser/devtools/protocol/memory_handler.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 #include "build/build_config.h" 5 #include "build/build_config.h"
6 #include "chrome/browser/memory/tab_stats.h" 6 #include "chrome/browser/memory/tab_stats.h"
7 7
8 namespace memory { 8 namespace memory {
9 9
10 TabStats::TabStats() 10 TabStats::TabStats()
11 : is_app(false), 11 : is_app(false),
12 is_internal_page(false), 12 is_internal_page(false),
13 is_media(false), 13 is_media(false),
14 is_pinned(false), 14 is_pinned(false),
15 is_selected(false), 15 is_selected(false),
16 is_discarded(false), 16 is_discarded(false),
17 has_form_entry(false), 17 has_form_entry(false),
18 discard_count(0), 18 discard_count(0),
19 render_process_host(nullptr),
19 renderer_handle(0), 20 renderer_handle(0),
20 child_process_host_id(0), 21 child_process_host_id(0),
21 #if defined(OS_CHROMEOS) 22 #if defined(OS_CHROMEOS)
22 oom_score(0), 23 oom_score(0),
23 #endif 24 #endif
24 tab_contents_id(0) { 25 tab_contents_id(0) {
25 } 26 }
26 27
27 TabStats::~TabStats() { 28 TabStats::~TabStats() {
28 } 29 }
29 30
30 } // namespace memory 31 } // namespace memory
OLDNEW
« no previous file with comments | « chrome/browser/memory/tab_stats.h ('k') | content/browser/devtools/protocol/memory_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698