| 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 Mon Sep 9 11:18:02 2013. | 5 // From ppb_network_list.idl modified Thu Oct 31 12:30:06 2013. |
| 6 | 6 |
| 7 #include "ppapi/c/pp_errors.h" | 7 #include "ppapi/c/pp_errors.h" |
| 8 #include "ppapi/c/ppb_network_list.h" | 8 #include "ppapi/c/ppb_network_list.h" |
| 9 #include "ppapi/shared_impl/tracked_callback.h" | 9 #include "ppapi/shared_impl/tracked_callback.h" |
| 10 #include "ppapi/thunk/enter.h" | 10 #include "ppapi/thunk/enter.h" |
| 11 #include "ppapi/thunk/ppb_instance_api.h" | 11 #include "ppapi/thunk/ppapi_thunk_export.h" |
| 12 #include "ppapi/thunk/ppb_network_list_api.h" | 12 #include "ppapi/thunk/ppb_network_list_api.h" |
| 13 #include "ppapi/thunk/resource_creation_api.h" | |
| 14 #include "ppapi/thunk/thunk.h" | |
| 15 | 13 |
| 16 namespace ppapi { | 14 namespace ppapi { |
| 17 namespace thunk { | 15 namespace thunk { |
| 18 | 16 |
| 19 namespace { | 17 namespace { |
| 20 | 18 |
| 21 PP_Bool IsNetworkList(PP_Resource resource) { | 19 PP_Bool IsNetworkList(PP_Resource resource) { |
| 22 VLOG(4) << "PPB_NetworkList::IsNetworkList()"; | 20 VLOG(4) << "PPB_NetworkList::IsNetworkList()"; |
| 23 EnterResource<PPB_NetworkList_API> enter(resource, false); | 21 EnterResource<PPB_NetworkList_API> enter(resource, false); |
| 24 return PP_FromBool(enter.succeeded()); | 22 return PP_FromBool(enter.succeeded()); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 &GetName, | 86 &GetName, |
| 89 &GetType, | 87 &GetType, |
| 90 &GetState, | 88 &GetState, |
| 91 &GetIpAddresses, | 89 &GetIpAddresses, |
| 92 &GetDisplayName, | 90 &GetDisplayName, |
| 93 &GetMTU | 91 &GetMTU |
| 94 }; | 92 }; |
| 95 | 93 |
| 96 } // namespace | 94 } // namespace |
| 97 | 95 |
| 98 const PPB_NetworkList_1_0* GetPPB_NetworkList_1_0_Thunk() { | 96 PPAPI_THUNK_EXPORT const PPB_NetworkList_1_0* GetPPB_NetworkList_1_0_Thunk() { |
| 99 return &g_ppb_networklist_thunk_1_0; | 97 return &g_ppb_networklist_thunk_1_0; |
| 100 } | 98 } |
| 101 | 99 |
| 102 } // namespace thunk | 100 } // namespace thunk |
| 103 } // namespace ppapi | 101 } // namespace ppapi |
| OLD | NEW |