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

Side by Side Diff: services/media/framework_ffmpeg/ffmpeg_demux.cc

Issue 2024953003: Motown: Move framework/util/incident* so other services can use it (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 <condition_variable> 5 #include <condition_variable>
6 #include <map> 6 #include <map>
7 #include <mutex> 7 #include <mutex>
8 #include <thread> 8 #include <thread>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "services/media/framework/util/incident.h"
12 #include "services/media/framework/util/safe_clone.h" 11 #include "services/media/framework/util/safe_clone.h"
13 #include "services/media/framework_ffmpeg/av_codec_context.h" 12 #include "services/media/framework_ffmpeg/av_codec_context.h"
14 #include "services/media/framework_ffmpeg/av_format_context.h" 13 #include "services/media/framework_ffmpeg/av_format_context.h"
15 #include "services/media/framework_ffmpeg/av_io_context.h" 14 #include "services/media/framework_ffmpeg/av_io_context.h"
16 #include "services/media/framework_ffmpeg/av_packet.h" 15 #include "services/media/framework_ffmpeg/av_packet.h"
17 #include "services/media/framework_ffmpeg/ffmpeg_demux.h" 16 #include "services/media/framework_ffmpeg/ffmpeg_demux.h"
17 #include "services/util/cpp/incident.h"
18 18
19 namespace mojo { 19 namespace mojo {
20 namespace media { 20 namespace media {
21 21
22 class FfmpegDemuxImpl : public FfmpegDemux { 22 class FfmpegDemuxImpl : public FfmpegDemux {
23 public: 23 public:
24 FfmpegDemuxImpl(std::shared_ptr<Reader> reader); 24 FfmpegDemuxImpl(std::shared_ptr<Reader> reader);
25 25
26 ~FfmpegDemuxImpl() override; 26 ~FfmpegDemuxImpl() override;
27 27
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 return index_; 340 return index_;
341 } 341 }
342 342
343 std::unique_ptr<StreamType> FfmpegDemuxImpl::FfmpegDemuxStream::stream_type() 343 std::unique_ptr<StreamType> FfmpegDemuxImpl::FfmpegDemuxStream::stream_type()
344 const { 344 const {
345 return SafeClone(stream_type_); 345 return SafeClone(stream_type_);
346 } 346 }
347 347
348 } // namespace media 348 } // namespace media
349 } // namespace mojo 349 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698