Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
|
nasko
2015/04/28 23:57:37
2015
| |
| 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_RENDERER_WAKE_LOCK_WAKE_LOCK_DISPATCHER_H_ | |
| 6 #define CONTENT_RENDERER_WAKE_LOCK_WAKE_LOCK_DISPATCHER_H_ | |
| 7 | |
| 8 #include "content/common/wake_lock_service.mojom.h" | |
| 9 #include "content/public/renderer/render_frame_observer.h" | |
| 10 #include "third_party/WebKit/public/platform/WebWakeLockClient.h" | |
| 11 | |
| 12 namespace content { | |
| 13 | |
| 14 // WakeLockDispatcher is a delegate for WakeLock messages used by WebKit. | |
|
nasko
2015/04/28 23:57:37
s/WebKit/Blink/
| |
| 15 // It's the complement of WakeLockDispatcherHost. | |
| 16 class WakeLockDispatcher | |
| 17 : public RenderFrameObserver, | |
| 18 NON_EXPORTED_BASE(public blink::WebWakeLockClient) { | |
|
mlamouri (slow - plz ping)
2015/05/05 14:08:34
Do you need NON_EXPORTED_BASE?
| |
| 19 public: | |
| 20 explicit WakeLockDispatcher(RenderFrame* render_frame); | |
| 21 virtual ~WakeLockDispatcher(); | |
| 22 | |
| 23 private: | |
| 24 // WebWakeLockClient | |
| 25 void requestKeepScreenAwake(bool intention) override; | |
| 26 | |
| 27 WakeLockServicePtr wake_lock_service_; | |
| 28 }; | |
| 29 } // namespace content | |
| 30 | |
| 31 #endif // CONTENT_RENDERER_WAKE_LOCK_WAKE_LOCK_DISPATCHER_H_ | |
| OLD | NEW |