| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 The Native Client Authors. All rights reserved. | 2 * Copyright 2010 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can |
| 4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #include "native_client/tests/fake_browser_ppapi/fake_url_response_info.h" | 7 #include "native_client/tests/fake_browser_ppapi/fake_url_response_info.h" |
| 8 | 8 |
| 9 #include <stdio.h> | 9 #include <stdio.h> |
| 10 | 10 |
| 11 #include "native_client/src/include/nacl_macros.h" | 11 #include "native_client/src/include/nacl_macros.h" |
| 12 #include "native_client/src/include/portability.h" | 12 #include "native_client/src/include/portability.h" |
| 13 #include "native_client/src/shared/ppapi_proxy/plugin_var.h" | 13 #include "native_client/src/shared/ppapi_proxy/plugin_var.h" |
| 14 #include "native_client/src/shared/ppapi_proxy/utility.h" | |
| 15 | 14 |
| 16 #include "native_client/tests/fake_browser_ppapi/fake_file_ref.h" | 15 #include "native_client/tests/fake_browser_ppapi/fake_file_ref.h" |
| 17 #include "native_client/tests/fake_browser_ppapi/fake_resource.h" | 16 #include "native_client/tests/fake_browser_ppapi/fake_resource.h" |
| 17 #include "native_client/tests/fake_browser_ppapi/utility.h" |
| 18 | 18 |
| 19 #include "ppapi/c/pp_completion_callback.h" | 19 #include "ppapi/c/pp_completion_callback.h" |
| 20 #include "ppapi/c/pp_resource.h" | 20 #include "ppapi/c/pp_resource.h" |
| 21 | 21 |
| 22 using ppapi_proxy::DebugPrintf; | 22 using fake_browser_ppapi::DebugPrintf; |
| 23 using ppapi_proxy::PluginVar; | 23 using ppapi_proxy::PluginVar; |
| 24 | 24 |
| 25 namespace fake_browser_ppapi { | 25 namespace fake_browser_ppapi { |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 PP_Bool IsURLResponseInfo(PP_Resource resource_id) { | 29 PP_Bool IsURLResponseInfo(PP_Resource resource_id) { |
| 30 DebugPrintf("URLRequestInfo::IsURLResponseInfo: resource_id=%"NACL_PRId64"\n", | 30 DebugPrintf("URLRequestInfo::IsURLResponseInfo: resource_id=%"NACL_PRId64"\n", |
| 31 resource_id); | 31 resource_id); |
| 32 NACL_UNIMPLEMENTED(); | 32 NACL_UNIMPLEMENTED(); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 const PPB_URLResponseInfo* URLResponseInfo::GetInterface() { | 72 const PPB_URLResponseInfo* URLResponseInfo::GetInterface() { |
| 73 static const PPB_URLResponseInfo url_response_info_interface = { | 73 static const PPB_URLResponseInfo url_response_info_interface = { |
| 74 IsURLResponseInfo, | 74 IsURLResponseInfo, |
| 75 GetProperty, | 75 GetProperty, |
| 76 GetBodyAsFileRef | 76 GetBodyAsFileRef |
| 77 }; | 77 }; |
| 78 return &url_response_info_interface; | 78 return &url_response_info_interface; |
| 79 } | 79 } |
| 80 | 80 |
| 81 } // namespace fake_browser_ppapi | 81 } // namespace fake_browser_ppapi |
| OLD | NEW |