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

Side by Side Diff: content/browser/loader/upload_data_stream_builder.h

Issue 23223003: Chromium Blob hacking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 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 TaskRunner;
13 } 13 }
14 14
15 namespace fileapi { 15 namespace fileapi {
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
23 namespace webkit_blob { 23 namespace webkit_blob {
24 class BlobStorageController; 24 class BlobStorageContext;
25 } 25 }
26 26
27 namespace webkit_glue { 27 namespace webkit_glue {
28 class ResourceRequestBody; 28 class ResourceRequestBody;
29 } 29 }
30 30
31 namespace content { 31 namespace content {
32 32
33 class CONTENT_EXPORT UploadDataStreamBuilder { 33 class CONTENT_EXPORT UploadDataStreamBuilder {
34 public: 34 public:
35 // Creates a new UploadDataStream from this request body. 35 // Creates a new UploadDataStream from this request body.
36 // 36 //
37 // This also resolves any blob references using the given |blob_controller| 37 // This also resolves any blob references using the given |blob_context|
38 // and binds those blob references to the ResourceRequestBody ensuring that 38 // and binds those blob references to the ResourceRequestBody ensuring that
39 // the blob data remains valid for the lifetime of the ResourceRequestBody 39 // the blob data remains valid for the lifetime of the ResourceRequestBody
40 // object. 40 // object.
41 // 41 //
42 // |file_system_context| is used to create a FileStreamReader for files with 42 // |file_system_context| is used to create a FileStreamReader for files with
43 // filesystem URLs. |file_task_runner| is used to perform file operations 43 // filesystem URLs. |file_task_runner| is used to perform file operations
44 // when the data gets uploaded. 44 // when the data gets uploaded.
45 static scoped_ptr<net::UploadDataStream> Build( 45 static scoped_ptr<net::UploadDataStream> Build(
46 webkit_glue::ResourceRequestBody* body, 46 webkit_glue::ResourceRequestBody* body,
47 webkit_blob::BlobStorageController* blob_controller, 47 webkit_blob::BlobStorageContext* blob_context,
48 fileapi::FileSystemContext* file_system_context, 48 fileapi::FileSystemContext* file_system_context,
49 base::TaskRunner* file_task_runner); 49 base::TaskRunner* file_task_runner);
50 }; 50 };
51 51
52 } // namespace content 52 } // namespace content
53 53
54 #endif // CONTENT_BROWSER_LOADER_UPLOAD_DATA_STREAM_BUILDER_H_ 54 #endif // CONTENT_BROWSER_LOADER_UPLOAD_DATA_STREAM_BUILDER_H_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_request_info_impl.cc ('k') | content/browser/loader/upload_data_stream_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698