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

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

Issue 2321313002: Move components/memory_coordinator -> content/ (Closed)
Patch Set: 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
Index: content/browser/memory/memory_monitor.h
diff --git a/components/memory_coordinator/browser/memory_monitor.h b/content/browser/memory/memory_monitor.h
similarity index 67%
rename from components/memory_coordinator/browser/memory_monitor.h
rename to content/browser/memory/memory_monitor.h
index 8477cbc6abcef373d8d2eb16ee55e04cf5e79cb9..d25de91ce64c01215c9eedfbaf6e46c979ddf13b 100644
--- a/components/memory_coordinator/browser/memory_monitor.h
+++ b/content/browser/memory/memory_monitor.h
@@ -2,19 +2,19 @@
// 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_H_
-#define COMPONENTS_MEMORY_COORDINATOR_BROWSER_MEMORY_MONITOR_H_
+#ifndef CONTENT_BROWSER_MEMORY_BROWSER_MEMORY_MONITOR_H_
+#define CONTENT_BROWSER_MEMORY_BROWSER_MEMORY_MONITOR_H_
#include <memory>
#include "base/macros.h"
-#include "components/memory_coordinator/common/memory_coordinator_export.h"
+#include "content/common/content_export.h"
-namespace memory_coordinator {
+namespace content {
// A simple class that monitors the amount of free memory available on a system.
// This is an interface to facilitate dependency injection for testing.
-class MEMORY_COORDINATOR_EXPORT MemoryMonitor {
+class CONTENT_EXPORT MemoryMonitor {
public:
MemoryMonitor() {}
virtual ~MemoryMonitor() {}
@@ -31,8 +31,8 @@ class MEMORY_COORDINATOR_EXPORT MemoryMonitor {
};
// Factory function for creating a monitor for the current platform.
-MEMORY_COORDINATOR_EXPORT std::unique_ptr<MemoryMonitor> CreateMemoryMonitor();
+CONTENT_EXPORT std::unique_ptr<MemoryMonitor> CreateMemoryMonitor();
-} // namespace memory_coordinator
+} // namespace content
-#endif // COMPONENTS_MEMORY_COORDINATOR_BROWSER_MEMORY_MONITOR_H_
+#endif // CONTENT_BROWSER_MEMORY_BROWSER_MEMORY_MONITOR_H_

Powered by Google App Engine
This is Rietveld 408576698