| Index: webkit/plugins/ppapi/ppb_network_monitor_private_impl.h
 | 
| diff --git a/webkit/plugins/ppapi/ppb_network_monitor_private_impl.h b/webkit/plugins/ppapi/ppb_network_monitor_private_impl.h
 | 
| new file mode 100644
 | 
| index 0000000000000000000000000000000000000000..a6587375efb0eb8fe783a045a3d6d2cc3598d3a5
 | 
| --- /dev/null
 | 
| +++ b/webkit/plugins/ppapi/ppb_network_monitor_private_impl.h
 | 
| @@ -0,0 +1,57 @@
 | 
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
 | 
| +// Use of this source code is governed by a BSD-style license that can be
 | 
| +// found in the LICENSE file.
 | 
| +
 | 
| +#ifndef WEBKIT_PLUGINS_PPAPI_PPB_NETWORK_MONITOR_PRIVATE_IMPL_H_
 | 
| +#define WEBKIT_PLUGINS_PPAPI_PPB_NETWORK_MONITOR_PRIVATE_IMPL_H_
 | 
| +
 | 
| +#include <list>
 | 
| +#include <string>
 | 
| +
 | 
| +#include "base/basictypes.h"
 | 
| +#include "base/memory/scoped_ptr.h"
 | 
| +#include "ppapi/c/private/ppb_network_monitor_private.h"
 | 
| +#include "ppapi/shared_impl/resource.h"
 | 
| +#include "ppapi/thunk/ppb_network_monitor_private_api.h"
 | 
| +#include "webkit/glue/network_list_observer.h"
 | 
| +#include "webkit/plugins/ppapi/plugin_delegate.h"
 | 
| +
 | 
| +namespace webkit {
 | 
| +namespace ppapi {
 | 
| +
 | 
| +class PPB_NetworkMonitor_Private_Impl
 | 
| +    : public ::ppapi::Resource,
 | 
| +      public ::ppapi::thunk::PPB_NetworkMonitor_Private_API,
 | 
| +      public webkit_glue::NetworkListObserver {
 | 
| + public:
 | 
| +  static PP_Resource Create(PP_Instance instance,
 | 
| +                            PPB_NetworkMonitor_Callback callback,
 | 
| +                            void* user_data);
 | 
| +
 | 
| +  virtual ~PPB_NetworkMonitor_Private_Impl();
 | 
| +
 | 
| +  virtual ::ppapi::thunk::PPB_NetworkMonitor_Private_API*
 | 
| +      AsPPB_NetworkMonitor_Private_API() OVERRIDE;
 | 
| +
 | 
| +  // NetworkListObserver interface.
 | 
| +  virtual void OnNetworkListChanged(
 | 
| +      const net::NetworkInterfaceList& list) OVERRIDE;
 | 
| +
 | 
| + private:
 | 
| +  PPB_NetworkMonitor_Private_Impl(PP_Instance instance,
 | 
| +                                  PPB_NetworkMonitor_Callback callback,
 | 
| +                                  void* user_data);
 | 
| +
 | 
| +  bool Start();
 | 
| +
 | 
| +  PPB_NetworkMonitor_Callback callback_;
 | 
| +  void* user_data_;
 | 
| +  bool started_;
 | 
| +
 | 
| +  DISALLOW_COPY_AND_ASSIGN(PPB_NetworkMonitor_Private_Impl);
 | 
| +};
 | 
| +
 | 
| +}  // namespace ppapi
 | 
| +}  // namespace webkit
 | 
| +
 | 
| +#endif  // WEBKIT_PLUGINS_PPAPI_PPB_NETWORK_MONITOR_PRIVATE_IMPL_H_
 | 
| 
 |