| 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 #include "ppapi/proxy/ppb_host_resolver_private_proxy.h" | 5 #include "ppapi/proxy/ppb_host_resolver_private_proxy.h" |
| 6 | 6 |
| 7 #include <cstddef> | 7 #include <cstddef> |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 IPC_MESSAGE_UNHANDLED(handled = false) | 100 IPC_MESSAGE_UNHANDLED(handled = false) |
| 101 IPC_END_MESSAGE_MAP() | 101 IPC_END_MESSAGE_MAP() |
| 102 return handled; | 102 return handled; |
| 103 } | 103 } |
| 104 | 104 |
| 105 void PPB_HostResolver_Private_Proxy::OnMsgResolveACK( | 105 void PPB_HostResolver_Private_Proxy::OnMsgResolveACK( |
| 106 uint32 plugin_dispatcher_id, | 106 uint32 plugin_dispatcher_id, |
| 107 uint32 host_resolver_id, | 107 uint32 host_resolver_id, |
| 108 bool succeeded, | 108 bool succeeded, |
| 109 const std::string& canonical_name, | 109 const std::string& canonical_name, |
| 110 const ppapi::NetAddressList& net_address_list) { | 110 const std::vector<PP_NetAddress_Private>& net_address_list) { |
| 111 if (!g_id_to_host_resolver) { | 111 if (!g_id_to_host_resolver) { |
| 112 NOTREACHED(); | 112 NOTREACHED(); |
| 113 return; | 113 return; |
| 114 } | 114 } |
| 115 IDToHostResolverMap::iterator it = | 115 IDToHostResolverMap::iterator it = |
| 116 g_id_to_host_resolver->find(host_resolver_id); | 116 g_id_to_host_resolver->find(host_resolver_id); |
| 117 if (it == g_id_to_host_resolver->end()) | 117 if (it == g_id_to_host_resolver->end()) |
| 118 return; | 118 return; |
| 119 it->second->OnResolveCompleted(succeeded, canonical_name, net_address_list); | 119 it->second->OnResolveCompleted(succeeded, canonical_name, net_address_list); |
| 120 } | 120 } |
| 121 | 121 |
| 122 } // namespace proxy | 122 } // namespace proxy |
| 123 } // namespace ppapi | 123 } // namespace ppapi |
| OLD | NEW |