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_FILEAPI_FILE_WRITER_DELEGATE_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_WRITER_DELEGATE_H_ |
6 #define WEBKIT_FILEAPI_FILE_WRITER_DELEGATE_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_FILE_WRITER_DELEGATE_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/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" |
11 #include "base/platform_file.h" | 11 #include "base/platform_file.h" |
12 #include "base/time.h" | 12 #include "base/time.h" |
13 #include "net/base/file_stream.h" | 13 #include "net/base/file_stream.h" |
14 #include "net/base/io_buffer.h" | 14 #include "net/base/io_buffer.h" |
15 #include "net/url_request/url_request.h" | 15 #include "net/url_request/url_request.h" |
16 #include "webkit/fileapi/file_system_operation.h" | 16 #include "webkit/browser/fileapi/file_system_operation.h" |
17 #include "webkit/storage/webkit_storage_export.h" | 17 #include "webkit/storage/webkit_storage_export.h" |
18 | 18 |
19 namespace fileapi { | 19 namespace fileapi { |
20 | 20 |
21 class FileStreamWriter; | 21 class FileStreamWriter; |
22 class FileSystemOperationContext; | 22 class FileSystemOperationContext; |
23 class FileSystemQuotaUtil; | 23 class FileSystemQuotaUtil; |
24 | 24 |
25 class WEBKIT_STORAGE_EXPORT_PRIVATE FileWriterDelegate | 25 class WEBKIT_STORAGE_EXPORT_PRIVATE FileWriterDelegate |
26 : public net::URLRequest::Delegate { | 26 : public net::URLRequest::Delegate { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 int bytes_written_; | 96 int bytes_written_; |
97 int bytes_read_; | 97 int bytes_read_; |
98 scoped_refptr<net::IOBufferWithSize> io_buffer_; | 98 scoped_refptr<net::IOBufferWithSize> io_buffer_; |
99 scoped_refptr<net::DrainableIOBuffer> cursor_; | 99 scoped_refptr<net::DrainableIOBuffer> cursor_; |
100 scoped_ptr<net::URLRequest> request_; | 100 scoped_ptr<net::URLRequest> request_; |
101 base::WeakPtrFactory<FileWriterDelegate> weak_factory_; | 101 base::WeakPtrFactory<FileWriterDelegate> weak_factory_; |
102 }; | 102 }; |
103 | 103 |
104 } // namespace fileapi | 104 } // namespace fileapi |
105 | 105 |
106 #endif // WEBKIT_FILEAPI_FILE_WRITER_DELEGATE_H_ | 106 #endif // WEBKIT_BROWSER_FILEAPI_FILE_WRITER_DELEGATE_H_ |
OLD | NEW |