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

Side by Side Diff: content/child/npapi/plugin_url_fetcher.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/plugin_url_fetcher.h ('k') | content/child/npapi/webplugin_delegate.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/plugin_url_fetcher.h" 5 #include "content/child/npapi/plugin_url_fetcher.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "content/child/child_thread.h" 8 #include "content/child/child_thread.h"
9 #include "content/child/multipart_response_delegate.h" 9 #include "content/child/multipart_response_delegate.h"
10 #include "content/child/npapi/plugin_host.h" 10 #include "content/child/npapi/plugin_host.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 }; 76 };
77 77
78 } // namespace 78 } // namespace
79 79
80 PluginURLFetcher::PluginURLFetcher(PluginStreamUrl* plugin_stream, 80 PluginURLFetcher::PluginURLFetcher(PluginStreamUrl* plugin_stream,
81 const GURL& url, 81 const GURL& url,
82 const GURL& first_party_for_cookies, 82 const GURL& first_party_for_cookies,
83 const std::string& method, 83 const std::string& method,
84 const char* buf, 84 const char* buf,
85 unsigned int len, 85 unsigned int len,
86 const GURL& referrer, 86 const Referrer& referrer,
87 const std::string& range, 87 const std::string& range,
88 bool notify_redirects, 88 bool notify_redirects,
89 bool is_plugin_src_load, 89 bool is_plugin_src_load,
90 int origin_pid, 90 int origin_pid,
91 int render_frame_id, 91 int render_frame_id,
92 int render_view_id, 92 int render_view_id,
93 unsigned long resource_id, 93 unsigned long resource_id,
94 bool copy_stream_data) 94 bool copy_stream_data)
95 : plugin_stream_(plugin_stream), 95 : plugin_stream_(plugin_stream),
96 url_(url), 96 url_(url),
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 } 368 }
369 369
370 if (error_code == net::OK) { 370 if (error_code == net::OK) {
371 plugin_stream_->DidFinishLoading(resource_id_); 371 plugin_stream_->DidFinishLoading(resource_id_);
372 } else { 372 } else {
373 plugin_stream_->DidFail(resource_id_); 373 plugin_stream_->DidFail(resource_id_);
374 } 374 }
375 } 375 }
376 376
377 } // namespace content 377 } // namespace content
OLDNEW
« no previous file with comments | « content/child/npapi/plugin_url_fetcher.h ('k') | content/child/npapi/webplugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698