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

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

Issue 1577953002: Motown in-proc streaming framework used to implement media services. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Addressed feedback including non-const ref parameters. Created 4 years, 10 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SERVICES_MEDIA_FRAMEWORK_PARTS_FILE_READER_H_
6 #define SERVICES_MEDIA_FRAMEWORK_PARTS_FILE_READER_H_
7
8 #include "services/media/framework/parts/reader.h"
9
10 namespace mojo {
11 namespace media {
12
13 class FileReader : public Reader {
14 public:
15 static ReaderPtr New() {
16 return ReaderPtr(new FileReader());
17 }
18
19 ~FileReader() override;
20
21 // Reader implementation.
22 Result Init(const GURL& gurl) override;
23
24 int Read(uint8* buffer, int bytes_to_read) override;
25
26 int64 GetPosition() const override;
27
28 int64 SetPosition(int64 position) override;
29
30 int64 GetSize() const override;
31
32 bool CanSeek() const override;
33
34 private:
35 FileReader() {}
36
37 FILE* file_;
johngro 2016/01/26 01:32:39 I don't think that we should be using stdio FILE s
dalesat 2016/01/28 18:49:15 Right...future CL?
johngro 2016/02/01 22:38:16 Acknowledged. Sure, please file a tracking issue
dalesat 2016/02/01 23:01:28 Acknowledged.
38 int64 size_;
39 };
40
41 } // namespace media
42 } // namespace mojo
43
44 #endif // SERVICES_MEDIA_FRAMEWORK_PARTS_FILE_READER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698