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

Unified Diff: public/platform/WebMediaRecorderHandlerClient.h

Issue 1227153002: WebMediaRecorder: adding abstract classes to public/platform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: public/platform/WebMediaRecorderHandlerClient.h
diff --git a/public/platform/WebMediaRecorderHandlerClient.h b/public/platform/WebMediaRecorderHandlerClient.h
new file mode 100644
index 0000000000000000000000000000000000000000..e48ac76d602911aeeb87b99587b48ab448609d17
--- /dev/null
+++ b/public/platform/WebMediaRecorderHandlerClient.h
@@ -0,0 +1,23 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebMediaRecorderHandlerClient_h
+#define WebMediaRecorderHandlerClient_h
+
+namespace blink {
+
+class WebMediaRecorderHandlerClient {
slightlyoff 2015/07/20 01:12:06 Same question about copyability.
mcasas 2015/07/20 19:30:26 Acknowledged.
+public:
+ virtual void writeData(const char* data, int length, bool lastInslice) = 0;
slightlyoff 2015/07/20 01:12:06 int for length? why not size_t?
mcasas 2015/07/20 19:30:26 Done.
+
+ virtual void failOutOfMemory(const WebString& message) = 0;
+ virtual void failIllegalStreamModification(const WebString& message) = 0;
+ virtual void failOtherRecordingError(const WebString& message) = 0;
+
+protected:
+ virtual ~WebMediaRecorderHandlerClient() { }
+};
+
+} // namespace blink
+#endif
« public/platform/WebMediaRecorderHandler.h ('K') | « public/platform/WebMediaRecorderHandler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698