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

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

Issue 1731483003: chrome: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/process/process.h" 12 #include "base/process/process.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 16
17 namespace content { 17 namespace content {
18 class RenderProcessHost; 18 class RenderProcessHost;
19 } // namespace content 19 } // namespace content
20 20
21 namespace memory { 21 namespace memory {
22 22
23 struct TabStats { 23 struct TabStats {
24 TabStats(); 24 TabStats();
25 TabStats(const TabStats& other);
25 ~TabStats(); 26 ~TabStats();
26 bool is_app; // Browser window is an app. 27 bool is_app; // Browser window is an app.
27 bool is_internal_page; // Internal page, such as NTP or Settings. 28 bool is_internal_page; // Internal page, such as NTP or Settings.
28 bool is_media; // Playing audio, acessing cam/mic or mirroring display. 29 bool is_media; // Playing audio, acessing cam/mic or mirroring display.
29 bool is_pinned; 30 bool is_pinned;
30 bool is_selected; // Selected in the currently active browser window. 31 bool is_selected; // Selected in the currently active browser window.
31 bool is_discarded; 32 bool is_discarded;
32 bool has_form_entry; // User has entered text in a form. 33 bool has_form_entry; // User has entered text in a form.
33 int discard_count; 34 int discard_count;
34 base::TimeTicks last_active; 35 base::TimeTicks last_active;
35 content::RenderProcessHost* render_process_host; 36 content::RenderProcessHost* render_process_host;
36 base::ProcessHandle renderer_handle; 37 base::ProcessHandle renderer_handle;
37 int child_process_host_id; 38 int child_process_host_id;
38 base::string16 title; 39 base::string16 title;
39 #if defined(OS_CHROMEOS) 40 #if defined(OS_CHROMEOS)
40 int oom_score; 41 int oom_score;
41 #endif 42 #endif
42 int64_t tab_contents_id; // Unique ID per WebContents. 43 int64_t tab_contents_id; // Unique ID per WebContents.
43 }; 44 };
44 45
45 typedef std::vector<TabStats> TabStatsList; 46 typedef std::vector<TabStats> TabStatsList;
46 47
47 } // namespace memory 48 } // namespace memory
48 49
49 #endif // CHROME_BROWSER_MEMORY_TAB_STATS_H_ 50 #endif // CHROME_BROWSER_MEMORY_TAB_STATS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698