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/renderer/pepper/pepper_url_loader_host.h" | 5 #include "content/renderer/pepper/pepper_url_loader_host.h" |
6 | 6 |
| 7 #include "content/renderer/pepper/ppapi_plugin_instance_impl.h" |
7 #include "content/renderer/pepper/renderer_ppapi_host_impl.h" | 8 #include "content/renderer/pepper/renderer_ppapi_host_impl.h" |
| 9 #include "content/renderer/pepper/url_request_info_util.h" |
8 #include "content/renderer/pepper/url_response_info_util.h" | 10 #include "content/renderer/pepper/url_response_info_util.h" |
9 #include "net/base/net_errors.h" | 11 #include "net/base/net_errors.h" |
10 #include "ppapi/c/pp_errors.h" | 12 #include "ppapi/c/pp_errors.h" |
11 #include "ppapi/host/dispatch_host_message.h" | 13 #include "ppapi/host/dispatch_host_message.h" |
12 #include "ppapi/host/host_message_context.h" | 14 #include "ppapi/host/host_message_context.h" |
13 #include "ppapi/host/ppapi_host.h" | 15 #include "ppapi/host/ppapi_host.h" |
14 #include "ppapi/proxy/ppapi_messages.h" | 16 #include "ppapi/proxy/ppapi_messages.h" |
15 #include "ppapi/shared_impl/ppapi_globals.h" | 17 #include "ppapi/shared_impl/ppapi_globals.h" |
16 #include "third_party/WebKit/public/platform/WebURLError.h" | 18 #include "third_party/WebKit/public/platform/WebURLError.h" |
17 #include "third_party/WebKit/public/platform/WebURLLoader.h" | 19 #include "third_party/WebKit/public/platform/WebURLLoader.h" |
18 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 20 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
19 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 21 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
20 #include "third_party/WebKit/public/web/WebDocument.h" | 22 #include "third_party/WebKit/public/web/WebDocument.h" |
21 #include "third_party/WebKit/public/web/WebElement.h" | 23 #include "third_party/WebKit/public/web/WebElement.h" |
22 #include "third_party/WebKit/public/web/WebFrame.h" | 24 #include "third_party/WebKit/public/web/WebFrame.h" |
23 #include "third_party/WebKit/public/web/WebKit.h" | 25 #include "third_party/WebKit/public/web/WebKit.h" |
24 #include "third_party/WebKit/public/web/WebPluginContainer.h" | 26 #include "third_party/WebKit/public/web/WebPluginContainer.h" |
25 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" | 27 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" |
26 #include "third_party/WebKit/public/web/WebURLLoaderOptions.h" | 28 #include "third_party/WebKit/public/web/WebURLLoaderOptions.h" |
27 #include "webkit/plugins/ppapi/ppapi_plugin_instance_impl.h" | |
28 #include "webkit/plugins/ppapi/url_request_info_util.h" | |
29 | 29 |
30 using WebKit::WebFrame; | 30 using WebKit::WebFrame; |
31 using WebKit::WebString; | 31 using WebKit::WebString; |
32 using WebKit::WebURL; | 32 using WebKit::WebURL; |
33 using WebKit::WebURLError; | 33 using WebKit::WebURLError; |
34 using WebKit::WebURLLoader; | 34 using WebKit::WebURLLoader; |
35 using WebKit::WebURLLoaderOptions; | 35 using WebKit::WebURLLoaderOptions; |
36 using WebKit::WebURLRequest; | 36 using WebKit::WebURLRequest; |
37 using WebKit::WebURLResponse; | 37 using WebKit::WebURLResponse; |
38 | 38 |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 ppapi::proxy::ResourceMessageReplyParams params; | 371 ppapi::proxy::ResourceMessageReplyParams params; |
372 SendUpdateToPlugin(new PpapiPluginMsg_URLLoader_UpdateProgress( | 372 SendUpdateToPlugin(new PpapiPluginMsg_URLLoader_UpdateProgress( |
373 record_upload ? bytes_sent_ : -1, | 373 record_upload ? bytes_sent_ : -1, |
374 record_upload ? total_bytes_to_be_sent_ : -1, | 374 record_upload ? total_bytes_to_be_sent_ : -1, |
375 record_download ? bytes_received_ : -1, | 375 record_download ? bytes_received_ : -1, |
376 record_download ? total_bytes_to_be_received_ : -1)); | 376 record_download ? total_bytes_to_be_received_ : -1)); |
377 } | 377 } |
378 } | 378 } |
379 | 379 |
380 } // namespace content | 380 } // namespace content |
OLD | NEW |