| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |