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

Unified Diff: content/browser/memory/memory_monitor_chromeos.h

Issue 2332423002: Added memory-monitor for ChromeOS. (Closed)
Patch Set: fixed name of ChromeOS 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/memory/memory_monitor_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/memory/memory_monitor_chromeos.h
diff --git a/content/browser/memory/memory_monitor_linux.h b/content/browser/memory/memory_monitor_chromeos.h
similarity index 56%
copy from content/browser/memory/memory_monitor_linux.h
copy to content/browser/memory/memory_monitor_chromeos.h
index 1a2b389a73b2655bf9172f1840c790f9e99577d2..f007a7d2a0bf3b99e5e6429e02a386a25d0c18ef 100644
--- a/content/browser/memory/memory_monitor_linux.h
+++ b/content/browser/memory/memory_monitor_chromeos.h
@@ -2,29 +2,25 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_BROWSER_MEMORY_MEMORY_MONITOR_LINUX_H_
-#define CONTENT_BROWSER_MEMORY_MEMORY_MONITOR_LINUX_H_
+#ifndef CONTENT_BROWSER_MEMORY_MEMORY_MONITOR_CHROMEOS_H_
+#define CONTENT_BROWSER_MEMORY_MEMORY_MONITOR_CHROMEOS_H_
#include "content/browser/memory/memory_monitor.h"
#include "content/common/content_export.h"
-namespace base {
-struct SystemMemoryInfoKB;
-} // namespace base
-
namespace content {
-// A memory monitor for the Linux platform.
-class CONTENT_EXPORT MemoryMonitorLinux : public MemoryMonitor {
+// A memory monitor for the ChromeOS platform.
+class CONTENT_EXPORT MemoryMonitorChromeOS : public MemoryMonitor {
public:
- MemoryMonitorLinux(MemoryMonitorDelegate* delegate);
- ~MemoryMonitorLinux() override;
+ MemoryMonitorChromeOS(MemoryMonitorDelegate* delegate);
+ ~MemoryMonitorChromeOS() override;
// MemoryMonitor:
int GetFreeMemoryUntilCriticalMB() override;
// Factory function to create an instance of this class.
- static std::unique_ptr<MemoryMonitorLinux> Create(
+ static std::unique_ptr<MemoryMonitorChromeOS> Create(
MemoryMonitorDelegate* delegate);
private:
@@ -35,4 +31,4 @@ class CONTENT_EXPORT MemoryMonitorLinux : public MemoryMonitor {
} // namespace content
-#endif // CONTENT_BROWSER_MEMORY_MEMORY_MONITOR_LINUX_H_
+#endif // CONTENT_BROWSER_MEMORY_MEMORY_MONITOR_CHROMEOS_H_
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/memory/memory_monitor_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698