| Index: components/memory_coordinator/browser/memory_monitor_chromeos.h
|
| diff --git a/components/memory_coordinator/browser/memory_monitor_linux.h b/components/memory_coordinator/browser/memory_monitor_chromeos.h
|
| similarity index 61%
|
| copy from components/memory_coordinator/browser/memory_monitor_linux.h
|
| copy to components/memory_coordinator/browser/memory_monitor_chromeos.h
|
| index eda27791835cc02aa48c8914ef5fc2058b79bf29..723be49f2bee8479318583d6feb6f535e31ca7ee 100644
|
| --- a/components/memory_coordinator/browser/memory_monitor_linux.h
|
| +++ b/components/memory_coordinator/browser/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 COMPONENTS_MEMORY_COORDINATOR_BROWSER_MEMORY_MONITOR_LINUX_H_
|
| -#define COMPONENTS_MEMORY_COORDINATOR_BROWSER_MEMORY_MONITOR_LINUX_H_
|
| +#ifndef COMPONENTS_MEMORY_COORDINATOR_BROWSER_MEMORY_MONITOR_CHROMEOS_H_
|
| +#define COMPONENTS_MEMORY_COORDINATOR_BROWSER_MEMORY_MONITOR_CHROMEOS_H_
|
|
|
| #include "components/memory_coordinator/browser/memory_monitor.h"
|
| #include "components/memory_coordinator/common/memory_coordinator_export.h"
|
|
|
| -namespace base {
|
| -struct SystemMemoryInfoKB;
|
| -} // namespace base
|
| -
|
| namespace memory_coordinator {
|
|
|
| -// A memory monitor for the Linux platform.
|
| -class MEMORY_COORDINATOR_EXPORT MemoryMonitorLinux : public MemoryMonitor {
|
| +// A memory monitor for the ChromeOS platform.
|
| +class MEMORY_COORDINATOR_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 MEMORY_COORDINATOR_EXPORT MemoryMonitorLinux : public MemoryMonitor {
|
|
|
| } // namespace memory_coordinator
|
|
|
| -#endif // COMPONENTS_MEMORY_COORDINATOR_BROWSER_MEMORY_MONITOR_LINUX_H_
|
| +#endif // COMPONENTS_MEMORY_COORDINATOR_BROWSER_MEMORY_MONITOR_CHROMEOS_H_
|
|
|