Chromium Code Reviews| 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 WebWakeLockClient_h | |
| 6 #define WebWakeLockClient_h | |
| 7 | |
| 8 #include "public/platform/WebWakeLockType.h" | |
| 9 #include "public/web/WebSecurityOrigin.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 | |
| 13 class WebWakeLockRequestCallback; | |
| 14 | |
| 15 class WebWakeLockClient { | |
| 16 public: | |
| 17 ~WebWakeLockClient() { } | |
|
mlamouri (slow - plz ping)
2014/08/18 12:15:53
virtual
redchenko
2014/08/19 16:42:21
Done.
| |
| 18 | |
| 19 virtual void requestWakeLock(WebWakeLockType, int requestId, WebSecurityOrig in) = 0; | |
|
mlamouri (slow - plz ping)
2014/08/18 12:15:53
Couldn't you set this client in WebFrameClient and
| |
| 20 virtual void requestWakeUnlock(WebWakeLockType, int requestId) = 0; | |
| 21 | |
| 22 virtual void wakeLockDestroyed() = 0; | |
| 23 virtual void setRequestCallback(WebWakeLockRequestCallback*) = 0; | |
|
mlamouri (slow - plz ping)
2014/08/18 12:15:53
It's hard to review those without the WebWakeLockC
redchenko
2014/08/19 16:42:21
I'll send link to CL later.
| |
| 24 }; | |
| 25 | |
| 26 } // namespace blink | |
| 27 | |
| 28 #endif | |
| OLD | NEW |