OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 WebMediaSession_h |
| 6 #define WebMediaSession_h |
| 7 |
| 8 #include "public/platform/WebCallbacks.h" |
| 9 #include "public/platform/modules/mediasession/WebMediaSessionError.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 using WebMediaSessionCommandCallback = WebCallbacks<void, const WebMediaSessionE
rror&>; |
| 14 |
| 15 class WebMediaSession { |
| 16 public: |
| 17 virtual ~WebMediaSession() {} |
| 18 |
| 19 virtual void activate(WebMediaSessionCommandCallback*) = 0; |
| 20 virtual void deactivate(WebMediaSessionCommandCallback*) = 0; |
| 21 }; |
| 22 |
| 23 } // namespace blink |
| 24 |
| 25 #endif // WebMediaSession_h |
OLD | NEW |