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

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: Deleted NaCl tests. 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..a48ffa51d4394cc6d560ac0548b60e6a8b0eddf3 100644
--- a/content/browser/renderer_host/pepper_message_filter.cc
+++ b/content/browser/renderer_host/pepper_message_filter.cc
@@ -22,7 +22,6 @@
#include "base/values.h"
#include "content/browser/font_list_async.h"
#include "content/browser/resource_context.h"
-#include "content/browser/renderer_host/render_process_host_impl.h"
#include "content/common/pepper_messages.h"
#include "content/public/browser/browser_thread.h"
#include "net/base/address_list.h"
@@ -45,6 +44,8 @@
#include "ppapi/proxy/ppapi_messages.h"
#include "ppapi/proxy/ppb_tcp_socket_private_proxy.h"
yzshen1 2011/11/28 20:59:16 you can probably remove this include.
ygorshenin 2011/11/29 18:30:09 Done.
#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"
yzshen1 2011/11/28 20:59:16 this is not needed, right?
ygorshenin 2011/11/29 18:30:09 "ppapi/shared_impl/udp_socket_impl.h" is not neede
#include "webkit/plugins/ppapi/ppb_flash_net_connector_impl.h"
#if defined(ENABLE_FLAPPER_HACKS)
@@ -399,9 +400,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 +420,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