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 <stddef.h> |
| 8 |
7 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" | 9 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" |
8 #include "content/renderer/pepper/renderer_ppapi_host_impl.h" | 10 #include "content/renderer/pepper/renderer_ppapi_host_impl.h" |
9 #include "content/renderer/pepper/url_request_info_util.h" | 11 #include "content/renderer/pepper/url_request_info_util.h" |
10 #include "content/renderer/pepper/url_response_info_util.h" | 12 #include "content/renderer/pepper/url_response_info_util.h" |
11 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
12 #include "ppapi/c/pp_errors.h" | 14 #include "ppapi/c/pp_errors.h" |
13 #include "ppapi/host/dispatch_host_message.h" | 15 #include "ppapi/host/dispatch_host_message.h" |
14 #include "ppapi/host/host_message_context.h" | 16 #include "ppapi/host/host_message_context.h" |
15 #include "ppapi/host/ppapi_host.h" | 17 #include "ppapi/host/ppapi_host.h" |
16 #include "ppapi/proxy/ppapi_messages.h" | 18 #include "ppapi/proxy/ppapi_messages.h" |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 ppapi::proxy::ResourceMessageReplyParams params; | 435 ppapi::proxy::ResourceMessageReplyParams params; |
434 SendUpdateToPlugin(new PpapiPluginMsg_URLLoader_UpdateProgress( | 436 SendUpdateToPlugin(new PpapiPluginMsg_URLLoader_UpdateProgress( |
435 record_upload ? bytes_sent_ : -1, | 437 record_upload ? bytes_sent_ : -1, |
436 record_upload ? total_bytes_to_be_sent_ : -1, | 438 record_upload ? total_bytes_to_be_sent_ : -1, |
437 record_download ? bytes_received_ : -1, | 439 record_download ? bytes_received_ : -1, |
438 record_download ? total_bytes_to_be_received_ : -1)); | 440 record_download ? total_bytes_to_be_received_ : -1)); |
439 } | 441 } |
440 } | 442 } |
441 | 443 |
442 } // namespace content | 444 } // namespace content |
OLD | NEW |