| Index: content/browser/power_save_blocker_impl.h
|
| diff --git a/content/browser/power_save_blocker_impl.h b/content/browser/power_save_blocker_impl.h
|
| index 7ba0b5429b858439b57705abc41ae6fecb32fa1f..a30422646fe05e971866c6160a4ee26fda96f051 100644
|
| --- a/content/browser/power_save_blocker_impl.h
|
| +++ b/content/browser/power_save_blocker_impl.h
|
| @@ -9,10 +9,11 @@
|
|
|
| #include "base/memory/ref_counted.h"
|
| #include "content/public/browser/power_save_blocker.h"
|
| -#include "ui/gfx/native_widget_types.h"
|
|
|
| namespace content {
|
|
|
| +class WebContents;
|
| +
|
| class PowerSaveBlockerImpl : public PowerSaveBlocker {
|
| public:
|
| PowerSaveBlockerImpl(PowerSaveBlockerType type,
|
| @@ -22,9 +23,9 @@ class PowerSaveBlockerImpl : public PowerSaveBlocker {
|
|
|
| #if defined(OS_ANDROID)
|
| // In Android platform, the kPowerSaveBlockPreventDisplaySleep type of
|
| - // PowerSaveBlocker should associated with the ViewAndroid,
|
| - // so the blocker could be removed by platform if the view isn't visble
|
| - void InitDisplaySleepBlocker(gfx::NativeView view_android);
|
| + // PowerSaveBlocker should associated with a WebContents, so the blocker
|
| + // could be removed by platform if the WebContents is hidden.
|
| + void InitDisplaySleepBlocker(WebContents* web_contents);
|
| #endif
|
|
|
| private:
|
|
|