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

Side by Side Diff: webkit/plugins/ppapi/ppb_network_monitor_private_impl.h

Issue 20165002: Move webkit/plugins/ppapi to content/renderer/pepper. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: more more clang fun Created 7 years, 4 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
OLDNEW
(Empty)
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.
4
5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_NETWORK_MONITOR_PRIVATE_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_NETWORK_MONITOR_PRIVATE_IMPL_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ppapi/c/private/ppb_network_monitor_private.h"
11 #include "ppapi/shared_impl/resource.h"
12 #include "ppapi/thunk/ppb_network_monitor_private_api.h"
13 #include "webkit/glue/network_list_observer.h"
14 #include "webkit/plugins/ppapi/plugin_delegate.h"
15
16 namespace webkit {
17 namespace ppapi {
18
19 class PPB_NetworkMonitor_Private_Impl
20 : public ::ppapi::Resource,
21 public ::ppapi::thunk::PPB_NetworkMonitor_Private_API,
22 public webkit_glue::NetworkListObserver {
23 public:
24 static PP_Resource Create(PP_Instance instance,
25 PPB_NetworkMonitor_Callback callback,
26 void* user_data);
27
28 virtual ~PPB_NetworkMonitor_Private_Impl();
29
30 virtual ::ppapi::thunk::PPB_NetworkMonitor_Private_API*
31 AsPPB_NetworkMonitor_Private_API() OVERRIDE;
32
33 // NetworkListObserver interface.
34 virtual void OnNetworkListChanged(
35 const net::NetworkInterfaceList& list) OVERRIDE;
36
37 private:
38 PPB_NetworkMonitor_Private_Impl(PP_Instance instance,
39 PPB_NetworkMonitor_Callback callback,
40 void* user_data);
41
42 bool Start();
43
44 PPB_NetworkMonitor_Callback callback_;
45 void* user_data_;
46 bool started_;
47
48 DISALLOW_COPY_AND_ASSIGN(PPB_NetworkMonitor_Private_Impl);
49 };
50
51 } // namespace ppapi
52 } // namespace webkit
53
54 #endif // WEBKIT_PLUGINS_PPAPI_PPB_NETWORK_MONITOR_PRIVATE_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_image_data_impl.cc ('k') | webkit/plugins/ppapi/ppb_network_monitor_private_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698