| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/child/npapi/plugin_url_fetcher.h" | 5 #include "content/child/npapi/plugin_url_fetcher.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "content/child/child_thread.h" | 8 #include "content/child/child_thread.h" |
| 9 #include "content/child/npapi/webplugin.h" | 9 #include "content/child/npapi/webplugin.h" |
| 10 #include "content/child/npapi/plugin_host.h" | 10 #include "content/child/npapi/plugin_host.h" |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 render_frame_id, | 112 render_frame_id, |
| 113 false, | 113 false, |
| 114 -1, | 114 -1, |
| 115 GURL(), | 115 GURL(), |
| 116 false, | 116 false, |
| 117 -1, | 117 -1, |
| 118 true, | 118 true, |
| 119 PAGE_TRANSITION_LINK, | 119 PAGE_TRANSITION_LINK, |
| 120 false, | 120 false, |
| 121 -1, | 121 -1, |
| 122 -1, |
| 122 -1); | 123 -1); |
| 123 | 124 |
| 124 request_info.extra_data = &extra_data; | 125 request_info.extra_data = &extra_data; |
| 125 | 126 |
| 126 std::vector<char> body; | 127 std::vector<char> body; |
| 127 if (method == "POST") { | 128 if (method == "POST") { |
| 128 bool content_type_found = false; | 129 bool content_type_found = false; |
| 129 std::vector<std::string> names; | 130 std::vector<std::string> names; |
| 130 std::vector<std::string> values; | 131 std::vector<std::string> values; |
| 131 PluginHost::SetPostData(buf, len, &names, &values, &body); | 132 PluginHost::SetPostData(buf, len, &names, &values, &body); |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 } | 352 } |
| 352 | 353 |
| 353 if (error_code == net::OK) { | 354 if (error_code == net::OK) { |
| 354 plugin_stream_->DidFinishLoading(resource_id_); | 355 plugin_stream_->DidFinishLoading(resource_id_); |
| 355 } else { | 356 } else { |
| 356 plugin_stream_->DidFail(resource_id_); | 357 plugin_stream_->DidFail(resource_id_); |
| 357 } | 358 } |
| 358 } | 359 } |
| 359 | 360 |
| 360 } // namespace content | 361 } // namespace content |
| OLD | NEW |