OLD | NEW |
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 #include "webkit/plugins/ppapi/ppb_network_monitor_private_impl.h" | 5 #include "content/renderer/pepper/ppb_network_monitor_private_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "content/renderer/pepper/resource_helper.h" |
8 #include "ppapi/shared_impl/ppb_network_list_private_shared.h" | 9 #include "ppapi/shared_impl/ppb_network_list_private_shared.h" |
9 #include "ppapi/shared_impl/private/net_address_private_impl.h" | 10 #include "ppapi/shared_impl/private/net_address_private_impl.h" |
10 #include "net/base/ip_endpoint.h" | 11 #include "net/base/ip_endpoint.h" |
11 #include "net/base/net_util.h" | 12 #include "net/base/net_util.h" |
12 #include "webkit/plugins/ppapi/resource_helper.h" | |
13 | 13 |
14 namespace webkit { | 14 namespace webkit { |
15 namespace ppapi { | 15 namespace ppapi { |
16 | 16 |
17 PPB_NetworkMonitor_Private_Impl::PPB_NetworkMonitor_Private_Impl( | 17 PPB_NetworkMonitor_Private_Impl::PPB_NetworkMonitor_Private_Impl( |
18 PP_Instance instance, | 18 PP_Instance instance, |
19 PPB_NetworkMonitor_Callback callback, | 19 PPB_NetworkMonitor_Callback callback, |
20 void* user_data) | 20 void* user_data) |
21 : Resource(::ppapi::OBJECT_IS_IMPL, instance), | 21 : Resource(::ppapi::OBJECT_IS_IMPL, instance), |
22 callback_(callback), | 22 callback_(callback), |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 scoped_refptr< ::ppapi::NetworkListStorage> list_storage( | 80 scoped_refptr< ::ppapi::NetworkListStorage> list_storage( |
81 new ::ppapi::NetworkListStorage(list_copy)); | 81 new ::ppapi::NetworkListStorage(list_copy)); |
82 PP_Resource list_resource = | 82 PP_Resource list_resource = |
83 ::ppapi::PPB_NetworkList_Private_Shared::Create( | 83 ::ppapi::PPB_NetworkList_Private_Shared::Create( |
84 ::ppapi::OBJECT_IS_IMPL, pp_instance(), list_storage); | 84 ::ppapi::OBJECT_IS_IMPL, pp_instance(), list_storage); |
85 callback_(user_data_, list_resource); | 85 callback_(user_data_, list_resource); |
86 } | 86 } |
87 | 87 |
88 } // namespace ppapi | 88 } // namespace ppapi |
89 } // namespace webkit | 89 } // namespace webkit |
OLD | NEW |