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_WRITER_
H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_WRITER_
H_ |
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_WRITER_
H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_WRITER_
H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/files/file.h" | 9 #include "base/files/file.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "webkit/browser/fileapi/file_stream_writer.h" | 13 #include "storage/browser/fileapi/file_stream_writer.h" |
14 #include "webkit/browser/fileapi/file_system_url.h" | 14 #include "storage/browser/fileapi/file_system_url.h" |
15 | 15 |
16 namespace chromeos { | 16 namespace chromeos { |
17 namespace file_system_provider { | 17 namespace file_system_provider { |
18 | 18 |
19 class ProvidedFileSystemInterface; | 19 class ProvidedFileSystemInterface; |
20 | 20 |
21 // Implements a streamed file writer. It is lazily initialized by the first call | 21 // Implements a streamed file writer. It is lazily initialized by the first call |
22 // to Write(). | 22 // to Write(). |
23 class FileStreamWriter : public storage::FileStreamWriter { | 23 class FileStreamWriter : public storage::FileStreamWriter { |
24 public: | 24 public: |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 State state_; | 78 State state_; |
79 | 79 |
80 base::WeakPtrFactory<FileStreamWriter> weak_ptr_factory_; | 80 base::WeakPtrFactory<FileStreamWriter> weak_ptr_factory_; |
81 DISALLOW_COPY_AND_ASSIGN(FileStreamWriter); | 81 DISALLOW_COPY_AND_ASSIGN(FileStreamWriter); |
82 }; | 82 }; |
83 | 83 |
84 } // namespace file_system_provider | 84 } // namespace file_system_provider |
85 } // namespace chromeos | 85 } // namespace chromeos |
86 | 86 |
87 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_WRIT
ER_H_ | 87 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_WRIT
ER_H_ |
OLD | NEW |