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_SHARED_IMPL_PPB_NETWORK_LIST_PRIVATE_SHARED_H_ | 5 #ifndef PPAPI_SHARED_IMPL_PPB_NETWORK_LIST_PRIVATE_SHARED_H_ |
6 #define PPAPI_SHARED_IMPL_PPB_NETWORK_LIST_PRIVATE_SHARED_H_ | 6 #define PPAPI_SHARED_IMPL_PPB_NETWORK_LIST_PRIVATE_SHARED_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "ppapi/c/private/ppb_net_address_private.h" |
13 #include "ppapi/shared_impl/resource.h" | 14 #include "ppapi/shared_impl/resource.h" |
14 #include "ppapi/thunk/ppb_network_list_api.h" | 15 #include "ppapi/thunk/ppb_network_list_api.h" |
15 | 16 |
16 namespace ppapi { | 17 namespace ppapi { |
17 | 18 |
18 struct PPAPI_SHARED_EXPORT NetworkInfo { | 19 struct PPAPI_SHARED_EXPORT NetworkInfo { |
19 NetworkInfo(); | 20 NetworkInfo(); |
20 ~NetworkInfo(); | 21 ~NetworkInfo(); |
21 | 22 |
22 std::string name; | 23 std::string name; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 virtual ::ppapi::thunk::PPB_NetworkList_API* | 62 virtual ::ppapi::thunk::PPB_NetworkList_API* |
62 AsPPB_NetworkList_API() OVERRIDE; | 63 AsPPB_NetworkList_API() OVERRIDE; |
63 | 64 |
64 // PPB_NetworkList_API implementation. | 65 // PPB_NetworkList_API implementation. |
65 virtual const NetworkList& GetNetworkListData() const OVERRIDE; | 66 virtual const NetworkList& GetNetworkListData() const OVERRIDE; |
66 virtual uint32_t GetCount() OVERRIDE; | 67 virtual uint32_t GetCount() OVERRIDE; |
67 virtual PP_Var GetName(uint32_t index) OVERRIDE; | 68 virtual PP_Var GetName(uint32_t index) OVERRIDE; |
68 virtual PP_NetworkListType_Private GetType(uint32_t index) OVERRIDE; | 69 virtual PP_NetworkListType_Private GetType(uint32_t index) OVERRIDE; |
69 virtual PP_NetworkListState_Private GetState(uint32_t index) OVERRIDE; | 70 virtual PP_NetworkListState_Private GetState(uint32_t index) OVERRIDE; |
70 virtual int32_t GetIpAddresses(uint32_t index, | 71 virtual int32_t GetIpAddresses(uint32_t index, |
71 PP_NetAddress_Private addresses[], | 72 const PP_ArrayOutput& output) OVERRIDE; |
72 uint32_t count) OVERRIDE; | |
73 virtual PP_Var GetDisplayName(uint32_t index) OVERRIDE; | 73 virtual PP_Var GetDisplayName(uint32_t index) OVERRIDE; |
74 virtual uint32_t GetMTU(uint32_t index) OVERRIDE; | 74 virtual uint32_t GetMTU(uint32_t index) OVERRIDE; |
75 | 75 |
76 private: | 76 private: |
77 PPB_NetworkList_Private_Shared(ResourceObjectType type, | 77 PPB_NetworkList_Private_Shared(ResourceObjectType type, |
78 PP_Instance instance, | 78 PP_Instance instance, |
79 const scoped_refptr<NetworkListStorage>& list); | 79 const scoped_refptr<NetworkListStorage>& list); |
80 | 80 |
81 scoped_refptr<NetworkListStorage> list_; | 81 scoped_refptr<NetworkListStorage> list_; |
82 | 82 |
83 DISALLOW_COPY_AND_ASSIGN(PPB_NetworkList_Private_Shared); | 83 DISALLOW_COPY_AND_ASSIGN(PPB_NetworkList_Private_Shared); |
84 }; | 84 }; |
85 | 85 |
86 } // namespace ppapi | 86 } // namespace ppapi |
87 | 87 |
88 #endif // PPAPI_SHARED_IMPL_PPB_NETWORK_LIST_PRIVATE_SHARED_H_ | 88 #endif // PPAPI_SHARED_IMPL_PPB_NETWORK_LIST_PRIVATE_SHARED_H_ |
OLD | NEW |