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

Side by Side Diff: content/renderer/pepper/ppb_network_monitor_private_impl.cc

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, 5 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
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
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
OLDNEW
« no previous file with comments | « content/renderer/pepper/ppb_network_monitor_private_impl.h ('k') | content/renderer/pepper/ppb_proxy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698