OLD | NEW |
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 CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MTP_FILE_STREAM_READER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MTP_FILE_STREAM_READER_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MTP_FILE_STREAM_READER_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MTP_FILE_STREAM_READER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/files/file.h" | 11 #include "base/files/file.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "storage/browser/fileapi/file_stream_reader.h" | 15 #include "storage/browser/fileapi/file_stream_reader.h" |
16 #include "storage/browser/fileapi/file_system_url.h" | 16 #include "storage/browser/fileapi/file_system_url.h" |
17 #include "storage/browser/storage_browser_export.h" | 17 #include "storage/browser/storage_browser_export.h" |
18 | 18 |
19 namespace base { | |
20 class FilePath; | |
21 } | |
22 | |
23 namespace storage { | 19 namespace storage { |
24 class FileSystemContext; | 20 class FileSystemContext; |
25 } | 21 } |
26 | 22 |
27 class MTPFileStreamReader | 23 class MTPFileStreamReader |
28 : public NON_EXPORTED_BASE(storage::FileStreamReader) { | 24 : public NON_EXPORTED_BASE(storage::FileStreamReader) { |
29 public: | 25 public: |
30 MTPFileStreamReader(storage::FileSystemContext* file_system_context, | 26 MTPFileStreamReader(storage::FileSystemContext* file_system_context, |
31 const storage::FileSystemURL& url, | 27 const storage::FileSystemURL& url, |
32 int64_t initial_offset, | 28 int64_t initial_offset, |
(...skipping 28 matching lines...) Expand all Loading... |
61 const base::Time expected_modification_time_; | 57 const base::Time expected_modification_time_; |
62 | 58 |
63 bool media_header_validated_; | 59 bool media_header_validated_; |
64 | 60 |
65 base::WeakPtrFactory<MTPFileStreamReader> weak_factory_; | 61 base::WeakPtrFactory<MTPFileStreamReader> weak_factory_; |
66 | 62 |
67 DISALLOW_COPY_AND_ASSIGN(MTPFileStreamReader); | 63 DISALLOW_COPY_AND_ASSIGN(MTPFileStreamReader); |
68 }; | 64 }; |
69 | 65 |
70 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MTP_FILE_STREAM_READER_H_ | 66 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MTP_FILE_STREAM_READER_H_ |
OLD | NEW |