OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 dev/ppb_network_proxy_dev.idl modified Thu Jun 6 12:08:31 2013. | 5 // From ppb_network_proxy.idl modified Thu Jun 20 22:03:12 2013. |
6 | 6 |
7 #include "ppapi/c/dev/ppb_network_proxy_dev.h" | |
8 #include "ppapi/c/pp_completion_callback.h" | 7 #include "ppapi/c/pp_completion_callback.h" |
9 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
| 9 #include "ppapi/c/ppb_network_proxy.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/ppb_instance_api.h" | 12 #include "ppapi/thunk/ppb_instance_api.h" |
13 #include "ppapi/thunk/ppb_network_proxy_api.h" | 13 #include "ppapi/thunk/ppb_network_proxy_api.h" |
14 #include "ppapi/thunk/resource_creation_api.h" | 14 #include "ppapi/thunk/resource_creation_api.h" |
15 #include "ppapi/thunk/thunk.h" | 15 #include "ppapi/thunk/thunk.h" |
16 | 16 |
17 namespace ppapi { | 17 namespace ppapi { |
18 namespace thunk { | 18 namespace thunk { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 int32_t GetProxyForURL(PP_Instance instance, | 22 int32_t GetProxyForURL(PP_Instance instance, |
23 struct PP_Var url, | 23 struct PP_Var url, |
24 struct PP_Var* proxy_string, | 24 struct PP_Var* proxy_string, |
25 struct PP_CompletionCallback callback) { | 25 struct PP_CompletionCallback callback) { |
26 VLOG(4) << "PPB_NetworkProxy_Dev::GetProxyForURL()"; | 26 VLOG(4) << "PPB_NetworkProxy::GetProxyForURL()"; |
27 EnterInstanceAPI<PPB_NetworkProxy_API> enter(instance, callback); | 27 EnterInstanceAPI<PPB_NetworkProxy_API> enter(instance, callback); |
28 if (enter.failed()) | 28 if (enter.failed()) |
29 return enter.retval(); | 29 return enter.retval(); |
30 return enter.SetResult(enter.functions()->GetProxyForURL(instance, | 30 return enter.SetResult(enter.functions()->GetProxyForURL(instance, |
31 url, | 31 url, |
32 proxy_string, | 32 proxy_string, |
33 enter.callback())); | 33 enter.callback())); |
34 } | 34 } |
35 | 35 |
36 const PPB_NetworkProxy_Dev_0_1 g_ppb_networkproxy_dev_thunk_0_1 = { | 36 const PPB_NetworkProxy_1_0 g_ppb_networkproxy_thunk_1_0 = { |
37 &GetProxyForURL | 37 &GetProxyForURL |
38 }; | 38 }; |
39 | 39 |
40 } // namespace | 40 } // namespace |
41 | 41 |
42 const PPB_NetworkProxy_Dev_0_1* GetPPB_NetworkProxy_Dev_0_1_Thunk() { | 42 const PPB_NetworkProxy_1_0* GetPPB_NetworkProxy_1_0_Thunk() { |
43 return &g_ppb_networkproxy_dev_thunk_0_1; | 43 return &g_ppb_networkproxy_thunk_1_0; |
44 } | 44 } |
45 | 45 |
46 } // namespace thunk | 46 } // namespace thunk |
47 } // namespace ppapi | 47 } // namespace ppapi |
OLD | NEW |