| 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 class ProvidedFileSystemInterface; | 18 class ProvidedFileSystemInterface; |
| 22 | 19 |
| 23 // Implements a streamed file reader. It is lazily initialized by the first call | 20 // Implements a streamed file reader. It is lazily initialized by the first call |
| 24 // to Read(). | 21 // to Read(). |
| 25 class FileStreamReader : public webkit_blob::FileStreamReader { | 22 class FileStreamReader : public webkit_blob::FileStreamReader { |
| 26 public: | 23 public: |
| 27 typedef base::Callback< | 24 typedef base::Callback< |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 int file_handle_; | 91 int file_handle_; |
| 95 | 92 |
| 96 base::WeakPtrFactory<FileStreamReader> weak_ptr_factory_; | 93 base::WeakPtrFactory<FileStreamReader> weak_ptr_factory_; |
| 97 DISALLOW_COPY_AND_ASSIGN(FileStreamReader); | 94 DISALLOW_COPY_AND_ASSIGN(FileStreamReader); |
| 98 }; | 95 }; |
| 99 | 96 |
| 100 } // namespace file_system_provider | 97 } // namespace file_system_provider |
| 101 } // namespace chromeos | 98 } // namespace chromeos |
| 102 | 99 |
| 103 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_READ
ER_H_ | 100 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_READ
ER_H_ |
| OLD | NEW |