OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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. | |
4 | |
5 #ifndef CONTENT_BROWSER_WAKE_LOCK_WAKE_LOCK_DISPATCHER_HOST_H_ | |
6 #define CONTENT_BROWSER_WAKE_LOCK_WAKE_LOCK_DISPATCHER_HOST_H_ | |
7 | |
8 #include "content/public/browser/web_contents_observer.h" | |
9 | |
10 namespace blink { | |
11 struct WakeLockRequestInfo; | |
mlamouri (slow - plz ping)
2014/09/03 13:20:57
Where is that declared? CL 399313003 doesn't seem
| |
12 } | |
13 | |
14 namespace content { | |
15 | |
16 class WebContents; | |
17 | |
18 class CONTENT_EXPORT WakeLockDispatcherHost | |
19 : public WebContentsObserver { | |
20 public: | |
21 explicit WakeLockDispatcherHost(WebContents* web_contents); | |
22 virtual ~WakeLockDispatcherHost(); | |
23 | |
24 // WebContentsObserver | |
25 virtual bool OnMessageReceived(const IPC::Message&) OVERRIDE; | |
26 | |
27 private: | |
28 void OnRequestWakeLock(const blink::WakeLockRequestInfo& info, | |
29 const GURL& url); | |
30 void OnRequestWakeUnlock(const blink::WakeLockRequestInfo& info); | |
31 | |
32 void SendWakeLockPermissionResponse(const blink::WakeLockRequestInfo& info, | |
33 bool allowed); | |
34 | |
35 DISALLOW_COPY_AND_ASSIGN(WakeLockDispatcherHost); | |
36 }; | |
37 } // namespace content | |
38 | |
39 #endif // CONTENT_BROWSER_WAKE_LOCK_WAKE_LOCK_DISPATCHER_HOST_H_ | |
OLD | NEW |