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 "content/renderer/pepper/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/p2p/socket_dispatcher.h" | 8 #include "content/renderer/p2p/socket_dispatcher.h" |
9 #include "content/renderer/pepper/resource_helper.h" | |
10 #include "content/renderer/render_thread_impl.h" | 9 #include "content/renderer/render_thread_impl.h" |
11 #include "ppapi/shared_impl/ppb_network_list_private_shared.h" | 10 #include "ppapi/shared_impl/ppb_network_list_private_shared.h" |
12 #include "ppapi/shared_impl/private/net_address_private_impl.h" | 11 #include "ppapi/shared_impl/private/net_address_private_impl.h" |
13 #include "net/base/ip_endpoint.h" | 12 #include "net/base/ip_endpoint.h" |
14 #include "net/base/net_util.h" | 13 #include "net/base/net_util.h" |
15 | 14 |
16 namespace content { | 15 namespace content { |
17 namespace { | 16 namespace { |
18 | 17 |
19 bool AddNetworkListObserver(NetworkListObserver* observer) { | 18 bool AddNetworkListObserver(NetworkListObserver* observer) { |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 } | 99 } |
101 scoped_refptr< ::ppapi::NetworkListStorage> list_storage( | 100 scoped_refptr< ::ppapi::NetworkListStorage> list_storage( |
102 new ::ppapi::NetworkListStorage(list_copy)); | 101 new ::ppapi::NetworkListStorage(list_copy)); |
103 PP_Resource list_resource = | 102 PP_Resource list_resource = |
104 ::ppapi::PPB_NetworkList_Private_Shared::Create( | 103 ::ppapi::PPB_NetworkList_Private_Shared::Create( |
105 ::ppapi::OBJECT_IS_IMPL, pp_instance(), list_storage); | 104 ::ppapi::OBJECT_IS_IMPL, pp_instance(), list_storage); |
106 callback_(user_data_, list_resource); | 105 callback_(user_data_, list_resource); |
107 } | 106 } |
108 | 107 |
109 } // namespace content | 108 } // namespace content |
OLD | NEW |