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

Side by Side Diff: ppapi/cpp/dev/host_resolver_dev.h

Issue 17419008: Move PPB_NetAddress out of dev. (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 | « ppapi/c/ppb_net_address.h ('k') | ppapi/cpp/dev/host_resolver_dev.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef PPAPI_CPP_DEV_HOST_RESOLVER_DEV_H_ 5 #ifndef PPAPI_CPP_DEV_HOST_RESOLVER_DEV_H_
6 #define PPAPI_CPP_DEV_HOST_RESOLVER_DEV_H_ 6 #define PPAPI_CPP_DEV_HOST_RESOLVER_DEV_H_
7 7
8 #include "ppapi/c/pp_stdint.h" 8 #include "ppapi/c/pp_stdint.h"
9 #include "ppapi/c/dev/ppb_host_resolver_dev.h" 9 #include "ppapi/c/dev/ppb_host_resolver_dev.h"
10 #include "ppapi/cpp/dev/net_address_dev.h" 10 #include "ppapi/cpp/net_address.h"
11 #include "ppapi/cpp/pass_ref.h" 11 #include "ppapi/cpp/pass_ref.h"
12 #include "ppapi/cpp/resource.h" 12 #include "ppapi/cpp/resource.h"
13 #include "ppapi/cpp/var.h" 13 #include "ppapi/cpp/var.h"
14 14
15 namespace pp { 15 namespace pp {
16 16
17 class CompletionCallback; 17 class CompletionCallback;
18 class InstanceHandle; 18 class InstanceHandle;
19 19
20 /// The <code>HostResolver_Dev</code> class supports host name resolution. 20 /// The <code>HostResolver_Dev</code> class supports host name resolution.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 /// 96 ///
97 /// @return The number of available network addresses on success; 0 if there 97 /// @return The number of available network addresses on success; 0 if there
98 /// is a pending <code>Resolve()</code> call or the previous 98 /// is a pending <code>Resolve()</code> call or the previous
99 /// <code>Resolve()</code> call failed. 99 /// <code>Resolve()</code> call failed.
100 uint32_t GetNetAddressCount() const; 100 uint32_t GetNetAddressCount() const;
101 101
102 /// Gets a network address. 102 /// Gets a network address.
103 /// 103 ///
104 /// @param[in] index An index indicating which address to return. 104 /// @param[in] index An index indicating which address to return.
105 /// 105 ///
106 /// @return A <code>NetAddress_Dev</code> object. The object will be null 106 /// @return A <code>NetAddress</code> object. The object will be null
107 /// (i.e., is_null() returns true) if there is a pending 107 /// (i.e., is_null() returns true) if there is a pending
108 /// <code>Resolve()</code> call or the previous <code>Resolve()</code> call 108 /// <code>Resolve()</code> call or the previous <code>Resolve()</code> call
109 /// failed, or the specified index is out of range. 109 /// failed, or the specified index is out of range.
110 NetAddress_Dev GetNetAddress(uint32_t index) const; 110 NetAddress GetNetAddress(uint32_t index) const;
111 }; 111 };
112 112
113 } // namespace pp 113 } // namespace pp
114 114
115 #endif // PPAPI_CPP_DEV_HOST_RESOLVER_DEV_H_ 115 #endif // PPAPI_CPP_DEV_HOST_RESOLVER_DEV_H_
OLDNEW
« no previous file with comments | « ppapi/c/ppb_net_address.h ('k') | ppapi/cpp/dev/host_resolver_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698