| 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/shared_impl/private/ppb_host_resolver_shared.h" | 5 #include "ppapi/shared_impl/private/ppb_host_resolver_shared.h" |
| 6 | 6 |
| 7 #include <cstddef> | 7 #include <cstddef> |
| 8 #include <cstring> | 8 #include <cstring> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" |
| 10 #include "net/base/address_list.h" | 11 #include "net/base/address_list.h" |
| 11 #include "ppapi/c/pp_errors.h" | 12 #include "ppapi/c/pp_errors.h" |
| 12 #include "ppapi/shared_impl/private/net_address_private_impl.h" | 13 #include "ppapi/shared_impl/private/net_address_private_impl.h" |
| 13 #include "ppapi/shared_impl/var.h" | 14 #include "ppapi/shared_impl/var.h" |
| 14 #include "ppapi/thunk/thunk.h" | 15 #include "ppapi/thunk/thunk.h" |
| 15 | 16 |
| 16 namespace ppapi { | 17 namespace ppapi { |
| 17 | 18 |
| 18 NetAddressList* CreateNetAddressListFromAddressList( | 19 NetAddressList* CreateNetAddressListFromAddressList( |
| 19 const net::AddressList& list) { | 20 const net::AddressList& list) { |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 uint32 PPB_HostResolver_Shared::GenerateHostResolverID() { | 108 uint32 PPB_HostResolver_Shared::GenerateHostResolverID() { |
| 108 static uint32 host_resolver_id = 0; | 109 static uint32 host_resolver_id = 0; |
| 109 return host_resolver_id++; | 110 return host_resolver_id++; |
| 110 } | 111 } |
| 111 | 112 |
| 112 bool PPB_HostResolver_Shared::ResolveInProgress() const { | 113 bool PPB_HostResolver_Shared::ResolveInProgress() const { |
| 113 return TrackedCallback::IsPending(resolve_callback_); | 114 return TrackedCallback::IsPending(resolve_callback_); |
| 114 } | 115 } |
| 115 | 116 |
| 116 } // namespace ppapi | 117 } // namespace ppapi |
| OLD | NEW |