| OLD | NEW |
| 1 // Copyright (c) 2011 The Native Client 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 "native_client/src/shared/ppapi_proxy/plugin_callback.h" | 5 #include "native_client/src/shared/ppapi_proxy/plugin_callback.h" |
| 6 #include <string.h> | 6 #include <string.h> |
| 7 #include "native_client/src/shared/ppapi_proxy/utility.h" | 7 #include "native_client/src/shared/ppapi_proxy/utility.h" |
| 8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
| 9 #include "srpcgen/ppp_rpc.h" | 9 #include "srpcgen/ppp_rpc.h" |
| 10 | 10 |
| 11 namespace ppapi_proxy { | 11 namespace ppapi_proxy { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 callback_id); | 86 callback_id); |
| 87 return; | 87 return; |
| 88 } | 88 } |
| 89 | 89 |
| 90 if (user_buffer != NULL && read_buffer_size > 0) | 90 if (user_buffer != NULL && read_buffer_size > 0) |
| 91 memcpy(user_buffer, read_buffer, read_buffer_size); | 91 memcpy(user_buffer, read_buffer, read_buffer_size); |
| 92 PP_RunCompletionCallback(&callback, result); | 92 PP_RunCompletionCallback(&callback, result); |
| 93 | 93 |
| 94 rpc->result = NACL_SRPC_RESULT_OK; | 94 rpc->result = NACL_SRPC_RESULT_OK; |
| 95 } | 95 } |
| OLD | NEW |