- add sources.
[platform/framework/web/crosswalk.git] / src / chromeos / memory / low_memory_listener_delegate.h
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROMEOS_MEMORY_LOW_MEMORY_LISTENER_DELEGATE_H_
6 #define CHROMEOS_MEMORY_LOW_MEMORY_LISTENER_DELEGATE_H_
7
8 #include "chromeos/memory/chromeos_memory_export.h"
9
10 namespace chromeos {
11
12 class CHROMEOS_MEMORY_EXPORT LowMemoryListenerDelegate {
13  public:
14   // Invoked when a low memory situation is detected.
15   virtual void OnMemoryLow() = 0;
16
17  protected:
18   virtual ~LowMemoryListenerDelegate() {}
19 };
20
21 }  // namespace chromeos
22
23 #endif  // CHROMEOS_MEMORY_LOW_MEMORY_LISTENER_DELEGATE_H_