| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_host_resolver.idl modified Thu Jun 20 15:36:07 2013. | 5 // From ppb_host_resolver.idl modified Tue Aug 20 08:13:36 2013. |
| 6 | 6 |
| 7 #include "ppapi/c/pp_completion_callback.h" | 7 #include "ppapi/c/pp_completion_callback.h" |
| 8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
| 9 #include "ppapi/c/ppb_host_resolver.h" | 9 #include "ppapi/c/ppb_host_resolver.h" |
| 10 #include "ppapi/shared_impl/tracked_callback.h" | 10 #include "ppapi/shared_impl/tracked_callback.h" |
| 11 #include "ppapi/thunk/enter.h" | 11 #include "ppapi/thunk/enter.h" |
| 12 #include "ppapi/thunk/ppapi_thunk_export.h" |
| 12 #include "ppapi/thunk/ppb_host_resolver_api.h" | 13 #include "ppapi/thunk/ppb_host_resolver_api.h" |
| 13 #include "ppapi/thunk/ppb_instance_api.h" | |
| 14 #include "ppapi/thunk/resource_creation_api.h" | |
| 15 #include "ppapi/thunk/thunk.h" | |
| 16 | 14 |
| 17 namespace ppapi { | 15 namespace ppapi { |
| 18 namespace thunk { | 16 namespace thunk { |
| 19 | 17 |
| 20 namespace { | 18 namespace { |
| 21 | 19 |
| 22 PP_Resource Create(PP_Instance instance) { | 20 PP_Resource Create(PP_Instance instance) { |
| 23 VLOG(4) << "PPB_HostResolver::Create()"; | 21 VLOG(4) << "PPB_HostResolver::Create()"; |
| 24 EnterResourceCreation enter(instance); | 22 EnterResourceCreation enter(instance); |
| 25 if (enter.failed()) | 23 if (enter.failed()) |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 &Create, | 74 &Create, |
| 77 &IsHostResolver, | 75 &IsHostResolver, |
| 78 &Resolve, | 76 &Resolve, |
| 79 &GetCanonicalName, | 77 &GetCanonicalName, |
| 80 &GetNetAddressCount, | 78 &GetNetAddressCount, |
| 81 &GetNetAddress | 79 &GetNetAddress |
| 82 }; | 80 }; |
| 83 | 81 |
| 84 } // namespace | 82 } // namespace |
| 85 | 83 |
| 86 const PPB_HostResolver_1_0* GetPPB_HostResolver_1_0_Thunk() { | 84 PPAPI_THUNK_EXPORT const PPB_HostResolver_1_0* |
| 85 GetPPB_HostResolver_1_0_Thunk() { |
| 87 return &g_ppb_hostresolver_thunk_1_0; | 86 return &g_ppb_hostresolver_thunk_1_0; |
| 88 } | 87 } |
| 89 | 88 |
| 90 } // namespace thunk | 89 } // namespace thunk |
| 91 } // namespace ppapi | 90 } // namespace ppapi |
| OLD | NEW |