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

Side by Side Diff: content/child/npapi/webplugin_delegate_impl.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/npapi/webplugin_delegate_impl.h ('k') | content/child/plugin_messages.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/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
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
OLDNEW
« no previous file with comments | « content/child/npapi/webplugin_delegate_impl.h ('k') | content/child/plugin_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698