OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_PUBLIC_BROWSER_POWER_SAVE_BLOCKER_FACTORY_H_ | 5 #ifndef CONTENT_BROWSER_POWER_SAVE_BLOCKER_FACTORY_H_ |
6 #define CONTENT_PUBLIC_BROWSER_POWER_SAVE_BLOCKER_FACTORY_H_ | 6 #define CONTENT_BROWSER_POWER_SAVE_BLOCKER_FACTORY_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/sequenced_task_runner.h" | 12 #include "base/sequenced_task_runner.h" |
13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
14 #include "content/public/browser/power_save_blocker.h" | 14 #include "device/power_save_blocker/power_save_blocker.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 CONTENT_EXPORT std::unique_ptr<PowerSaveBlocker> CreatePowerSaveBlocker( | 18 CONTENT_EXPORT std::unique_ptr<device::PowerSaveBlocker> CreatePowerSaveBlocker( |
19 PowerSaveBlocker::PowerSaveBlockerType type, | 19 device::PowerSaveBlocker::PowerSaveBlockerType type, |
20 PowerSaveBlocker::Reason reason, | 20 device::PowerSaveBlocker::Reason reason, |
21 const std::string& description); | 21 const std::string& description); |
22 | 22 |
23 } // namespace content | 23 } // namespace content |
24 | 24 |
25 #endif // CONTENT_PUBLIC_BROWSER_POWER_SAVE_BLOCKER_FACTORY_H_ | 25 #endif // CONTENT_BROWSER_POWER_SAVE_BLOCKER_FACTORY_H_ |
OLD | NEW |