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

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

Issue 9669038: Added out-of-process support for server sockets. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: PPB_TCPServerSocket_Private_Proxy constructor from Dispatcher* marked as explicit. Created 8 years, 9 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
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/pepper_plugin_delegate_impl.h" 5 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 10
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 int32_t backlog) { 1064 int32_t backlog) {
1065 uninitialized_tcp_server_sockets_.AddWithID(socket, temp_socket_id); 1065 uninitialized_tcp_server_sockets_.AddWithID(socket, temp_socket_id);
1066 render_view_->Send( 1066 render_view_->Send(
1067 new PpapiHostMsg_PPBTCPServerSocket_Listen( 1067 new PpapiHostMsg_PPBTCPServerSocket_Listen(
1068 render_view_->routing_id(), 0, temp_socket_id, addr, backlog)); 1068 render_view_->routing_id(), 0, temp_socket_id, addr, backlog));
1069 } 1069 }
1070 1070
1071 void PepperPluginDelegateImpl::TCPServerSocketAccept(uint32 real_socket_id) { 1071 void PepperPluginDelegateImpl::TCPServerSocketAccept(uint32 real_socket_id) {
1072 DCHECK(tcp_server_sockets_.Lookup(real_socket_id)); 1072 DCHECK(tcp_server_sockets_.Lookup(real_socket_id));
1073 render_view_->Send(new PpapiHostMsg_PPBTCPServerSocket_Accept( 1073 render_view_->Send(new PpapiHostMsg_PPBTCPServerSocket_Accept(
1074 real_socket_id)); 1074 render_view_->routing_id(), real_socket_id));
1075 } 1075 }
1076 1076
1077 void PepperPluginDelegateImpl::TCPServerSocketStopListening( 1077 void PepperPluginDelegateImpl::TCPServerSocketStopListening(
1078 uint32 real_socket_id, 1078 uint32 real_socket_id,
1079 uint32 temp_socket_id) { 1079 uint32 temp_socket_id) {
1080 if (real_socket_id == 0) { 1080 if (real_socket_id == 0) {
1081 if (uninitialized_tcp_server_sockets_.Lookup(temp_socket_id)) { 1081 if (uninitialized_tcp_server_sockets_.Lookup(temp_socket_id)) {
1082 // Pending Listen request. 1082 // Pending Listen request.
1083 uninitialized_tcp_server_sockets_.Remove(temp_socket_id); 1083 uninitialized_tcp_server_sockets_.Remove(temp_socket_id);
1084 } 1084 }
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1556 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target); 1556 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target);
1557 delete target; 1557 delete target;
1558 mouse_lock_instances_.erase(it); 1558 mouse_lock_instances_.erase(it);
1559 } 1559 }
1560 } 1560 }
1561 1561
1562 webkit_glue::ClipboardClient* 1562 webkit_glue::ClipboardClient*
1563 PepperPluginDelegateImpl::CreateClipboardClient() const { 1563 PepperPluginDelegateImpl::CreateClipboardClient() const {
1564 return new RendererClipboardClient; 1564 return new RendererClipboardClient;
1565 } 1565 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698