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 #include "ppapi/cpp/network_proxy.h" | 5 #include "ppapi/cpp/network_proxy.h" |
6 | 6 |
7 #include "ppapi/c/ppb_network_proxy.h" | 7 #include "ppapi/c/ppb_network_proxy.h" |
8 #include "ppapi/cpp/module_impl.h" | 8 #include "ppapi/cpp/module_impl.h" |
9 | 9 |
10 namespace pp { | 10 namespace pp { |
(...skipping 18 matching lines...) Expand all Loading... |
29 const CompletionCallbackWithOutput<Var>& callback) { | 29 const CompletionCallbackWithOutput<Var>& callback) { |
30 if (!has_interface<PPB_NetworkProxy_1_0>()) | 30 if (!has_interface<PPB_NetworkProxy_1_0>()) |
31 return callback.MayForce(PP_ERROR_NOINTERFACE); | 31 return callback.MayForce(PP_ERROR_NOINTERFACE); |
32 | 32 |
33 return get_interface<PPB_NetworkProxy_1_0>()->GetProxyForURL( | 33 return get_interface<PPB_NetworkProxy_1_0>()->GetProxyForURL( |
34 instance.pp_instance(), url.pp_var(), | 34 instance.pp_instance(), url.pp_var(), |
35 callback.output(), callback.pp_completion_callback()); | 35 callback.output(), callback.pp_completion_callback()); |
36 } | 36 } |
37 | 37 |
38 } // namespace pp | 38 } // namespace pp |
OLD | NEW |