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

Unified Diff: chromeos/memory/low_memory_listener_delegate.h

Issue 14727005: Moves LowMemoryObserver into chromeos and renames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review feedback again Created 7 years, 8 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 | « chromeos/memory/low_memory_listener.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/memory/low_memory_listener_delegate.h
diff --git a/chromeos/memory/low_memory_listener_delegate.h b/chromeos/memory/low_memory_listener_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..d3a13bbb518d6418756473ebfba039203b817fd3
--- /dev/null
+++ b/chromeos/memory/low_memory_listener_delegate.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2013 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 CHROMEOS_MEMORY_LOW_MEMORY_LISTENER_DELEGATE_H_
+#define CHROMEOS_MEMORY_LOW_MEMORY_LISTENER_DELEGATE_H_
+
+#include "chromeos/memory/chromeos_memory_export.h"
+
+namespace chromeos {
+
+class CHROMEOS_MEMORY_EXPORT LowMemoryListenerDelegate {
+ public:
+ // Invoked when a low memory situation is detected.
+ virtual void OnMemoryLow() = 0;
+
+ protected:
+ virtual ~LowMemoryListenerDelegate() {}
+};
+
+} // namespace chromeos
+
+#endif // CHROMEOS_MEMORY_LOW_MEMORY_LISTENER_DELEGATE_H_
« no previous file with comments | « chromeos/memory/low_memory_listener.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698