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

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

Issue 16933003: Implement PPB_HostResolver_Dev: part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
« no previous file with comments | « content/content_browser.gypi ('k') | ppapi/proxy/host_resolver_resource.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | ppapi/proxy/host_resolver_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698