| Index: chromeos/dbus/debug_daemon_client.h
|
| diff --git a/chromeos/dbus/debug_daemon_client.h b/chromeos/dbus/debug_daemon_client.h
|
| index 803500d489e26504c2bc678e1b8f87be98bc084a..8ea9770c8bb82d38d0a1b68d1ec0017e3c943481 100644
|
| --- a/chromeos/dbus/debug_daemon_client.h
|
| +++ b/chromeos/dbus/debug_daemon_client.h
|
| @@ -8,6 +8,8 @@
|
| #include <stdint.h>
|
|
|
| #include <map>
|
| +#include <string>
|
| +#include <vector>
|
|
|
| #include "base/callback.h"
|
| #include "base/files/file.h"
|
| @@ -192,6 +194,17 @@ class CHROMEOS_EXPORT DebugDaemonClient
|
| virtual void WaitForServiceToBeAvailable(
|
| const WaitForServiceToBeAvailableCallback& callback) = 0;
|
|
|
| + // A callback for SetOomScoreAdj().
|
| + typedef base::Callback<void(bool success, const std::string& output)>
|
| + SetOomScoreAdjCallback;
|
| +
|
| + // Set OOM score oom_score_adj for some process.
|
| + // Note that the corresponding DBus configuration of the debugd method
|
| + // "SetOomScoreAdj" only permits setting OOM score for processes running by
|
| + // user chronos or Android apps.
|
| + virtual void SetOomScoreAdj(const std::map<int, int>& pid_to_oom_score_adj,
|
| + const SetOomScoreAdjCallback& callback) = 0;
|
| +
|
| // Factory function, creates a new instance and returns ownership.
|
| // For normal usage, access the singleton via DBusThreadManager::Get().
|
| static DebugDaemonClient* Create();
|
|
|