Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(633)

Side by Side Diff: content/child/npapi/webplugin_delegate_impl.cc

Issue 132233022: Fix chrome.webRequest.onBeforeRequest for requests coming from NPAPI plugin processes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/child/npapi/webplugin_delegate_impl.h ('k') | content/plugin/webplugin_delegate_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698