OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_PROXY_NETWORK_LIST_RESOURCE_H_ | 5 #ifndef PPAPI_PROXY_NETWORK_LIST_RESOURCE_H_ |
6 #define PPAPI_PROXY_NETWORK_LIST_RESOURCE_H_ | 6 #define PPAPI_PROXY_NETWORK_LIST_RESOURCE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 class NetworkListResource | 22 class NetworkListResource |
23 : public Resource, | 23 : public Resource, |
24 public thunk::PPB_NetworkList_API { | 24 public thunk::PPB_NetworkList_API { |
25 public: | 25 public: |
26 NetworkListResource(PP_Instance instance, | 26 NetworkListResource(PP_Instance instance, |
27 const SerializedNetworkList& list); | 27 const SerializedNetworkList& list); |
28 virtual ~NetworkListResource(); | 28 virtual ~NetworkListResource(); |
29 | 29 |
30 // Resource override. | 30 // Resource override. |
31 virtual thunk::PPB_NetworkList_API* AsPPB_NetworkList_API() OVERRIDE; | 31 virtual thunk::PPB_NetworkList_API* AsPPB_NetworkList_API() override; |
32 | 32 |
33 // PPB_NetworkList_API implementation. | 33 // PPB_NetworkList_API implementation. |
34 virtual uint32_t GetCount() OVERRIDE; | 34 virtual uint32_t GetCount() override; |
35 virtual PP_Var GetName(uint32_t index) OVERRIDE; | 35 virtual PP_Var GetName(uint32_t index) override; |
36 virtual PP_NetworkList_Type GetType(uint32_t index) OVERRIDE; | 36 virtual PP_NetworkList_Type GetType(uint32_t index) override; |
37 virtual PP_NetworkList_State GetState(uint32_t index) OVERRIDE; | 37 virtual PP_NetworkList_State GetState(uint32_t index) override; |
38 virtual int32_t GetIpAddresses(uint32_t index, | 38 virtual int32_t GetIpAddresses(uint32_t index, |
39 const PP_ArrayOutput& output) OVERRIDE; | 39 const PP_ArrayOutput& output) override; |
40 virtual PP_Var GetDisplayName(uint32_t index) OVERRIDE; | 40 virtual PP_Var GetDisplayName(uint32_t index) override; |
41 virtual uint32_t GetMTU(uint32_t index) OVERRIDE; | 41 virtual uint32_t GetMTU(uint32_t index) override; |
42 | 42 |
43 private: | 43 private: |
44 SerializedNetworkList list_; | 44 SerializedNetworkList list_; |
45 | 45 |
46 DISALLOW_COPY_AND_ASSIGN(NetworkListResource); | 46 DISALLOW_COPY_AND_ASSIGN(NetworkListResource); |
47 }; | 47 }; |
48 | 48 |
49 } // namespace proxy | 49 } // namespace proxy |
50 } // namespace ppapi | 50 } // namespace ppapi |
51 | 51 |
52 #endif // PPAPI_PROXY_NETWORK_LIST_RESOURCE_H_ | 52 #endif // PPAPI_PROXY_NETWORK_LIST_RESOURCE_H_ |
OLD | NEW |