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/plugin/webplugin_delegate_stub.h" | 5 #include "content/plugin/webplugin_delegate_stub.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 | 418 |
419 void WebPluginDelegateStub::OnHTTPRangeRequestReply( | 419 void WebPluginDelegateStub::OnHTTPRangeRequestReply( |
420 unsigned long resource_id, int range_request_id) { | 420 unsigned long resource_id, int range_request_id) { |
421 WebPluginResourceClient* resource_client = | 421 WebPluginResourceClient* resource_client = |
422 delegate_->CreateSeekableResourceClient(resource_id, range_request_id); | 422 delegate_->CreateSeekableResourceClient(resource_id, range_request_id); |
423 webplugin_->OnResourceCreated(resource_id, resource_client); | 423 webplugin_->OnResourceCreated(resource_id, resource_client); |
424 } | 424 } |
425 | 425 |
426 void WebPluginDelegateStub::OnFetchURL( | 426 void WebPluginDelegateStub::OnFetchURL( |
427 const PluginMsg_FetchURL_Params& params) { | 427 const PluginMsg_FetchURL_Params& params) { |
| 428 const char* data = NULL; |
| 429 if (params.post_data.size()) |
| 430 data = ¶ms.post_data[0]; |
| 431 |
428 delegate_->FetchURL(params.resource_id, | 432 delegate_->FetchURL(params.resource_id, |
429 params.notify_id, | 433 params.notify_id, |
430 params.url, | 434 params.url, |
431 params.first_party_for_cookies, | 435 params.first_party_for_cookies, |
432 params.method, | 436 params.method, |
433 params.post_data, | 437 data, |
| 438 params.post_data.size(), |
434 params.referrer, | 439 params.referrer, |
435 params.notify_redirect, | 440 params.notify_redirect, |
436 params.is_plugin_src_load, | 441 params.is_plugin_src_load, |
437 channel_->renderer_id(), | 442 channel_->renderer_id(), |
438 params.render_view_id); | 443 params.render_view_id); |
439 } | 444 } |
440 | 445 |
441 } // namespace content | 446 } // namespace content |
OLD | NEW |