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

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

Issue 846443006: Include Mojo SDK/EDK via fully-qualified paths in Chromium code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix include to satisfy checkdeps Created 5 years, 11 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 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 #include "media/mojo/services/mojo_demuxer_stream_impl.h" 5 #include "media/mojo/services/mojo_demuxer_stream_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "media/base/audio_decoder_config.h" 9 #include "media/base/audio_decoder_config.h"
10 #include "media/base/decoder_buffer.h" 10 #include "media/base/decoder_buffer.h"
11 #include "media/base/video_decoder_config.h" 11 #include "media/base/video_decoder_config.h"
12 #include "media/mojo/interfaces/demuxer_stream.mojom.h" 12 #include "media/mojo/interfaces/demuxer_stream.mojom.h"
13 #include "media/mojo/services/media_type_converters.h" 13 #include "media/mojo/services/media_type_converters.h"
14 #include "mojo/public/cpp/bindings/interface_impl.h" 14 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_impl.h"
15 #include "mojo/public/cpp/system/data_pipe.h" 15 #include "third_party/mojo/src/mojo/public/cpp/system/data_pipe.h"
16 16
17 namespace media { 17 namespace media {
18 18
19 MojoDemuxerStreamImpl::MojoDemuxerStreamImpl(media::DemuxerStream* stream) 19 MojoDemuxerStreamImpl::MojoDemuxerStreamImpl(media::DemuxerStream* stream)
20 : stream_(stream), weak_factory_(this) { 20 : stream_(stream), weak_factory_(this) {
21 } 21 }
22 22
23 MojoDemuxerStreamImpl::~MojoDemuxerStreamImpl() { 23 MojoDemuxerStreamImpl::~MojoDemuxerStreamImpl() {
24 } 24 }
25 25
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // Other types don't require a lot of room, so use a smaller pipe. 104 // Other types don't require a lot of room, so use a smaller pipe.
105 options.capacity_num_bytes = 512 * 1024; 105 options.capacity_num_bytes = 512 * 1024;
106 } 106 }
107 107
108 mojo::DataPipe data_pipe(options); 108 mojo::DataPipe data_pipe(options);
109 stream_pipe_ = data_pipe.producer_handle.Pass(); 109 stream_pipe_ = data_pipe.producer_handle.Pass();
110 client()->OnStreamReady(data_pipe.consumer_handle.Pass()); 110 client()->OnStreamReady(data_pipe.consumer_handle.Pass());
111 } 111 }
112 112
113 } // namespace media 113 } // namespace media
OLDNEW
« no previous file with comments | « media/mojo/services/mojo_demuxer_stream_impl.h ('k') | media/mojo/services/mojo_media_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698