| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // From ppb_network_list.idl modified Fri Nov 1 16:12:12 2013. | 5 // From ppb_network_list.idl modified Wed Jan 27 17:10:16 2016. |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "ppapi/c/pp_errors.h" | 9 #include "ppapi/c/pp_errors.h" |
| 10 #include "ppapi/c/ppb_network_list.h" | 10 #include "ppapi/c/ppb_network_list.h" |
| 11 #include "ppapi/shared_impl/tracked_callback.h" | 11 #include "ppapi/shared_impl/tracked_callback.h" |
| 12 #include "ppapi/thunk/enter.h" | 12 #include "ppapi/thunk/enter.h" |
| 13 #include "ppapi/thunk/ppapi_thunk_export.h" | 13 #include "ppapi/thunk/ppapi_thunk_export.h" |
| 14 #include "ppapi/thunk/ppb_network_list_api.h" | 14 #include "ppapi/thunk/ppb_network_list_api.h" |
| 15 | 15 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 } | 75 } |
| 76 | 76 |
| 77 uint32_t GetMTU(PP_Resource resource, uint32_t index) { | 77 uint32_t GetMTU(PP_Resource resource, uint32_t index) { |
| 78 VLOG(4) << "PPB_NetworkList::GetMTU()"; | 78 VLOG(4) << "PPB_NetworkList::GetMTU()"; |
| 79 EnterResource<PPB_NetworkList_API> enter(resource, true); | 79 EnterResource<PPB_NetworkList_API> enter(resource, true); |
| 80 if (enter.failed()) | 80 if (enter.failed()) |
| 81 return 0; | 81 return 0; |
| 82 return enter.object()->GetMTU(index); | 82 return enter.object()->GetMTU(index); |
| 83 } | 83 } |
| 84 | 84 |
| 85 const PPB_NetworkList_1_0 g_ppb_networklist_thunk_1_0 = {&IsNetworkList, | 85 const PPB_NetworkList_1_0 g_ppb_networklist_thunk_1_0 = { |
| 86 &GetCount, | 86 &IsNetworkList, &GetCount, &GetName, &GetType, |
| 87 &GetName, | 87 &GetState, &GetIpAddresses, &GetDisplayName, &GetMTU}; |
| 88 &GetType, | |
| 89 &GetState, | |
| 90 &GetIpAddresses, | |
| 91 &GetDisplayName, | |
| 92 &GetMTU}; | |
| 93 | 88 |
| 94 } // namespace | 89 } // namespace |
| 95 | 90 |
| 96 PPAPI_THUNK_EXPORT const PPB_NetworkList_1_0* GetPPB_NetworkList_1_0_Thunk() { | 91 PPAPI_THUNK_EXPORT const PPB_NetworkList_1_0* GetPPB_NetworkList_1_0_Thunk() { |
| 97 return &g_ppb_networklist_thunk_1_0; | 92 return &g_ppb_networklist_thunk_1_0; |
| 98 } | 93 } |
| 99 | 94 |
| 100 } // namespace thunk | 95 } // namespace thunk |
| 101 } // namespace ppapi | 96 } // namespace ppapi |
| OLD | NEW |