| 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_
|
|
|