| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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::WebPageVisibilityStateVisible, | 109   RequestExtraData extra_data(blink::WebPageVisibilityStateVisible, | 
| 110                               base::string16(), | 110                               base::string16(), | 
| 111                               false, | 111                               false, | 
| 112                               render_frame_id, | 112                               render_frame_id, | 
| 113                               false, | 113                               false, | 
| 114                               -1, |  | 
| 115                               GURL(), | 114                               GURL(), | 
| 116                               false, | 115                               false, | 
| 117                               -1, | 116                               -1, | 
| 118                               true, | 117                               true, | 
| 119                               PAGE_TRANSITION_LINK, | 118                               PAGE_TRANSITION_LINK, | 
| 120                               false, | 119                               false, | 
| 121                               -1, | 120                               -1, | 
| 122                               -1); | 121                               -1); | 
| 123 | 122 | 
| 124   request_info.extra_data = &extra_data; | 123   request_info.extra_data = &extra_data; | 
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 351   } | 350   } | 
| 352 | 351 | 
| 353   if (error_code == net::OK) { | 352   if (error_code == net::OK) { | 
| 354     plugin_stream_->DidFinishLoading(resource_id_); | 353     plugin_stream_->DidFinishLoading(resource_id_); | 
| 355   } else { | 354   } else { | 
| 356     plugin_stream_->DidFail(resource_id_); | 355     plugin_stream_->DidFail(resource_id_); | 
| 357   } | 356   } | 
| 358 } | 357 } | 
| 359 | 358 | 
| 360 }  // namespace content | 359 }  // namespace content | 
| OLD | NEW | 
|---|