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

Side by Side Diff: third_party/WebKit/public/platform/modules/mediasession/WebMediaSession.h

Issue 1370453002: Introduce WebMediaSession (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert throwing in the constructor; would needlessly complicate existing tests Created 5 years, 2 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 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() = default;
18
19 virtual void activate(WebMediaSessionCommandCallback*) = 0;
20 virtual void deactivate(WebMediaSessionCommandCallback*) = 0;
mlamouri (slow - plz ping) 2015/10/07 14:19:31 Why are we using a custom callback for deactivate(
davve 2015/10/08 09:17:35 As the code stands here, there's no probably no go
mlamouri (slow - plz ping) 2015/10/09 13:01:28 I replied in the new patchset. I don't think we sh
davve 2015/10/19 13:12:42 Done.
21 };
22
23 } // namespace blink
24
25 #endif // WebMediaSession_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698