Chromium Code Reviews| Index: chrome/browser/chromeos/power/freezer_cgroup_process_manager.h |
| diff --git a/chrome/browser/chromeos/power/freezer_cgroup_process_manager.h b/chrome/browser/chromeos/power/freezer_cgroup_process_manager.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c394a347134f0dabb47b6754633af353287918bb |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/power/freezer_cgroup_process_manager.h |
| @@ -0,0 +1,31 @@ |
| +// Copyright 2014 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 CHROME_BROWSER_CHROMEOS_POWER_FREEZER_CGROUP_PROCESS_MANAGER_H_ |
| +#define CHROME_BROWSER_CHROMEOS_POWER_FREEZER_CGROUP_PROCESS_MANAGER_H_ |
| + |
| +#include "base/files/file_path.h" |
| +#include "chrome/browser/chromeos/power/renderer_freezer.h" |
| + |
| +namespace chromeos { |
| + |
| +// Manages all the processes in the freezer cgroup on chrome os. |
|
Daniel Erat
2014/09/12 22:53:22
nit: s/chrome os/Chrome OS/
|
| +class FreezerCgroupProcessManager : public RendererFreezer::Delegate { |
|
Chirantan Ekbote
2014/09/12 22:35:09
I named it this because I'll be adding more code t
|
| + public: |
| + FreezerCgroupProcessManager(); |
| + virtual ~FreezerCgroupProcessManager(); |
| + |
| + // RendererFreezer::Delegate overrides. |
| + virtual bool FreezeRenderers() OVERRIDE; |
| + virtual bool ThawRenderers() OVERRIDE; |
| + virtual bool CanFreezeRenderers() OVERRIDE; |
| + |
| + private: |
| + base::FilePath state_path_; |
| + bool enabled_; |
| +}; |
|
Daniel Erat
2014/09/12 22:53:22
include base/macros.h and add DISALLOW_COPY_AND_AS
|
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_POWER_FREEZER_CGROUP_PROCESS_MANAGER_H_ |