OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "content/renderer/pepper/pepper_webplugin_impl.h" | 5 #include "content/renderer/pepper/pepper_webplugin_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 | 224 |
225 void PepperWebPluginImpl::didReceiveResponse( | 225 void PepperWebPluginImpl::didReceiveResponse( |
226 const blink::WebURLResponse& response) { | 226 const blink::WebURLResponse& response) { |
227 DCHECK(!instance_->document_loader()); | 227 DCHECK(!instance_->document_loader()); |
228 instance_->HandleDocumentLoad(response); | 228 instance_->HandleDocumentLoad(response); |
229 } | 229 } |
230 | 230 |
231 void PepperWebPluginImpl::didReceiveData(const char* data, int data_length) { | 231 void PepperWebPluginImpl::didReceiveData(const char* data, int data_length) { |
232 blink::WebURLLoaderClient* document_loader = instance_->document_loader(); | 232 blink::WebURLLoaderClient* document_loader = instance_->document_loader(); |
233 if (document_loader) | 233 if (document_loader) |
234 document_loader->didReceiveData(nullptr, data, data_length, 0); | 234 document_loader->didReceiveData(nullptr, data, data_length, 0, data_length); |
235 } | 235 } |
236 | 236 |
237 void PepperWebPluginImpl::didFinishLoading() { | 237 void PepperWebPluginImpl::didFinishLoading() { |
238 blink::WebURLLoaderClient* document_loader = instance_->document_loader(); | 238 blink::WebURLLoaderClient* document_loader = instance_->document_loader(); |
239 if (document_loader) | 239 if (document_loader) |
240 document_loader->didFinishLoading( | 240 document_loader->didFinishLoading( |
241 nullptr, 0.0, blink::WebURLLoaderClient::kUnknownEncodedDataLength); | 241 nullptr, 0.0, blink::WebURLLoaderClient::kUnknownEncodedDataLength); |
242 } | 242 } |
243 | 243 |
244 void PepperWebPluginImpl::didFailLoading(const blink::WebURLError& error) { | 244 void PepperWebPluginImpl::didFailLoading(const blink::WebURLError& error) { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 | 300 |
301 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } | 301 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } |
302 | 302 |
303 void PepperWebPluginImpl::rotateView(RotationType type) { | 303 void PepperWebPluginImpl::rotateView(RotationType type) { |
304 instance_->RotateView(type); | 304 instance_->RotateView(type); |
305 } | 305 } |
306 | 306 |
307 bool PepperWebPluginImpl::isPlaceholder() { return false; } | 307 bool PepperWebPluginImpl::isPlaceholder() { return false; } |
308 | 308 |
309 } // namespace content | 309 } // namespace content |
OLD | NEW |