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

Unified Diff: content/renderer/pepper/pepper_webplugin_impl.cc

Issue 2399463007: AssociatedURLLoader shouldn't derive from WebURLLoader (Closed)
Patch Set: Rebase Created 4 years, 2 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/renderer/pepper/pepper_url_loader_host.cc ('k') | content/renderer/resource_fetcher_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_webplugin_impl.cc
diff --git a/content/renderer/pepper/pepper_webplugin_impl.cc b/content/renderer/pepper/pepper_webplugin_impl.cc
index b8b2402464fb2bdfcf7a0b455b662eed8ec99672..54d2247c67df657fc37275e1a86e910e62f07de8 100644
--- a/content/renderer/pepper/pepper_webplugin_impl.cc
+++ b/content/renderer/pepper/pepper_webplugin_impl.cc
@@ -24,7 +24,7 @@
#include "third_party/WebKit/public/platform/WebPoint.h"
#include "third_party/WebKit/public/platform/WebRect.h"
#include "third_party/WebKit/public/platform/WebSize.h"
-#include "third_party/WebKit/public/platform/WebURLLoaderClient.h"
+#include "third_party/WebKit/public/web/WebAssociatedURLLoaderClient.h"
#include "third_party/WebKit/public/web/WebDocument.h"
#include "third_party/WebKit/public/web/WebElement.h"
#include "third_party/WebKit/public/web/WebFrame.h"
@@ -222,22 +222,24 @@ void PepperWebPluginImpl::didReceiveResponse(
}
void PepperWebPluginImpl::didReceiveData(const char* data, int data_length) {
- blink::WebURLLoaderClient* document_loader = instance_->document_loader();
+ blink::WebAssociatedURLLoaderClient* document_loader =
+ instance_->document_loader();
if (document_loader)
- document_loader->didReceiveData(nullptr, data, data_length, 0, data_length);
+ document_loader->didReceiveData(data, data_length);
}
void PepperWebPluginImpl::didFinishLoading() {
- blink::WebURLLoaderClient* document_loader = instance_->document_loader();
+ blink::WebAssociatedURLLoaderClient* document_loader =
+ instance_->document_loader();
if (document_loader)
- document_loader->didFinishLoading(
- nullptr, 0.0, blink::WebURLLoaderClient::kUnknownEncodedDataLength);
+ document_loader->didFinishLoading(0.0);
}
void PepperWebPluginImpl::didFailLoading(const blink::WebURLError& error) {
- blink::WebURLLoaderClient* document_loader = instance_->document_loader();
+ blink::WebAssociatedURLLoaderClient* document_loader =
+ instance_->document_loader();
if (document_loader)
- document_loader->didFail(nullptr, error);
+ document_loader->didFail(error);
}
bool PepperWebPluginImpl::hasSelection() const {
« no previous file with comments | « content/renderer/pepper/pepper_url_loader_host.cc ('k') | content/renderer/resource_fetcher_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698