Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Side by Side Diff: trunk/src/ppapi/proxy/network_list_resource.h

Issue 23463037: Revert 223482 "Simplify PPB_NetworkMonitor proxy." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « trunk/src/ppapi/proxy/interface_list.cc ('k') | trunk/src/ppapi/proxy/network_list_resource.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef PPAPI_PROXY_NETWORK_LIST_RESOURCE_H_
6 #define PPAPI_PROXY_NETWORK_LIST_RESOURCE_H_
7
8 #include <string>
9 #include <vector>
10
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"
18
19 namespace ppapi {
20 namespace proxy {
21
22 class NetworkListResource
23 : public Resource,
24 public thunk::PPB_NetworkList_API {
25 public:
26 NetworkListResource(PP_Instance instance,
27 const SerializedNetworkList& list);
28 virtual ~NetworkListResource();
29
30 // Resource override.
31 virtual thunk::PPB_NetworkList_API* AsPPB_NetworkList_API() OVERRIDE;
32
33 // PPB_NetworkList_API implementation.
34 virtual uint32_t GetCount() OVERRIDE;
35 virtual PP_Var GetName(uint32_t index) OVERRIDE;
36 virtual PP_NetworkListType_Private GetType(uint32_t index) OVERRIDE;
37 virtual PP_NetworkListState_Private GetState(uint32_t index) OVERRIDE;
38 virtual int32_t GetIpAddresses(uint32_t index,
39 const PP_ArrayOutput& output) OVERRIDE;
40 virtual PP_Var GetDisplayName(uint32_t index) OVERRIDE;
41 virtual uint32_t GetMTU(uint32_t index) OVERRIDE;
42
43 private:
44 SerializedNetworkList list_;
45
46 DISALLOW_COPY_AND_ASSIGN(NetworkListResource);
47 };
48
49 } // namespace proxy
50 } // namespace ppapi
51
52 #endif // PPAPI_PROXY_NETWORK_LIST_RESOURCE_H_
OLDNEW
« no previous file with comments | « trunk/src/ppapi/proxy/interface_list.cc ('k') | trunk/src/ppapi/proxy/network_list_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698