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

Unified Diff: content/child/npapi/plugin_url_fetcher.cc

Issue 384273003: Move multipart_response_delegate.* from webkit/ to content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android_webview fix Created 6 years, 5 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
« no previous file with comments | « content/child/npapi/plugin_url_fetcher.h ('k') | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/npapi/plugin_url_fetcher.cc
diff --git a/content/child/npapi/plugin_url_fetcher.cc b/content/child/npapi/plugin_url_fetcher.cc
index 421c394b3bbc1b49024d87199e00369a97307da4..39825fdcfff6b10a5d80433f0d13ffc14483c48b 100644
--- a/content/child/npapi/plugin_url_fetcher.cc
+++ b/content/child/npapi/plugin_url_fetcher.cc
@@ -6,6 +6,7 @@
#include "base/memory/scoped_ptr.h"
#include "content/child/child_thread.h"
+#include "content/child/multipart_response_delegate.h"
#include "content/child/npapi/plugin_host.h"
#include "content/child/npapi/plugin_instance.h"
#include "content/child/npapi/plugin_stream_url.h"
@@ -25,7 +26,6 @@
#include "net/url_request/url_request.h"
#include "third_party/WebKit/public/platform/WebURLLoaderClient.h"
#include "third_party/WebKit/public/platform/WebURLResponse.h"
-#include "webkit/child/multipart_response_delegate.h"
#include "webkit/child/resource_loader_bridge.h"
namespace content {
@@ -48,9 +48,10 @@ class MultiPartResponseClient : public blink::WebURLLoaderClient {
blink::WebURLLoader* loader,
const blink::WebURLResponse& response) OVERRIDE {
int64 byte_range_upper_bound, instance_size;
- if (!webkit_glue::MultipartResponseDelegate::ReadContentRanges(
- response, &byte_range_lower_bound_, &byte_range_upper_bound,
- &instance_size)) {
+ if (!MultipartResponseDelegate::ReadContentRanges(response,
+ &byte_range_lower_bound_,
+ &byte_range_upper_bound,
+ &instance_size)) {
NOTREACHED();
}
}
@@ -264,14 +265,14 @@ void PluginURLFetcher::OnReceivedResponse(const ResourceResponseInfo& info) {
WebURLLoaderImpl::PopulateURLResponse(url_, info, &response);
std::string multipart_boundary;
- if (webkit_glue::MultipartResponseDelegate::ReadMultipartBoundary(
+ if (MultipartResponseDelegate::ReadMultipartBoundary(
response, &multipart_boundary)) {
plugin_stream_->instance()->webplugin()->DidStartLoading();
MultiPartResponseClient* multi_part_response_client =
new MultiPartResponseClient(plugin_stream_);
- multipart_delegate_.reset(new webkit_glue::MultipartResponseDelegate(
+ multipart_delegate_.reset(new MultipartResponseDelegate(
multi_part_response_client, NULL, response, multipart_boundary));
// Multiple ranges requested, data will be delivered by
@@ -283,7 +284,7 @@ void PluginURLFetcher::OnReceivedResponse(const ResourceResponseInfo& info) {
int64 upper_bound = 0, instance_size = 0;
// Single range requested - go through original processing for
// non-multipart requests, but update data offset.
- webkit_glue::MultipartResponseDelegate::ReadContentRanges(
+ MultipartResponseDelegate::ReadContentRanges(
response, &data_offset_, &upper_bound, &instance_size);
} else if (response_code == 200) {
// TODO: should we handle this case? We used to but it's not clear that we
« no previous file with comments | « content/child/npapi/plugin_url_fetcher.h ('k') | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698