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

Unified Diff: components/memory_pressure/memory_pressure_calculator.h

Issue 2874553004: Remove memory_pressure component. (Closed)
Patch Set: Created 3 years, 7 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
Index: components/memory_pressure/memory_pressure_calculator.h
diff --git a/components/memory_pressure/memory_pressure_calculator.h b/components/memory_pressure/memory_pressure_calculator.h
deleted file mode 100644
index f55939b9b8a81c330b88bca40276bfdf05750aa9..0000000000000000000000000000000000000000
--- a/components/memory_pressure/memory_pressure_calculator.h
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_MEMORY_PRESSURE_MEMORY_PRESSURE_CALCULATOR_H_
-#define COMPONENTS_MEMORY_PRESSURE_MEMORY_PRESSURE_CALCULATOR_H_
-
-#include "base/macros.h"
-#include "components/memory_pressure/memory_pressure_listener.h"
-
-namespace memory_pressure {
-
-#if defined(MEMORY_PRESSURE_IS_POLLING)
-
-// Interface for a utility class that calculates memory pressure. Only used on
-// platforms without native memory pressure signals.
-class MemoryPressureCalculator {
- public:
- using MemoryPressureLevel = MemoryPressureListener::MemoryPressureLevel;
-
- MemoryPressureCalculator() {}
- virtual ~MemoryPressureCalculator() {}
- virtual MemoryPressureLevel CalculateCurrentPressureLevel() = 0;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(MemoryPressureCalculator);
-};
-
-#endif // defined(MEMORY_PRESSURE_IS_POLLING)
-
-} // namespace memory_pressure
-
-#endif // COMPONENTS_MEMORY_PRESSURE_MEMORY_PRESSURE_CALCULATOR_H_

Powered by Google App Engine
This is Rietveld 408576698