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

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

Issue 1647773002: MediaStream audio sourcing: Bypass audio processing for non-WebRTC cases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NOT FOR REVIEW -- This will be broken-up across multiple CLs. Created 4 years, 10 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: content/renderer/media/media_stream_audio_sink_owner.h
diff --git a/content/renderer/media/media_stream_audio_sink_owner.h b/content/renderer/media/media_stream_audio_sink_owner.h
deleted file mode 100644
index 1cc98b994c2d3bc6b858fbf090435c310b5303c3..0000000000000000000000000000000000000000
--- a/content/renderer/media/media_stream_audio_sink_owner.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2013 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 CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_SINK_OWNER_H_
-#define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_SINK_OWNER_H_
-
-#include <vector>
-
-#include "base/macros.h"
-#include "base/synchronization/lock.h"
-#include "content/renderer/media/media_stream_audio_track_sink.h"
-
-namespace content {
-
-class MediaStreamAudioSink;
-
-// Reference counted holder of MediaStreamAudioSink sinks.
-class MediaStreamAudioSinkOwner : public MediaStreamAudioTrackSink {
- public:
- explicit MediaStreamAudioSinkOwner(MediaStreamAudioSink* sink);
-
- // MediaStreamAudioTrackSink implementation.
- void OnData(const media::AudioBus& audio_bus,
- base::TimeTicks estimated_capture_time) override;
- void OnSetFormat(const media::AudioParameters& params) override;
- void OnReadyStateChanged(
- blink::WebMediaStreamSource::ReadyState state) override;
- void Reset() override;
- bool IsEqual(const MediaStreamAudioSink* other) const override;
-
- protected:
- ~MediaStreamAudioSinkOwner() override {}
-
- private:
- mutable base::Lock lock_;
-
- // Raw pointer to the delegate, the client need to call Reset() to set the
- // pointer to NULL before the delegate goes away.
- MediaStreamAudioSink* delegate_;
-
- DISALLOW_COPY_AND_ASSIGN(MediaStreamAudioSinkOwner);
-};
-
-} // namespace content
-
-#endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_SINK_OWNER_H_
« no previous file with comments | « content/renderer/media/media_stream_audio_processor.cc ('k') | content/renderer/media/media_stream_audio_sink_owner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698