| 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 #ifndef PPAPI_PROXY_PPB_HOST_RESOLVER_PRIVATE_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_HOST_RESOLVER_PRIVATE_PROXY_H_ |
| 6 #define PPAPI_PROXY_PPB_HOST_RESOLVER_PRIVATE_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_HOST_RESOLVER_PRIVATE_PROXY_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
| 10 #include "ppapi/c/pp_resource.h" | 10 #include "ppapi/c/pp_resource.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 static PP_Resource CreateProxyResource(PP_Instance instance); | 22 static PP_Resource CreateProxyResource(PP_Instance instance); |
| 23 | 23 |
| 24 // InterfaceProxy implementation. | 24 // InterfaceProxy implementation. |
| 25 virtual bool OnMessageReceived(const IPC::Message& msg); | 25 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 26 | 26 |
| 27 static const ApiID kApiID = API_ID_PPB_HOSTRESOLVER_PRIVATE; | 27 static const ApiID kApiID = API_ID_PPB_HOSTRESOLVER_PRIVATE; |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 // Browser->plugin message handlers. | 30 // Browser->plugin message handlers. |
| 31 void OnMsgResolveACK(uint32 plugin_dispatcher_id, | 31 void OnMsgResolveACK( |
| 32 uint32 host_resolver_id, | 32 uint32 plugin_dispatcher_id, |
| 33 bool succeeded, | 33 uint32 host_resolver_id, |
| 34 const std::string& canonical_name, | 34 bool succeeded, |
| 35 const ppapi::NetAddressList& net_address_list); | 35 const std::string& canonical_name, |
| 36 const std::vector<PP_NetAddress_Private>& net_address_list); |
| 36 | 37 |
| 37 DISALLOW_COPY_AND_ASSIGN(PPB_HostResolver_Private_Proxy); | 38 DISALLOW_COPY_AND_ASSIGN(PPB_HostResolver_Private_Proxy); |
| 38 }; | 39 }; |
| 39 | 40 |
| 40 } // namespace proxy | 41 } // namespace proxy |
| 41 } // namespace ppapi | 42 } // namespace ppapi |
| 42 | 43 |
| 43 #endif // PPAPI_PROXY_PPB_HOST_RESOLVER_PRIVATE_PROXY_H_ | 44 #endif // PPAPI_PROXY_PPB_HOST_RESOLVER_PRIVATE_PROXY_H_ |
| OLD | NEW |