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