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

Unified Diff: content/browser/renderer_host/pepper_tcp_socket.cc

Issue 8804006: Reland 8688002: PPB_TCPSocket_Private/PPB_UDPSocket_Private are exposed to Browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed compilation for content_shell_lib Created 9 years 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/pepper_tcp_socket.cc
diff --git a/content/browser/renderer_host/pepper_tcp_socket.cc b/content/browser/renderer_host/pepper_tcp_socket.cc
index 925a0c9073a7b3738aa16a4034ec0bf5256ac2d2..8223f147e52f6f3b8563d2b3d10e05be27412b35 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);

Powered by Google App Engine
This is Rietveld 408576698