| 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 STORAGE_BROWSER_FILEAPI_FILE_WRITER_DELEGATE_H_ | 5 #ifndef STORAGE_BROWSER_FILEAPI_FILE_WRITER_DELEGATE_H_ |
| 6 #define STORAGE_BROWSER_FILEAPI_FILE_WRITER_DELEGATE_H_ | 6 #define STORAGE_BROWSER_FILEAPI_FILE_WRITER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 WriteProgressStatus GetCompletionStatusOnError() const; | 84 WriteProgressStatus GetCompletionStatusOnError() const; |
| 85 | 85 |
| 86 DelegateWriteCallback write_callback_; | 86 DelegateWriteCallback write_callback_; |
| 87 scoped_ptr<FileStreamWriter> file_stream_writer_; | 87 scoped_ptr<FileStreamWriter> file_stream_writer_; |
| 88 base::Time last_progress_event_time_; | 88 base::Time last_progress_event_time_; |
| 89 bool writing_started_; | 89 bool writing_started_; |
| 90 FlushPolicy flush_policy_; | 90 FlushPolicy flush_policy_; |
| 91 int bytes_written_backlog_; | 91 int bytes_written_backlog_; |
| 92 int bytes_written_; | 92 int bytes_written_; |
| 93 int bytes_read_; | 93 int bytes_read_; |
| 94 int64 total_bytes_read_; |
| 94 scoped_refptr<net::IOBufferWithSize> io_buffer_; | 95 scoped_refptr<net::IOBufferWithSize> io_buffer_; |
| 95 scoped_refptr<net::DrainableIOBuffer> cursor_; | 96 scoped_refptr<net::DrainableIOBuffer> cursor_; |
| 96 scoped_ptr<net::URLRequest> request_; | 97 scoped_ptr<net::URLRequest> request_; |
| 97 | 98 |
| 98 base::WeakPtrFactory<FileWriterDelegate> weak_factory_; | 99 base::WeakPtrFactory<FileWriterDelegate> weak_factory_; |
| 99 | 100 |
| 100 DISALLOW_COPY_AND_ASSIGN(FileWriterDelegate); | 101 DISALLOW_COPY_AND_ASSIGN(FileWriterDelegate); |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 } // namespace storage | 104 } // namespace storage |
| 104 | 105 |
| 105 #endif // STORAGE_BROWSER_FILEAPI_FILE_WRITER_DELEGATE_H_ | 106 #endif // STORAGE_BROWSER_FILEAPI_FILE_WRITER_DELEGATE_H_ |
| OLD | NEW |