Vectorize website settings icons in omnibox
[chromium-blink-merge.git] / ppapi / cpp / private / host_resolver_private.h
blob2e4b08e6b4f2bcf9efef5d9969a68b04c25d37b7
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.
5 #ifndef PPAPI_CPP_PRIVATE_HOST_RESOLVER_PRIVATE_H_
6 #define PPAPI_CPP_PRIVATE_HOST_RESOLVER_PRIVATE_H_
8 #include <string>
10 #include "ppapi/c/pp_stdint.h"
11 #include "ppapi/c/private/ppb_host_resolver_private.h"
12 #include "ppapi/cpp/resource.h"
13 #include "ppapi/cpp/var.h"
15 struct PP_NetAddress_Private;
17 namespace pp {
19 class CompletionCallback;
20 class InstanceHandle;
22 class HostResolverPrivate : public Resource {
23 public:
24 explicit HostResolverPrivate(const InstanceHandle& instance);
26 // Returns true if the required interface is available.
27 static bool IsAvailable();
29 int32_t Resolve(const std::string& host,
30 uint16_t port,
31 const PP_HostResolver_Private_Hint& hint,
32 const CompletionCallback& callback);
33 Var GetCanonicalName();
34 uint32_t GetSize();
35 bool GetNetAddress(uint32_t index, PP_NetAddress_Private* address);
38 } // namespace pp
40 #endif // PPAPI_CPP_PRIVATE_HOST_RESOLVER_PRIVATE_H_