| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_BROWSER_LOADER_UPLOAD_DATA_STREAM_BUILDER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_UPLOAD_DATA_STREAM_BUILDER_H_ |
| 6 #define CONTENT_BROWSER_LOADER_UPLOAD_DATA_STREAM_BUILDER_H_ | 6 #define CONTENT_BROWSER_LOADER_UPLOAD_DATA_STREAM_BUILDER_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 | 10 |
| 11 namespace base { | 11 namespace base { |
| 12 class TaskRunner; | 12 class SingleThreadTaskRunner; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace storage { | 15 namespace storage { |
| 16 class FileSystemContext; | 16 class FileSystemContext; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace net { | 19 namespace net { |
| 20 class UploadDataStream; | 20 class UploadDataStream; |
| 21 } | 21 } |
| 22 | 22 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 37 // by binding the BlobDataHandles of them to ResourceRequestBody in | 37 // by binding the BlobDataHandles of them to ResourceRequestBody in |
| 38 // ResourceDispatcherHostImpl::BeginRequest(). | 38 // ResourceDispatcherHostImpl::BeginRequest(). |
| 39 // | 39 // |
| 40 // |file_system_context| is used to create a FileStreamReader for files with | 40 // |file_system_context| is used to create a FileStreamReader for files with |
| 41 // filesystem URLs. |file_task_runner| is used to perform file operations | 41 // filesystem URLs. |file_task_runner| is used to perform file operations |
| 42 // when the data gets uploaded. | 42 // when the data gets uploaded. |
| 43 static scoped_ptr<net::UploadDataStream> Build( | 43 static scoped_ptr<net::UploadDataStream> Build( |
| 44 ResourceRequestBody* body, | 44 ResourceRequestBody* body, |
| 45 storage::BlobStorageContext* blob_context, | 45 storage::BlobStorageContext* blob_context, |
| 46 storage::FileSystemContext* file_system_context, | 46 storage::FileSystemContext* file_system_context, |
| 47 base::TaskRunner* file_task_runner); | 47 base::SingleThreadTaskRunner* file_task_runner); |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 } // namespace content | 50 } // namespace content |
| 51 | 51 |
| 52 #endif // CONTENT_BROWSER_LOADER_UPLOAD_DATA_STREAM_BUILDER_H_ | 52 #endif // CONTENT_BROWSER_LOADER_UPLOAD_DATA_STREAM_BUILDER_H_ |
| OLD | NEW |