| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_STREAM_WRITER_H_ | 5 #ifndef WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_STREAM_WRITER_H_ |
| 6 #define WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_STREAM_WRITER_H_ | 6 #define WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_STREAM_WRITER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "webkit/fileapi/file_stream_writer.h" | 13 #include "webkit/fileapi/file_stream_writer.h" |
| 14 #include "webkit/fileapi/file_system_operation_interface.h" | |
| 15 #include "webkit/fileapi/file_system_url.h" | 14 #include "webkit/fileapi/file_system_url.h" |
| 16 | 15 |
| 17 namespace net { | 16 namespace net { |
| 18 class IOBuffer; | 17 class IOBuffer; |
| 19 } | 18 } |
| 20 | 19 |
| 20 namespace webkit_blob { |
| 21 class ShareableFileReference; |
| 22 } |
| 23 |
| 21 namespace fileapi { | 24 namespace fileapi { |
| 22 | 25 |
| 23 class RemoteFileSystemProxyInterface; | 26 class RemoteFileSystemProxyInterface; |
| 24 | 27 |
| 25 // FileStreamWriter interface for writing to a file on remote file system. | 28 // FileStreamWriter interface for writing to a file on remote file system. |
| 26 class RemoteFileStreamWriter : public fileapi::FileStreamWriter { | 29 class RemoteFileStreamWriter : public fileapi::FileStreamWriter { |
| 27 public: | 30 public: |
| 28 // Creates a writer for a file on |remote_filesystem| with path url |url| | 31 // Creates a writer for a file on |remote_filesystem| with path url |url| |
| 29 // (like "filesystem:chrome-extension://id/external/special/drive/...") that | 32 // (like "filesystem:chrome-extension://id/external/special/drive/...") that |
| 30 // starts writing from |offset|. When invalid parameters are set, the first | 33 // starts writing from |offset|. When invalid parameters are set, the first |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 net::CompletionCallback pending_cancel_callback_; | 65 net::CompletionCallback pending_cancel_callback_; |
| 63 | 66 |
| 64 base::WeakPtrFactory<RemoteFileStreamWriter> weak_factory_; | 67 base::WeakPtrFactory<RemoteFileStreamWriter> weak_factory_; |
| 65 | 68 |
| 66 DISALLOW_COPY_AND_ASSIGN(RemoteFileStreamWriter); | 69 DISALLOW_COPY_AND_ASSIGN(RemoteFileStreamWriter); |
| 67 }; | 70 }; |
| 68 | 71 |
| 69 } // namespace fileapi | 72 } // namespace fileapi |
| 70 | 73 |
| 71 #endif // WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_STREAM_WRITER_H_ | 74 #endif // WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_STREAM_WRITER_H_ |
| OLD | NEW |