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

Side by Side Diff: content/browser/memory/memory_monitor_linux.h

Issue 2321313002: Move components/memory_coordinator -> content/ (Closed)
Patch Set: rebase etc Created 4 years, 3 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 (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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 COMPONENTS_MEMORY_COORDINATOR_BROWSER_MEMORY_MONITOR_LINUX_H_ 5 #ifndef CONTENT_BROWSER_MEMORY_MEMORY_MONITOR_LINUX_H_
6 #define COMPONENTS_MEMORY_COORDINATOR_BROWSER_MEMORY_MONITOR_LINUX_H_ 6 #define CONTENT_BROWSER_MEMORY_MEMORY_MONITOR_LINUX_H_
7 7
8 #include "components/memory_coordinator/browser/memory_monitor.h" 8 #include "content/browser/memory/memory_monitor.h"
9 #include "components/memory_coordinator/common/memory_coordinator_export.h" 9 #include "content/common/content_export.h"
10 10
11 namespace base { 11 namespace base {
12 struct SystemMemoryInfoKB; 12 struct SystemMemoryInfoKB;
13 } // namespace base 13 } // namespace base
14 14
15 namespace memory_coordinator { 15 namespace content {
16 16
17 // A memory monitor for the Linux platform. 17 // A memory monitor for the Linux platform.
18 class MEMORY_COORDINATOR_EXPORT MemoryMonitorLinux : public MemoryMonitor { 18 class CONTENT_EXPORT MemoryMonitorLinux : public MemoryMonitor {
19 public: 19 public:
20 MemoryMonitorLinux(MemoryMonitorDelegate* delegate); 20 MemoryMonitorLinux(MemoryMonitorDelegate* delegate);
21 ~MemoryMonitorLinux() override {} 21 ~MemoryMonitorLinux() override;
22 22
23 // MemoryMonitor: 23 // MemoryMonitor:
24 int GetFreeMemoryUntilCriticalMB() override; 24 int GetFreeMemoryUntilCriticalMB() override;
25 25
26 // Factory function to create an instance of this class. 26 // Factory function to create an instance of this class.
27 static std::unique_ptr<MemoryMonitorLinux> Create( 27 static std::unique_ptr<MemoryMonitorLinux> Create(
28 MemoryMonitorDelegate* delegate); 28 MemoryMonitorDelegate* delegate);
29 29
30 private: 30 private:
31 // The delegate to be used for retrieving system memory information. Used as a 31 // The delegate to be used for retrieving system memory information. Used as a
32 // testing seam. 32 // testing seam.
33 MemoryMonitorDelegate* delegate_; 33 MemoryMonitorDelegate* delegate_;
34 }; 34 };
35 35
36 } // namespace memory_coordinator 36 } // namespace content
37 37
38 #endif // COMPONENTS_MEMORY_COORDINATOR_BROWSER_MEMORY_MONITOR_LINUX_H_ 38 #endif // CONTENT_BROWSER_MEMORY_MEMORY_MONITOR_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698