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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 16831010: Move some classes out of webkit/glue/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move UploadDataStreamBuilder to content/browser Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/loader/resource_dispatcher_host_impl.cc
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
index e159147d5a78cbec55780cc712cee6963bc9625e..cc5db10898192d9aeda33dd9d3d0c7e559f8762b 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -41,6 +41,7 @@
#include "content/browser/loader/sync_resource_handler.h"
#include "content/browser/loader/throttling_resource_handler.h"
#include "content/browser/loader/transfer_navigation_resource_throttle.h"
+#include "content/browser/loader/upload_data_stream_builder.h"
#include "content/browser/plugin_service_impl.h"
#include "content/browser/renderer_host/render_view_host_delegate.h"
#include "content/browser/renderer_host/render_view_host_impl.h"
@@ -88,7 +89,7 @@
#include "webkit/browser/blob/blob_storage_controller.h"
#include "webkit/common/appcache/appcache_interfaces.h"
#include "webkit/common/blob/shareable_file_reference.h"
-#include "webkit/glue/resource_request_body.h"
+#include "webkit/common/resource_request_body.h"
using base::Time;
using base::TimeDelta;
@@ -1024,12 +1025,12 @@ void ResourceDispatcherHostImpl::BeginRequest(
// Resolve elements from request_body and prepare upload data.
if (request_data.request_body.get()) {
- request->set_upload(make_scoped_ptr(
- request_data.request_body->ResolveElementsAndCreateUploadDataStream(
- filter_->blob_storage_context()->controller(),
- filter_->file_system_context(),
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)
- .get())));
+ request->set_upload(UploadDataStreamBuilder::Build(
+ request_data.request_body,
+ filter_->blob_storage_context()->controller(),
+ filter_->file_system_context(),
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE).
+ get()));
}
bool allow_download = request_data.allow_download &&
« no previous file with comments | « content/browser/loader/async_resource_handler.cc ('k') | content/browser/loader/upload_data_stream_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698