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

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

Issue 20777009: A few more cleanups to the pepper code. Dispatch IPCs in the sockets implementations directly by ha… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix browsertest Created 7 years, 4 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 "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
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
OLDNEW
« no previous file with comments | « content/renderer/pepper/ppb_image_data_impl.cc ('k') | content/renderer/pepper/ppb_scrollbar_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698