Revert 168224 - Update V8 to version 3.15.4.
[chromium-blink-merge.git] / chrome / browser / chromeos / power / video_activity_notifier.h
blob9ba22d9855bdf43dd5773f69e2b0677100008814
1 // Copyright (c) 2012 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.
5 #ifndef CHROME_BROWSER_CHROMEOS_POWER_VIDEO_ACTIVITY_NOTIFIER_H_
6 #define CHROME_BROWSER_CHROMEOS_POWER_VIDEO_ACTIVITY_NOTIFIER_H_
8 #include "ash/wm/video_detector.h"
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "base/time.h"
13 namespace chromeos {
15 // Notifies the power manager when a video is playing.
16 class VideoActivityNotifier : public ash::VideoDetectorObserver {
17 public:
18 VideoActivityNotifier();
19 virtual ~VideoActivityNotifier();
21 // ash::VideoDetectorObserver implementation.
22 virtual void OnVideoDetected(bool is_fullscreen) OVERRIDE;
24 private:
25 // Last time that the power manager was notified.
26 base::TimeTicks last_notify_time_;
28 DISALLOW_COPY_AND_ASSIGN(VideoActivityNotifier);
31 } // namespace chromeos
33 #endif // CHROME_BROWSER_CHROMEOS_POWER_VIDEO_ACTIVITY_NOTIFIER_H_