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

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

Issue 8688002: PPB_TCPSocket_Private/PPB_UDPSocket_Private are exposed to Browser (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month 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_message_filter.cc
diff --git a/content/browser/renderer_host/pepper_message_filter.cc b/content/browser/renderer_host/pepper_message_filter.cc
index 4aa1c4728d707140bbcc3e8c6d4a46a4c3e0bc30..80fa5264adf662afa2fe9af04b60d4d822066dc7 100644
--- a/content/browser/renderer_host/pepper_message_filter.cc
+++ b/content/browser/renderer_host/pepper_message_filter.cc
@@ -45,6 +45,8 @@
#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/tcp_socket_impl.h"
+#include "ppapi/shared_impl/udp_socket_impl.h"
#include "webkit/plugins/ppapi/ppb_flash_net_connector_impl.h"
#if defined(ENABLE_FLAPPER_HACKS)
@@ -399,9 +401,9 @@ void PepperMessageFilter::TCPSocket::Read(int32 bytes_to_read) {
return;
}
- if (bytes_to_read > ppapi::proxy::kTCPSocketMaxReadSize) {
+ if (bytes_to_read > ppapi::TCPSocketImpl::kMaxReadSize) {
NOTREACHED();
- bytes_to_read = ppapi::proxy::kTCPSocketMaxReadSize;
+ bytes_to_read = ppapi::TCPSocketImpl::kMaxReadSize;
}
read_buffer_ = new net::IOBuffer(bytes_to_read);
@@ -419,9 +421,9 @@ void PepperMessageFilter::TCPSocket::Write(const std::string& data) {
}
int data_size = data.size();
- if (data_size > ppapi::proxy::kTCPSocketMaxWriteSize) {
+ if (data_size > ppapi::TCPSocketImpl::kMaxWriteSize) {
NOTREACHED();
- data_size = ppapi::proxy::kTCPSocketMaxWriteSize;
+ data_size = ppapi::TCPSocketImpl::kMaxWriteSize;
}
write_buffer_ = new net::IOBuffer(data_size);

Powered by Google App Engine
This is Rietveld 408576698