| 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/child/npapi/webplugin_delegate_impl.h" | 5 #include "content/child/npapi/webplugin_delegate_impl.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 if (resource_client) | 298 if (resource_client) |
| 299 resource_client->AddRangeRequestResourceId(resource_id); | 299 resource_client->AddRangeRequestResourceId(resource_id); |
| 300 return resource_client; | 300 return resource_client; |
| 301 } | 301 } |
| 302 | 302 |
| 303 void WebPluginDelegateImpl::FetchURL(unsigned long resource_id, | 303 void WebPluginDelegateImpl::FetchURL(unsigned long resource_id, |
| 304 int notify_id, | 304 int notify_id, |
| 305 const GURL& url, | 305 const GURL& url, |
| 306 const GURL& first_party_for_cookies, | 306 const GURL& first_party_for_cookies, |
| 307 const std::string& method, | 307 const std::string& method, |
| 308 const std::string& post_data, | 308 const char* buf, |
| 309 unsigned int len, |
| 309 const GURL& referrer, | 310 const GURL& referrer, |
| 310 bool notify_redirects, | 311 bool notify_redirects, |
| 311 bool is_plugin_src_load, | 312 bool is_plugin_src_load, |
| 312 int origin_pid, | 313 int origin_pid, |
| 313 int render_view_id) { | 314 int render_view_id) { |
| 314 // TODO(jam): once we switch over to resource loading always happening in this | 315 // TODO(jam): once we switch over to resource loading always happening in this |
| 315 // code path, remove WebPluginResourceClient abstraction. | 316 // code path, remove WebPluginResourceClient abstraction. |
| 316 PluginStreamUrl* plugin_stream = instance()->CreateStream( | 317 PluginStreamUrl* plugin_stream = instance()->CreateStream( |
| 317 resource_id, url, std::string(), notify_id); | 318 resource_id, url, std::string(), notify_id); |
| 318 | 319 |
| 319 plugin_stream->SetPluginURLFetcher(new PluginURLFetcher( | 320 plugin_stream->SetPluginURLFetcher(new PluginURLFetcher( |
| 320 plugin_stream, url, first_party_for_cookies, method, post_data, | 321 plugin_stream, url, first_party_for_cookies, method, buf, len, |
| 321 referrer, notify_redirects, is_plugin_src_load, origin_pid, | 322 referrer, notify_redirects, is_plugin_src_load, origin_pid, |
| 322 render_view_id, resource_id)); | 323 render_view_id, resource_id)); |
| 323 } | 324 } |
| 324 | 325 |
| 325 } // namespace content | 326 } // namespace content |
| OLD | NEW |