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/npapi/webplugin.h" | 9 #include "content/child/npapi/webplugin.h" |
10 #include "content/child/npapi/plugin_host.h" | 10 #include "content/child/npapi/plugin_host.h" |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 webkit_glue::ResourceLoaderBridge::RequestInfo request_info; | 99 webkit_glue::ResourceLoaderBridge::RequestInfo request_info; |
100 request_info.method = method; | 100 request_info.method = method; |
101 request_info.url = url; | 101 request_info.url = url; |
102 request_info.first_party_for_cookies = first_party_for_cookies; | 102 request_info.first_party_for_cookies = first_party_for_cookies; |
103 request_info.referrer = referrer; | 103 request_info.referrer = referrer; |
104 request_info.load_flags = net::LOAD_NORMAL; | 104 request_info.load_flags = net::LOAD_NORMAL; |
105 request_info.requestor_pid = origin_pid; | 105 request_info.requestor_pid = origin_pid; |
106 request_info.request_type = ResourceType::OBJECT; | 106 request_info.request_type = ResourceType::OBJECT; |
107 request_info.routing_id = render_view_id; | 107 request_info.routing_id = render_view_id; |
108 | 108 |
109 RequestExtraData extra_data(blink::WebReferrerPolicyDefault, | 109 RequestExtraData extra_data(blink::WebPageVisibilityStateVisible, |
110 blink::WebPageVisibilityStateVisible, | |
111 base::string16(), | 110 base::string16(), |
112 false, | 111 false, |
113 render_frame_id, | 112 render_frame_id, |
114 false, | 113 false, |
115 -1, | 114 -1, |
116 GURL(), | 115 GURL(), |
117 false, | 116 false, |
118 -1, | 117 -1, |
119 true, | 118 true, |
120 PAGE_TRANSITION_LINK, | 119 PAGE_TRANSITION_LINK, |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 } | 349 } |
351 | 350 |
352 if (error_code == net::OK) { | 351 if (error_code == net::OK) { |
353 plugin_stream_->DidFinishLoading(resource_id_); | 352 plugin_stream_->DidFinishLoading(resource_id_); |
354 } else { | 353 } else { |
355 plugin_stream_->DidFail(resource_id_); | 354 plugin_stream_->DidFail(resource_id_); |
356 } | 355 } |
357 } | 356 } |
358 | 357 |
359 } // namespace content | 358 } // namespace content |
OLD | NEW |