| 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 #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() = default; |
| 11 : is_app(false), | |
| 12 is_internal_page(false), | |
| 13 is_media(false), | |
| 14 is_pinned(false), | |
| 15 is_selected(false), | |
| 16 is_discarded(false), | |
| 17 has_form_entry(false), | |
| 18 discard_count(0), | |
| 19 render_process_host(nullptr), | |
| 20 renderer_handle(0), | |
| 21 child_process_host_id(0), | |
| 22 #if defined(OS_CHROMEOS) | |
| 23 oom_score(0), | |
| 24 #endif | |
| 25 tab_contents_id(0), | |
| 26 is_auto_discardable(true) { | |
| 27 } | |
| 28 | 11 |
| 29 TabStats::TabStats(const TabStats& other) = default; | 12 TabStats::TabStats(const TabStats& other) = default; |
| 30 | 13 |
| 31 TabStats::~TabStats() { | 14 TabStats::TabStats(TabStats&& other) noexcept = default; |
| 32 } | 15 |
| 16 TabStats::~TabStats() {} |
| 17 |
| 18 TabStats& TabStats::operator=(const TabStats& other) = default; |
| 33 | 19 |
| 34 } // namespace memory | 20 } // namespace memory |
| OLD | NEW |