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

Unified Diff: content/renderer/media/media_recorder_handler.h

Issue 1330873002: MediaRecorderHandler: connecting Blink factory method to content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forward declaring WebMediaRecorderHandlerClient (ISO including full header) Created 5 years, 3 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
« no previous file with comments | « no previous file | content/renderer/media/media_recorder_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_recorder_handler.h
diff --git a/content/renderer/media/media_recorder_handler.h b/content/renderer/media/media_recorder_handler.h
index e4f0597b45b90e0d8da043282517b35e129e4e79..a97843bba757f81ed06da8c691718b4bf3962300 100644
--- a/content/renderer/media/media_recorder_handler.h
+++ b/content/renderer/media/media_recorder_handler.h
@@ -5,15 +5,17 @@
#ifndef CONTENT_RENDERER_MEDIA_MEDIA_RECORDER_HANDLER_H_
#define CONTENT_RENDERER_MEDIA_MEDIA_RECORDER_HANDLER_H_
+#include "base/compiler_specific.h"
#include "base/memory/scoped_vector.h"
#include "base/memory/weak_ptr.h"
#include "base/strings/string_piece.h"
#include "base/threading/thread_checker.h"
#include "content/common/content_export.h"
-#include "third_party/WebKit/public/platform/WebMediaRecorderHandlerClient.h"
+#include "third_party/WebKit/public/platform/WebMediaRecorderHandler.h"
#include "third_party/WebKit/public/platform/WebMediaStream.h"
namespace blink {
+class WebMediaRecorderHandlerClient;
class WebString;
} // namespace blink
@@ -35,21 +37,22 @@ class VideoTrackRecorder;
// All methods are called on the same thread as construction and destruction,
// i.e. the Main Render thread.
// TODO(mcasas): Implement audio recording.
-class CONTENT_EXPORT MediaRecorderHandler final {
+class CONTENT_EXPORT MediaRecorderHandler final
+ : public NON_EXPORTED_BASE(blink::WebMediaRecorderHandler) {
public:
MediaRecorderHandler();
- ~MediaRecorderHandler();
+ ~MediaRecorderHandler() override;
// See above, these methods should override blink::WebMediaRecorderHandler.
- bool canSupportMimeType(const blink::WebString& mimeType);
+ bool canSupportMimeType(const blink::WebString& mimeType) override;
bool initialize(blink::WebMediaRecorderHandlerClient* client,
const blink::WebMediaStream& media_stream,
- const blink::WebString& mimeType);
- bool start();
- bool start(int timeslice);
- void stop();
- void pause();
- void resume();
+ const blink::WebString& mimeType) override;
+ bool start() override;
+ bool start(int timeslice) override;
+ void stop() override;
+ void pause() override;
+ void resume() override;
private:
friend class MediaRecorderHandlerTest;
« no previous file with comments | « no previous file | content/renderer/media/media_recorder_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698