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.
5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_NETWORK_MONITOR_PRIVATE_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_NETWORK_MONITOR_PRIVATE_IMPL_H_
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"
19 class PPB_NetworkMonitor_Private_Impl
20 : public ::ppapi::Resource
,
21 public ::ppapi::thunk::PPB_NetworkMonitor_Private_API
,
22 public webkit_glue::NetworkListObserver
{
24 static PP_Resource
Create(PP_Instance instance
,
25 PPB_NetworkMonitor_Callback callback
,
28 virtual ~PPB_NetworkMonitor_Private_Impl();
30 virtual ::ppapi::thunk::PPB_NetworkMonitor_Private_API
*
31 AsPPB_NetworkMonitor_Private_API() OVERRIDE
;
33 // NetworkListObserver interface.
34 virtual void OnNetworkListChanged(
35 const net::NetworkInterfaceList
& list
) OVERRIDE
;
38 PPB_NetworkMonitor_Private_Impl(PP_Instance instance
,
39 PPB_NetworkMonitor_Callback callback
,
44 PPB_NetworkMonitor_Callback callback_
;
48 DISALLOW_COPY_AND_ASSIGN(PPB_NetworkMonitor_Private_Impl
);
54 #endif // WEBKIT_PLUGINS_PPAPI_PPB_NETWORK_MONITOR_PRIVATE_IMPL_H_