Index: media/mojo/clients/mojo_demuxer_stream_impl.h |
diff --git a/media/mojo/clients/mojo_demuxer_stream_impl.h b/media/mojo/clients/mojo_demuxer_stream_impl.h |
index 0d3794897cbf125430187a6820e480af4154a58f..49d97b716ecc659b909ffe339b968e0b2b56764b 100644 |
--- a/media/mojo/clients/mojo_demuxer_stream_impl.h |
+++ b/media/mojo/clients/mojo_demuxer_stream_impl.h |
@@ -9,7 +9,7 @@ |
#include "base/memory/weak_ptr.h" |
#include "media/base/demuxer_stream.h" |
#include "media/mojo/interfaces/demuxer_stream.mojom.h" |
-#include "mojo/public/cpp/bindings/strong_binding.h" |
+#include "mojo/public/cpp/bindings/binding.h" |
namespace media { |
class DemuxerStream; |
@@ -31,12 +31,18 @@ class MojoDemuxerStreamImpl : public mojom::DemuxerStream { |
void Read(const ReadCallback& callback) override; |
void EnableBitstreamConverter() override; |
+ // Sets an error handler that will be called if a connection error occurs on |
+ // the bound message pipe. |
+ void set_connection_error_handler(const mojo::Closure& error_handler) { |
+ binding_.set_connection_error_handler(error_handler); |
+ } |
+ |
private: |
void OnBufferReady(const ReadCallback& callback, |
media::DemuxerStream::Status status, |
const scoped_refptr<media::DecoderBuffer>& buffer); |
- mojo::StrongBinding<mojom::DemuxerStream> binding_; |
+ mojo::Binding<mojom::DemuxerStream> binding_; |
// See constructor. We do not own |stream_|. |
media::DemuxerStream* stream_; |