| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_FILEAPI_FILE_WRITER_DELEGATE_H_ | 5 #ifndef WEBKIT_FILEAPI_FILE_WRITER_DELEGATE_H_ |
| 6 #define WEBKIT_FILEAPI_FILE_WRITER_DELEGATE_H_ | 6 #define WEBKIT_FILEAPI_FILE_WRITER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 int64 size_; | 69 int64 size_; |
| 70 int64 offset_; | 70 int64 offset_; |
| 71 scoped_refptr<base::MessageLoopProxy> proxy_; | 71 scoped_refptr<base::MessageLoopProxy> proxy_; |
| 72 base::Time last_progress_event_time_; | 72 base::Time last_progress_event_time_; |
| 73 int bytes_written_backlog_; | 73 int bytes_written_backlog_; |
| 74 int bytes_written_; | 74 int bytes_written_; |
| 75 int bytes_read_; | 75 int bytes_read_; |
| 76 int64 total_bytes_written_; | 76 int64 total_bytes_written_; |
| 77 int64 allowed_bytes_to_write_; | 77 int64 allowed_bytes_to_write_; |
| 78 scoped_refptr<net::IOBufferWithSize> io_buffer_; | 78 scoped_refptr<net::IOBufferWithSize> io_buffer_; |
| 79 scoped_refptr<net::DrainableIOBuffer> cursor_; |
| 79 scoped_ptr<net::FileStream> file_stream_; | 80 scoped_ptr<net::FileStream> file_stream_; |
| 80 net::URLRequest* request_; | 81 net::URLRequest* request_; |
| 81 base::WeakPtrFactory<FileWriterDelegate> weak_factory_; | 82 base::WeakPtrFactory<FileWriterDelegate> weak_factory_; |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 } // namespace fileapi | 85 } // namespace fileapi |
| 85 | 86 |
| 86 #endif // WEBKIT_FILEAPI_FILE_WRITER_DELEGATE_H_ | 87 #endif // WEBKIT_FILEAPI_FILE_WRITER_DELEGATE_H_ |
| OLD | NEW |