| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_DEMUXER_STREAM_ADAPTER_H_ | 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_DEMUXER_STREAM_ADAPTER_H_ |
| 6 #define MEDIA_MOJO_SERVICES_MOJO_DEMUXER_STREAM_ADAPTER_H_ | 6 #define MEDIA_MOJO_SERVICES_MOJO_DEMUXER_STREAM_ADAPTER_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 11 #include "media/base/audio_decoder_config.h" | 12 #include "media/base/audio_decoder_config.h" |
| 12 #include "media/base/demuxer_stream.h" | 13 #include "media/base/demuxer_stream.h" |
| 13 #include "media/base/video_decoder_config.h" | 14 #include "media/base/video_decoder_config.h" |
| 14 #include "media/mojo/interfaces/demuxer_stream.mojom.h" | 15 #include "media/mojo/interfaces/demuxer_stream.mojom.h" |
| 15 | 16 |
| 16 namespace media { | 17 namespace media { |
| 17 | 18 |
| 18 // This class acts as a MojoRendererService-side stub for a real DemuxerStream | 19 // This class acts as a MojoRendererService-side stub for a real DemuxerStream |
| 19 // that is part of a Pipeline in a remote application. Roughly speaking, it | 20 // that is part of a Pipeline in a remote application. Roughly speaking, it |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // DataPipe for deserializing the data section of DecoderBuffers from. | 78 // DataPipe for deserializing the data section of DecoderBuffers from. |
| 78 mojo::ScopedDataPipeConsumerHandle stream_pipe_; | 79 mojo::ScopedDataPipeConsumerHandle stream_pipe_; |
| 79 | 80 |
| 80 base::WeakPtrFactory<MojoDemuxerStreamAdapter> weak_factory_; | 81 base::WeakPtrFactory<MojoDemuxerStreamAdapter> weak_factory_; |
| 81 DISALLOW_COPY_AND_ASSIGN(MojoDemuxerStreamAdapter); | 82 DISALLOW_COPY_AND_ASSIGN(MojoDemuxerStreamAdapter); |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 } // namespace media | 85 } // namespace media |
| 85 | 86 |
| 86 #endif // MEDIA_MOJO_SERVICES_MOJO_DEMUXER_STREAM_ADAPTER_H_ | 87 #endif // MEDIA_MOJO_SERVICES_MOJO_DEMUXER_STREAM_ADAPTER_H_ |
| OLD | NEW |