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

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

Issue 2898033002: [TabManager] Move TabManager into chrome/browser/resource_coordinator. (Closed)
Patch Set: rebase Created 3 years, 6 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_RESOURCE_COORDINATOR_TAB_STATS_H_
6 #define CHROME_BROWSER_MEMORY_TAB_STATS_H_ 6 #define CHROME_BROWSER_RESOURCE_COORDINATOR_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 resource_coordinator {
22 22
23 struct TabStats { 23 struct TabStats {
24 TabStats(); 24 TabStats();
25 TabStats(const TabStats& other); 25 TabStats(const TabStats& other);
26 TabStats(TabStats&& other) noexcept; 26 TabStats(TabStats&& other) noexcept;
27 ~TabStats(); 27 ~TabStats();
28 28
29 TabStats& operator=(const TabStats& other); 29 TabStats& operator=(const TabStats& other);
30 30
31 bool is_app = false; // Browser window is an app. 31 bool is_app = false; // Browser window is an app.
(...skipping 13 matching lines...) Expand all
45 base::string16 title; 45 base::string16 title;
46 #if defined(OS_CHROMEOS) 46 #if defined(OS_CHROMEOS)
47 int oom_score = 0; 47 int oom_score = 0;
48 #endif 48 #endif
49 int64_t tab_contents_id = 0; // Unique ID per WebContents. 49 int64_t tab_contents_id = 0; // Unique ID per WebContents.
50 bool is_auto_discardable = true; 50 bool is_auto_discardable = true;
51 }; 51 };
52 52
53 typedef std::vector<TabStats> TabStatsList; 53 typedef std::vector<TabStats> TabStatsList;
54 54
55 } // namespace memory 55 } // namespace resource_coordinator
56 56
57 #endif // CHROME_BROWSER_MEMORY_TAB_STATS_H_ 57 #endif // CHROME_BROWSER_RESOURCE_COORDINATOR_TAB_STATS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698