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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 return resource_client; | 304 return resource_client; |
305 } | 305 } |
306 | 306 |
307 void WebPluginDelegateImpl::FetchURL(unsigned long resource_id, | 307 void WebPluginDelegateImpl::FetchURL(unsigned long resource_id, |
308 int notify_id, | 308 int notify_id, |
309 const GURL& url, | 309 const GURL& url, |
310 const GURL& first_party_for_cookies, | 310 const GURL& first_party_for_cookies, |
311 const std::string& method, | 311 const std::string& method, |
312 const char* buf, | 312 const char* buf, |
313 unsigned int len, | 313 unsigned int len, |
314 const GURL& referrer, | 314 const Referrer& referrer, |
315 bool notify_redirects, | 315 bool notify_redirects, |
316 bool is_plugin_src_load, | 316 bool is_plugin_src_load, |
317 int origin_pid, | 317 int origin_pid, |
318 int render_frame_id, | 318 int render_frame_id, |
319 int render_view_id) { | 319 int render_view_id) { |
320 // TODO(jam): once we switch over to resource loading always happening in this | 320 // TODO(jam): once we switch over to resource loading always happening in this |
321 // code path, remove WebPluginResourceClient abstraction. | 321 // code path, remove WebPluginResourceClient abstraction. |
322 PluginStreamUrl* plugin_stream = instance()->CreateStream( | 322 PluginStreamUrl* plugin_stream = instance()->CreateStream( |
323 resource_id, url, std::string(), notify_id); | 323 resource_id, url, std::string(), notify_id); |
324 | 324 |
325 bool copy_stream_data = !!(quirks_ & PLUGIN_QUIRK_COPY_STREAM_DATA); | 325 bool copy_stream_data = !!(quirks_ & PLUGIN_QUIRK_COPY_STREAM_DATA); |
326 plugin_stream->SetPluginURLFetcher(new PluginURLFetcher( | 326 plugin_stream->SetPluginURLFetcher(new PluginURLFetcher( |
327 plugin_stream, url, first_party_for_cookies, method, buf, len, | 327 plugin_stream, url, first_party_for_cookies, method, buf, len, |
328 referrer, std::string(), notify_redirects, is_plugin_src_load, origin_pid, | 328 referrer, std::string(), notify_redirects, is_plugin_src_load, origin_pid, |
329 render_frame_id, render_view_id, resource_id, copy_stream_data)); | 329 render_frame_id, render_view_id, resource_id, copy_stream_data)); |
330 } | 330 } |
331 | 331 |
332 } // namespace content | 332 } // namespace content |
OLD | NEW |