Index: content/browser/wake_lock/wake_lock_web_contents_observer.h |
diff --git a/content/browser/wake_lock/wake_lock_web_contents_observer.h b/content/browser/wake_lock/wake_lock_web_contents_observer.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6f275485121be3e73cece0f31abce8417f7ec33c |
--- /dev/null |
+++ b/content/browser/wake_lock/wake_lock_web_contents_observer.h |
@@ -0,0 +1,23 @@ |
+// Copyright (c) 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_BROWSER_WAKE_LOCK_WAKE_LOCK_WEB_CONTENTS_OBSERVER_H_ |
+#define CONTENT_BROWSER_WAKE_LOCK_WAKE_LOCK_WEB_CONTENTS_OBSERVER_H_ |
+ |
+#include "content/public/browser/web_contents_observer.h" |
+ |
+namespace content { |
+ |
+class WakeLockWebContentsObserver : public content::WebContentsObserver { |
+ public: |
+ explicit WakeLockWebContentsObserver(content::WebContents* webContent); |
+ |
+ private: |
+ // WebContentsObserver |
+ virtual void WasShown() OVERRIDE; |
+ virtual void WasHidden() OVERRIDE; |
+}; |
+} |
+ |
+#endif // CONTENT_BROWSER_WAKE_LOCK_WAKE_LOCK_WEB_CONTENTS_OBSERVER_H_ |