Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(597)

Side by Side Diff: webkit/fileapi/file_writer_delegate.h

Issue 9402014: net: FileStream::Read/Write() to take IOBuffer* instead of char* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698