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

Side by Side Diff: public/platform/WebMediaRecorderHandler.h

Issue 1255873002: MediaRecorder Blink part (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: esprehn@ comments Created 5 years, 4 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 WebMediaRecorderHandler_h
6 #define WebMediaRecorderHandler_h
7
8 #include "WebCommon.h"
9
10 namespace blink {
11
12 class WebMediaRecorderHandlerClient;
13 class WebMediaStream;
14 class WebString;
15
16 // Platform interface of a MediaRecorder.
17 class BLINK_PLATFORM_EXPORT WebMediaRecorderHandler {
18 public:
19 virtual ~WebMediaRecorderHandler() { }
mlamouri (slow - plz ping) 2015/08/13 13:31:48 = default; instead of {} should do.
mcasas 2015/08/13 18:42:17 Done.
20 virtual bool initialize(WebMediaRecorderHandlerClient* client,
21 const WebMediaStream& stream,
22 const WebString& mimeType) = 0;
23 virtual bool start() = 0;
24 virtual bool start(int timeslice) = 0;
mlamouri (slow - plz ping) 2015/08/13 13:31:48 I think the Chromium/Blink style guide do not reco
mcasas 2015/08/13 18:42:17 Chromium is mildly against them [1] and in this ca
25 virtual void stop() = 0;
26 virtual void pause() = 0;
27 virtual void resume() = 0;
28
29 // MediaRecorder API canRecordMimeType() is a tristate in which the returned
30 // value 'probably' means that "the user agent is confident that mimeType
31 // represents a type that it can record" [1], but a number of reasons might
32 // prevent a firm answer at this stage, so a boolean is a better option,
33 // because "Implementors are encouraged to return "maybe" unless the type
34 // can be confidently established as being supported or not." [1].
35 // [1] http://w3c.github.io/mediacapture-record/MediaRecorder.html#methods
36 virtual bool canSupportMimeType(const WebString& mimeType) = 0;
37 };
38
39 } // namespace blink
40 #endif
mlamouri (slow - plz ping) 2015/08/13 13:31:48 nit: empty line
mcasas 2015/08/13 18:42:17 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698