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/host_resolver_private_resource.h" | 5 #include "ppapi/proxy/host_resolver_private_resource.h" |
6 | 6 |
7 #include "ppapi/proxy/net_address_resource.h" | 7 #include "ppapi/proxy/net_address_resource.h" |
8 #include "ppapi/shared_impl/tracked_callback.h" | 8 #include "ppapi/shared_impl/tracked_callback.h" |
9 | 9 |
10 namespace ppapi { | 10 namespace ppapi { |
11 namespace proxy { | 11 namespace proxy { |
12 | 12 |
13 HostResolverPrivateResource::HostResolverPrivateResource(Connection connection, | 13 HostResolverPrivateResource::HostResolverPrivateResource(Connection connection, |
14 PP_Instance instance) | 14 PP_Instance instance) |
15 : HostResolverResourceBase(connection, instance) { | 15 : HostResolverResourceBase(connection, instance, true) { |
16 } | 16 } |
17 | 17 |
18 HostResolverPrivateResource::~HostResolverPrivateResource() { | 18 HostResolverPrivateResource::~HostResolverPrivateResource() { |
19 } | 19 } |
20 | 20 |
21 thunk::PPB_HostResolver_Private_API* | 21 thunk::PPB_HostResolver_Private_API* |
22 HostResolverPrivateResource::AsPPB_HostResolver_Private_API() { | 22 HostResolverPrivateResource::AsPPB_HostResolver_Private_API() { |
23 return this; | 23 return this; |
24 } | 24 } |
25 | 25 |
(...skipping 22 matching lines...) Expand all Loading... |
48 scoped_refptr<NetAddressResource> addr_resource = GetNetAddressImpl(index); | 48 scoped_refptr<NetAddressResource> addr_resource = GetNetAddressImpl(index); |
49 if (!addr_resource.get()) | 49 if (!addr_resource.get()) |
50 return false; | 50 return false; |
51 | 51 |
52 *address = addr_resource->GetNetAddressPrivate(); | 52 *address = addr_resource->GetNetAddressPrivate(); |
53 return true; | 53 return true; |
54 } | 54 } |
55 | 55 |
56 } // namespace proxy | 56 } // namespace proxy |
57 } // namespace ppapi | 57 } // namespace ppapi |
OLD | NEW |