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

Side by Side Diff: media/mojo/services/mojo_demuxer_stream_impl.h

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
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_IMPL_H_ 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_DEMUXER_STREAM_IMPL_H_
6 #define MEDIA_MOJO_SERVICES_MOJO_DEMUXER_STREAM_IMPL_H_ 6 #define MEDIA_MOJO_SERVICES_MOJO_DEMUXER_STREAM_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "media/base/demuxer_stream.h" 10 #include "media/base/demuxer_stream.h"
11 #include "media/mojo/interfaces/demuxer_stream.mojom.h" 11 #include "media/mojo/interfaces/demuxer_stream.mojom.h"
12 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" 12 #include "mojo/public/cpp/bindings/strong_binding.h"
13 13
14 namespace media { 14 namespace media {
15 class DemuxerStream; 15 class DemuxerStream;
16 16
17 // This class wraps a media::DemuxerStream and exposes it as a 17 // This class wraps a media::DemuxerStream and exposes it as a
18 // interfaces::DemuxerStream for use as a proxy from remote applications. 18 // interfaces::DemuxerStream for use as a proxy from remote applications.
19 class MojoDemuxerStreamImpl : public interfaces::DemuxerStream { 19 class MojoDemuxerStreamImpl : public interfaces::DemuxerStream {
20 public: 20 public:
21 // |stream| is the underlying DemuxerStream we are proxying for. 21 // |stream| is the underlying DemuxerStream we are proxying for.
22 // Note: |this| does not take ownership of |stream|. 22 // Note: |this| does not take ownership of |stream|.
(...skipping 21 matching lines...) Expand all
44 // DataPipe for serializing the data section of DecoderBuffer into. 44 // DataPipe for serializing the data section of DecoderBuffer into.
45 mojo::ScopedDataPipeProducerHandle stream_pipe_; 45 mojo::ScopedDataPipeProducerHandle stream_pipe_;
46 46
47 base::WeakPtrFactory<MojoDemuxerStreamImpl> weak_factory_; 47 base::WeakPtrFactory<MojoDemuxerStreamImpl> weak_factory_;
48 DISALLOW_COPY_AND_ASSIGN(MojoDemuxerStreamImpl); 48 DISALLOW_COPY_AND_ASSIGN(MojoDemuxerStreamImpl);
49 }; 49 };
50 50
51 } // namespace media 51 } // namespace media
52 52
53 #endif // MEDIA_MOJO_SERVICES_MOJO_DEMUXER_STREAM_IMPL_H_ 53 #endif // MEDIA_MOJO_SERVICES_MOJO_DEMUXER_STREAM_IMPL_H_
OLDNEW
« no previous file with comments | « media/mojo/services/mojo_demuxer_stream_adapter.cc ('k') | media/mojo/services/mojo_demuxer_stream_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698