| 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 <stdlib.h> | 5 #include <stdlib.h> |
| 6 | 6 |
| 7 #include "ppapi/c/dev/ppb_memory_dev.h" | 7 #include "ppapi/c/dev/ppb_memory_dev.h" |
| 8 #include "ppapi/shared_impl/ppapi_shared_export.h" | 8 #include "ppapi/shared_impl/ppapi_shared_export.h" |
| 9 | 9 |
| 10 // The memory interface doesn't have a normal C -> C++ thunk since it doesn't | 10 // The memory interface doesn't have a normal C -> C++ thunk since it doesn't |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 const PPB_Memory_Dev ppb_memory = { | 27 const PPB_Memory_Dev ppb_memory = { |
| 28 &MemAlloc, | 28 &MemAlloc, |
| 29 &MemFree | 29 &MemFree |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 } // namespace | 32 } // namespace |
| 33 | 33 |
| 34 namespace thunk { | 34 namespace thunk { |
| 35 | 35 |
| 36 // static | 36 // static |
| 37 PPAPI_SHARED_EXPORT const PPB_Memory_Dev* GetPPB_Memory_Dev_Thunk() { | 37 PPAPI_SHARED_EXPORT const PPB_Memory_Dev_0_1* GetPPB_Memory_Dev_0_1_Thunk() { |
| 38 return &ppb_memory; | 38 return &ppb_memory; |
| 39 } | 39 } |
| 40 | 40 |
| 41 } // namespace thunk | 41 } // namespace thunk |
| 42 | 42 |
| 43 } // namespace ppapi | 43 } // namespace ppapi |
| OLD | NEW |