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 namespace fileapi { |
15 class AsyncFileUtil; | 16 class AsyncFileUtil; |
hashimoto
2014/06/05 10:07:10
nit: Unused forward declaration?
mtomasz
2014/06/06 01:31:03
Done.
| |
16 } // namespace fileapi | 17 } // namespace fileapi |
17 | 18 |
18 namespace chromeos { | 19 namespace chromeos { |
19 namespace file_system_provider { | 20 namespace file_system_provider { |
20 | 21 |
21 class ProvidedFileSystemInterface; | 22 class ProvidedFileSystemInterface; |
22 | 23 |
23 // Implements a streamed file reader. It is lazily initialized by the first call | 24 // Implements a streamed file reader. It is lazily initialized by the first call |
24 // to Read(). | 25 // to Read(). |
25 class FileStreamReader : public webkit_blob::FileStreamReader { | 26 class FileStreamReader : public webkit_blob::FileStreamReader { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
94 int file_handle_; | 95 int file_handle_; |
95 | 96 |
96 base::WeakPtrFactory<FileStreamReader> weak_ptr_factory_; | 97 base::WeakPtrFactory<FileStreamReader> weak_ptr_factory_; |
97 DISALLOW_COPY_AND_ASSIGN(FileStreamReader); | 98 DISALLOW_COPY_AND_ASSIGN(FileStreamReader); |
98 }; | 99 }; |
99 | 100 |
100 } // namespace file_system_provider | 101 } // namespace file_system_provider |
101 } // namespace chromeos | 102 } // namespace chromeos |
102 | 103 |
103 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_READ ER_H_ | 104 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_READ ER_H_ |
OLD | NEW |