summaryrefslogtreecommitdiffstats
path: root/content/browser/renderer_host/pepper_tcp_socket.cc
diff options
context:
space:
mode:
authordpolukhin@chromium.org <dpolukhin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-02 14:29:07 +0000
committerdpolukhin@chromium.org <dpolukhin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-02 14:29:07 +0000
commited966587d28db59eb131487bc097d0f4a19a47a4 (patch)
tree386b9f3f78c09af7a37529b3566416a13a7d2ba2 /content/browser/renderer_host/pepper_tcp_socket.cc
parent64576b675e4fc0e2d2eaa4b669df8685b0f7a476 (diff)
downloadchromium_src-ed966587d28db59eb131487bc097d0f4a19a47a4.zip
chromium_src-ed966587d28db59eb131487bc097d0f4a19a47a4.tar.gz
chromium_src-ed966587d28db59eb131487bc097d0f4a19a47a4.tar.bz2
Landing 8688002: PPB_TCPSocket_Private/PPB_UDPSocket_Private are exposed to Browser
Review URL: http://codereview.chromium.org/8688002 Patch from Yuri Gorshenin <ygorshenin@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112693 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host/pepper_tcp_socket.cc')
-rw-r--r--content/browser/renderer_host/pepper_tcp_socket.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/content/browser/renderer_host/pepper_tcp_socket.cc b/content/browser/renderer_host/pepper_tcp_socket.cc
index 925a0c9..8223f14 100644
--- a/content/browser/renderer_host/pepper_tcp_socket.cc
+++ b/content/browser/renderer_host/pepper_tcp_socket.cc
@@ -24,8 +24,8 @@
#include "net/socket/ssl_client_socket.h"
#include "net/socket/tcp_client_socket.h"
#include "ppapi/proxy/ppapi_messages.h"
-#include "ppapi/proxy/ppb_tcp_socket_private_proxy.h"
#include "ppapi/shared_impl/private/net_address_private_impl.h"
+#include "ppapi/shared_impl/private/tcp_socket_private_impl.h"
using content::BrowserThread;
using ppapi::NetAddressPrivateImpl;
@@ -137,9 +137,9 @@ void PepperTCPSocket::Read(int32 bytes_to_read) {
return;
}
- if (bytes_to_read > ppapi::proxy::kTCPSocketMaxReadSize) {
+ if (bytes_to_read > ppapi::TCPSocketPrivateImpl::kMaxReadSize) {
NOTREACHED();
- bytes_to_read = ppapi::proxy::kTCPSocketMaxReadSize;
+ bytes_to_read = ppapi::TCPSocketPrivateImpl::kMaxReadSize;
}
read_buffer_ = new net::IOBuffer(bytes_to_read);
@@ -157,9 +157,9 @@ void PepperTCPSocket::Write(const std::string& data) {
}
int data_size = data.size();
- if (data_size > ppapi::proxy::kTCPSocketMaxWriteSize) {
+ if (data_size > ppapi::TCPSocketPrivateImpl::kMaxWriteSize) {
NOTREACHED();
- data_size = ppapi::proxy::kTCPSocketMaxWriteSize;
+ data_size = ppapi::TCPSocketPrivateImpl::kMaxWriteSize;
}
write_buffer_ = new net::IOBuffer(data_size);