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

Side by Side Diff: ppapi/cpp/private/host_resolver_private.h

Issue 9701024: Added C++ wrappers for PPB_HostResolver_Private interface. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Sync. Created 8 years, 9 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef PPAPI_CPP_PRIVATE_HOST_RESOLVER_PRIVATE_H_
6 #define PPAPI_CPP_PRIVATE_HOST_RESOLVER_PRIVATE_H_
7
8 #include <string>
9
10 #include "ppapi/c/pp_stdint.h"
11 #include "ppapi/c/private/ppb_host_resolver_private.h"
12 #include "ppapi/cpp/resource.h"
13
14 struct PP_NetAddress_Private;
15
16 namespace pp {
17
18 class CompletionCallback;
19 class InstanceHandle;
20
21 class HostResolverPrivate : public Resource {
22 public:
23 explicit HostResolverPrivate(const InstanceHandle& instance);
24
25 // Returns true if the required interface is available.
26 static bool IsAvailable();
27
28 int32_t Resolve(const std::string& host,
29 uint16_t port,
30 const PP_HostResolver_Private_Hint& hint,
31 const CompletionCallback& callback);
32 void GetCanonicalName(std::string* canonical_name);
yzshen1 2012/03/16 17:38:02 How about returning a std::string?
brettw 2012/03/16 19:32:21 Actually, we should return a pp::Var and PASS_REF
ygorshenin1 2012/03/19 08:41:56 Done.
33 uint32_t GetSize();
34 bool GetNetAddress(uint32_t index, PP_NetAddress_Private* address);
35 };
36
37 } // namespace pp
38
39 #endif // PPAPI_CPP_PRIVATE_HOST_RESOLVER_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698