| 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_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_READER_
H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_READER_
H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_READER_
H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_READER_
H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 11 #include "webkit/browser/blob/file_stream_reader.h" | 12 #include "webkit/browser/blob/file_stream_reader.h" |
| 12 #include "webkit/browser/fileapi/file_system_url.h" | 13 #include "webkit/browser/fileapi/file_system_url.h" |
| 13 | 14 |
| 14 namespace fileapi { | |
| 15 class AsyncFileUtil; | |
| 16 } // namespace fileapi | |
| 17 | |
| 18 namespace chromeos { | 15 namespace chromeos { |
| 19 namespace file_system_provider { | 16 namespace file_system_provider { |
| 20 | 17 |
| 21 struct EntryMetadata; | 18 struct EntryMetadata; |
| 22 class ProvidedFileSystemInterface; | 19 class ProvidedFileSystemInterface; |
| 23 | 20 |
| 24 // Implements a streamed file reader. It is lazily initialized by the first call | 21 // Implements a streamed file reader. It is lazily initialized by the first call |
| 25 // to Read(). | 22 // to Read(). |
| 26 class FileStreamReader : public webkit_blob::FileStreamReader { | 23 class FileStreamReader : public webkit_blob::FileStreamReader { |
| 27 public: | 24 public: |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 int file_handle_; | 106 int file_handle_; |
| 110 | 107 |
| 111 base::WeakPtrFactory<FileStreamReader> weak_ptr_factory_; | 108 base::WeakPtrFactory<FileStreamReader> weak_ptr_factory_; |
| 112 DISALLOW_COPY_AND_ASSIGN(FileStreamReader); | 109 DISALLOW_COPY_AND_ASSIGN(FileStreamReader); |
| 113 }; | 110 }; |
| 114 | 111 |
| 115 } // namespace file_system_provider | 112 } // namespace file_system_provider |
| 116 } // namespace chromeos | 113 } // namespace chromeos |
| 117 | 114 |
| 118 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_READ
ER_H_ | 115 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_READ
ER_H_ |
| OLD | NEW |