#ifndef THIRD_PARTY_BLINK_RENDERER_CONTROLLER_MEMORY_SAVER_CONTROLLER_H_
#define THIRD_PARTY_BLINK_RENDERER_CONTROLLER_MEMORY_SAVER_CONTROLLER_H_
#include "base/timer/timer.h"
#include "third_party/blink/renderer/controller/controller_export.h"
namespace blink {
class CONTROLLER_EXPORT MemorySaverController {
public:
static void Initialize();
private:
MemorySaverController();
void Sample();
void SetMemorySaverModeForAllIsolates(bool memory_saver_mode_enabled);
base::RepeatingTimer sample_timer_;
bool memory_saver_enabled_;
};
}
#endif