Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Side by Side Diff: ppapi/proxy/ppb_host_resolver_private_proxy.cc

Issue 10909154: Remove PPAPI dependency on 'net'. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_host_resolver_private_proxy.h ('k') | ppapi/shared_impl/private/net_address_private_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698