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

Side by Side Diff: services/media/framework/parts/reader.h

Issue 1923763002: Motown: Ffmpeg video decoder (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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 #ifndef SERVICES_MEDIA_FRAMEWORK_PARTS_READER_H_ 5 #ifndef SERVICES_MEDIA_FRAMEWORK_PARTS_READER_H_
6 #define SERVICES_MEDIA_FRAMEWORK_PARTS_READER_H_ 6 #define SERVICES_MEDIA_FRAMEWORK_PARTS_READER_H_
7 7
8 #include <limits> 8 #include <limits>
9 #include <memory> 9 #include <memory>
10 10
11 #include "mojo/public/cpp/application/application_impl.h" 11 #include "mojo/public/cpp/application/application_impl.h"
12 #include "services/media/framework/result.h" 12 #include "services/media/framework/result.h"
13 #include "url/gurl.h"
14 13
15 namespace mojo { 14 namespace mojo {
16 namespace media { 15 namespace media {
17 16
18 // Abstract base class for objects that read raw data on behalf of demuxes. 17 // Abstract base class for objects that read raw data on behalf of demuxes.
19 class Reader { 18 class Reader {
20 public: 19 public:
21 using DescribeCallback = 20 using DescribeCallback =
22 std::function<void(Result result, size_t size, bool can_seek)>; 21 std::function<void(Result result, size_t size, bool can_seek)>;
23 using ReadAtCallback = std::function<void(Result result, size_t bytes_read)>; 22 using ReadAtCallback = std::function<void(Result result, size_t bytes_read)>;
(...skipping 13 matching lines...) Expand all
37 virtual void ReadAt(size_t position, 36 virtual void ReadAt(size_t position,
38 uint8_t* buffer, 37 uint8_t* buffer,
39 size_t bytes_to_read, 38 size_t bytes_to_read,
40 const ReadAtCallback& callback) = 0; 39 const ReadAtCallback& callback) = 0;
41 }; 40 };
42 41
43 } // namespace media 42 } // namespace media
44 } // namespace mojo 43 } // namespace mojo
45 44
46 #endif // MOJO_SERVICES_MEDIA_READER_H_ 45 #endif // MOJO_SERVICES_MEDIA_READER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698