Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / ppapi / proxy / host_resolver_resource.h
blobae6c524d3c509b6e96af3a6ce3a89316acf4ca8e
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
3 // found in the LICENSE file.
5 #ifndef PPAPI_PROXY_HOST_RESOLVER_RESOURCE_H_
6 #define PPAPI_PROXY_HOST_RESOLVER_RESOURCE_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ppapi/proxy/host_resolver_resource_base.h"
11 #include "ppapi/proxy/ppapi_proxy_export.h"
12 #include "ppapi/thunk/ppb_host_resolver_api.h"
14 namespace ppapi {
15 namespace proxy {
17 class PPAPI_PROXY_EXPORT HostResolverResource
18 : public HostResolverResourceBase,
19 public thunk::PPB_HostResolver_API {
20 public:
21 HostResolverResource(Connection connection, PP_Instance instance);
22 ~HostResolverResource() override;
24 // PluginResource overrides.
25 thunk::PPB_HostResolver_API* AsPPB_HostResolver_API() override;
27 // thunk::PPB_HostResolver_API implementation.
28 int32_t Resolve(const char* host,
29 uint16_t port,
30 const PP_HostResolver_Hint* hint,
31 scoped_refptr<TrackedCallback> callback) override;
32 PP_Var GetCanonicalName() override;
33 uint32_t GetNetAddressCount() override;
34 PP_Resource GetNetAddress(uint32_t index) override;
36 private:
37 DISALLOW_COPY_AND_ASSIGN(HostResolverResource);
40 } // namespace proxy
41 } // namespace ppapi
43 #endif // PPAPI_PROXY_HOST_RESOLVER_RESOURCE_H_