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

Side by Side Diff: ppapi/shared_impl/ppb_network_list_private_shared.h

Issue 9557006: Implement PPB_NetworkMonitor_Private Pepper interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | « ppapi/ppapi_sources.gypi ('k') | ppapi/tests/test_network_monitor_private.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "ppapi/shared_impl/resource.h" 12 #include "ppapi/shared_impl/resource.h"
13 #include "ppapi/thunk/ppb_network_list_private_api.h" 13 #include "ppapi/thunk/ppb_network_list_private_api.h"
14 14
15 namespace ppapi { 15 namespace ppapi {
16 16
17 class PPAPI_SHARED_EXPORT PPB_NetworkList_Private_Shared 17 class PPAPI_SHARED_EXPORT PPB_NetworkList_Private_Shared
18 : public ::ppapi::Resource, 18 : public ::ppapi::Resource,
19 public ::ppapi::thunk::PPB_NetworkList_Private_API { 19 public ::ppapi::thunk::PPB_NetworkList_Private_API {
20 public: 20 public:
21 struct NetworkInfo { 21 struct PPAPI_SHARED_EXPORT NetworkInfo {
22 NetworkInfo(); 22 NetworkInfo();
23 ~NetworkInfo(); 23 ~NetworkInfo();
24 24
25 std::string name; 25 std::string name;
26 PP_NetworkListType_Private type; 26 PP_NetworkListType_Private type;
27 PP_NetworkListState_Private state; 27 PP_NetworkListState_Private state;
28 std::vector<PP_NetAddress_Private> addresses; 28 std::vector<PP_NetAddress_Private> addresses;
29 std::string display_name; 29 std::string display_name;
30 int mtu; 30 int mtu;
31 }; 31 };
(...skipping 26 matching lines...) Expand all
58 scoped_ptr<NetworkList> list); 58 scoped_ptr<NetworkList> list);
59 59
60 scoped_ptr<NetworkList> list_; 60 scoped_ptr<NetworkList> list_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(PPB_NetworkList_Private_Shared); 62 DISALLOW_COPY_AND_ASSIGN(PPB_NetworkList_Private_Shared);
63 }; 63 };
64 64
65 } // namespace ppapi 65 } // namespace ppapi
66 66
67 #endif // PPAPI_SHARED_IMPL_PPB_NETWORK_LIST_PRIVATE_SHARED_H_ 67 #endif // PPAPI_SHARED_IMPL_PPB_NETWORK_LIST_PRIVATE_SHARED_H_
OLDNEW
« no previous file with comments | « ppapi/ppapi_sources.gypi ('k') | ppapi/tests/test_network_monitor_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698