Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: content/browser/wake_lock/wake_lock_dispatcher_host.h

Issue 474913003: WakeLock API: IPC at browser side. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698