| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 ASH_SYSTEM_CHROMEOS_POWER_VIDEO_ACTIVITY_NOTIFIER_H_ | 5 #ifndef ASH_SYSTEM_POWER_VIDEO_ACTIVITY_NOTIFIER_H_ |
| 6 #define ASH_SYSTEM_CHROMEOS_POWER_VIDEO_ACTIVITY_NOTIFIER_H_ | 6 #define ASH_SYSTEM_POWER_VIDEO_ACTIVITY_NOTIFIER_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/wm/video_detector.h" | 9 #include "ash/wm/video_detector.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 | 13 |
| 14 namespace ash { | 14 namespace ash { |
| 15 | 15 |
| 16 // Notifies the power manager when a video is playing. | 16 // Notifies the power manager when a video is playing. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 // Periodically calls MaybeNotifyPowerManager() while | 54 // Periodically calls MaybeNotifyPowerManager() while |
| 55 // should_notify_power_manager() is true. | 55 // should_notify_power_manager() is true. |
| 56 base::RepeatingTimer notify_timer_; | 56 base::RepeatingTimer notify_timer_; |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(VideoActivityNotifier); | 58 DISALLOW_COPY_AND_ASSIGN(VideoActivityNotifier); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace ash | 61 } // namespace ash |
| 62 | 62 |
| 63 #endif // ASH_SYSTEM_CHROMEOS_POWER_VIDEO_ACTIVITY_NOTIFIER_H_ | 63 #endif // ASH_SYSTEM_POWER_VIDEO_ACTIVITY_NOTIFIER_H_ |
| OLD | NEW |