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 virtual ~WebWakeLockClient() { } |
| 18 |
| 19 virtual void requestWakeLock(WebWakeLockType, int requestId, WebSecurityOrig
in) = 0; |
| 20 virtual void requestWakeUnlock(WebWakeLockType, int requestId) = 0; |
| 21 |
| 22 virtual void wakeLockDestroyed() = 0; |
| 23 virtual void setRequestCallback(WebWakeLockRequestCallback*) = 0; |
| 24 }; |
| 25 |
| 26 } // namespace blink |
| 27 |
| 28 #endif |
OLD | NEW |