cc: Prevent TransformTree::CombineTransformsBetween from scaling by 1/0
[chromium-blink-merge.git] / ppapi / proxy / network_list_resource.h
blob005b752bec0d731d40c71bea84ba01ad049f58f6
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_PROXY_NETWORK_LIST_RESOURCE_H_
6 #define PPAPI_PROXY_NETWORK_LIST_RESOURCE_H_
8 #include <string>
9 #include <vector>
11 #include "base/basictypes.h"
12 #include "base/memory/ref_counted.h"
13 #include "ppapi/c/private/ppb_net_address_private.h"
14 #include "ppapi/proxy/ppapi_proxy_export.h"
15 #include "ppapi/proxy/serialized_structs.h"
16 #include "ppapi/shared_impl/resource.h"
17 #include "ppapi/thunk/ppb_network_list_api.h"
19 namespace ppapi {
20 namespace proxy {
22 class NetworkListResource
23 : public Resource,
24 public thunk::PPB_NetworkList_API {
25 public:
26 NetworkListResource(PP_Instance instance,
27 const SerializedNetworkList& list);
28 ~NetworkListResource() override;
30 // Resource override.
31 thunk::PPB_NetworkList_API* AsPPB_NetworkList_API() override;
33 // PPB_NetworkList_API implementation.
34 uint32_t GetCount() override;
35 PP_Var GetName(uint32_t index) override;
36 PP_NetworkList_Type GetType(uint32_t index) override;
37 PP_NetworkList_State GetState(uint32_t index) override;
38 int32_t GetIpAddresses(uint32_t index, const PP_ArrayOutput& output) override;
39 PP_Var GetDisplayName(uint32_t index) override;
40 uint32_t GetMTU(uint32_t index) override;
42 private:
43 SerializedNetworkList list_;
45 DISALLOW_COPY_AND_ASSIGN(NetworkListResource);
48 } // namespace proxy
49 } // namespace ppapi
51 #endif // PPAPI_PROXY_NETWORK_LIST_RESOURCE_H_