| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ppapi/proxy/ppb_url_loader_proxy.h" | 5 #include "ppapi/proxy/ppb_url_loader_proxy.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "ppapi/proxy/ppb_url_response_info_proxy.h" | 25 #include "ppapi/proxy/ppb_url_response_info_proxy.h" |
| 26 #include "ppapi/thunk/enter.h" | 26 #include "ppapi/thunk/enter.h" |
| 27 #include "ppapi/thunk/ppb_url_loader_api.h" | 27 #include "ppapi/thunk/ppb_url_loader_api.h" |
| 28 #include "ppapi/thunk/resource_creation_api.h" | 28 #include "ppapi/thunk/resource_creation_api.h" |
| 29 #include "ppapi/thunk/thunk.h" | 29 #include "ppapi/thunk/thunk.h" |
| 30 | 30 |
| 31 #if defined(OS_LINUX) | 31 #if defined(OS_LINUX) |
| 32 #include <sys/shm.h> | 32 #include <sys/shm.h> |
| 33 #endif | 33 #endif |
| 34 | 34 |
| 35 using ppapi::HostResource; |
| 35 using ppapi::thunk::EnterFunctionNoLock; | 36 using ppapi::thunk::EnterFunctionNoLock; |
| 36 using ppapi::thunk::EnterResourceNoLock; | 37 using ppapi::thunk::EnterResourceNoLock; |
| 37 using ppapi::thunk::PPB_URLLoader_API; | 38 using ppapi::thunk::PPB_URLLoader_API; |
| 38 using ppapi::thunk::ResourceCreationAPI; | 39 using ppapi::thunk::ResourceCreationAPI; |
| 39 | 40 |
| 40 namespace pp { | 41 namespace pp { |
| 41 namespace proxy { | 42 namespace proxy { |
| 42 | 43 |
| 43 namespace { | 44 namespace { |
| 44 | 45 |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 info->read_buffer.resize(bytes_read); | 578 info->read_buffer.resize(bytes_read); |
| 578 | 579 |
| 579 dispatcher()->Send(new PpapiMsg_PPBURLLoader_ReadResponseBody_Ack( | 580 dispatcher()->Send(new PpapiMsg_PPBURLLoader_ReadResponseBody_Ack( |
| 580 INTERFACE_ID_PPB_URL_LOADER, info->resource, result, info->read_buffer)); | 581 INTERFACE_ID_PPB_URL_LOADER, info->resource, result, info->read_buffer)); |
| 581 | 582 |
| 582 delete info; | 583 delete info; |
| 583 } | 584 } |
| 584 | 585 |
| 585 } // namespace proxy | 586 } // namespace proxy |
| 586 } // namespace pp | 587 } // namespace pp |
| OLD | NEW |