OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_BROWSER_POWER_SAVE_BLOCKER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_POWER_SAVE_BLOCKER_IMPL_H_ |
6 #define CONTENT_BROWSER_POWER_SAVE_BLOCKER_IMPL_H_ | 6 #define CONTENT_BROWSER_POWER_SAVE_BLOCKER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "build/build_config.h" |
11 #include "content/public/browser/power_save_blocker.h" | 13 #include "content/public/browser/power_save_blocker.h" |
12 | 14 |
13 namespace content { | 15 namespace content { |
14 | 16 |
15 class WebContents; | 17 class WebContents; |
16 | 18 |
17 class PowerSaveBlockerImpl : public PowerSaveBlocker { | 19 class PowerSaveBlockerImpl : public PowerSaveBlocker { |
18 public: | 20 public: |
19 PowerSaveBlockerImpl(PowerSaveBlockerType type, | 21 PowerSaveBlockerImpl(PowerSaveBlockerType type, |
20 Reason reason, | 22 Reason reason, |
(...skipping 28 matching lines...) Expand all Loading... |
49 // block system suspend when screen saver / display sleep is blocked. | 51 // block system suspend when screen saver / display sleep is blocked. |
50 scoped_refptr<Delegate> freedesktop_suspend_delegate_; | 52 scoped_refptr<Delegate> freedesktop_suspend_delegate_; |
51 #endif | 53 #endif |
52 | 54 |
53 DISALLOW_COPY_AND_ASSIGN(PowerSaveBlockerImpl); | 55 DISALLOW_COPY_AND_ASSIGN(PowerSaveBlockerImpl); |
54 }; | 56 }; |
55 | 57 |
56 } // namespace content | 58 } // namespace content |
57 | 59 |
58 #endif // CONTENT_BROWSER_POWER_SAVE_BLOCKER_IMPL_H_ | 60 #endif // CONTENT_BROWSER_POWER_SAVE_BLOCKER_IMPL_H_ |
OLD | NEW |