OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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 CHROME_BROWSER_CHROMEOS_POWER_FREEZER_CGROUP_PROCESS_MANAGER_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_POWER_FREEZER_CGROUP_PROCESS_MANAGER_H_ | |
7 | |
8 #include "base/files/file_path.h" | |
9 #include "chrome/browser/chromeos/power/renderer_freezer.h" | |
10 | |
11 namespace chromeos { | |
12 | |
13 // 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/
| |
14 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
| |
15 public: | |
16 FreezerCgroupProcessManager(); | |
17 virtual ~FreezerCgroupProcessManager(); | |
18 | |
19 // RendererFreezer::Delegate overrides. | |
20 virtual bool FreezeRenderers() OVERRIDE; | |
21 virtual bool ThawRenderers() OVERRIDE; | |
22 virtual bool CanFreezeRenderers() OVERRIDE; | |
23 | |
24 private: | |
25 base::FilePath state_path_; | |
26 bool enabled_; | |
27 }; | |
Daniel Erat
2014/09/12 22:53:22
include base/macros.h and add DISALLOW_COPY_AND_AS
| |
28 | |
29 } // namespace chromeos | |
30 | |
31 #endif // CHROME_BROWSER_CHROMEOS_POWER_FREEZER_CGROUP_PROCESS_MANAGER_H_ | |
OLD | NEW |