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

Side by Side Diff: content/plugin/webplugin_delegate_stub.cc

Issue 736743003: Use content::Referrer to pass around referrers in the plugin code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 6 years, 1 month 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
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | content/renderer/npapi/webplugin_delegate_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/plugin/webplugin_delegate_stub.h" 5 #include "content/plugin/webplugin_delegate_stub.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 if (params.post_data.size()) 431 if (params.post_data.size())
432 data = &params.post_data[0]; 432 data = &params.post_data[0];
433 433
434 delegate_->FetchURL(params.resource_id, 434 delegate_->FetchURL(params.resource_id,
435 params.notify_id, 435 params.notify_id,
436 params.url, 436 params.url,
437 params.first_party_for_cookies, 437 params.first_party_for_cookies,
438 params.method, 438 params.method,
439 data, 439 data,
440 static_cast<unsigned int>(params.post_data.size()), 440 static_cast<unsigned int>(params.post_data.size()),
441 params.referrer, 441 Referrer(params.referrer, params.referrer_policy),
442 params.notify_redirect, 442 params.notify_redirect,
443 params.is_plugin_src_load, 443 params.is_plugin_src_load,
444 channel_->renderer_id(), 444 channel_->renderer_id(),
445 params.render_frame_id, 445 params.render_frame_id,
446 webplugin_->host_render_view_routing_id()); 446 webplugin_->host_render_view_routing_id());
447 } 447 }
448 448
449 } // namespace content 449 } // namespace content
OLDNEW
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | content/renderer/npapi/webplugin_delegate_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698