Chromium Code Reviews| Index: content/browser/renderer_host/pepper/pepper_tcp_server_socket_message_filter.h |
| diff --git a/content/browser/renderer_host/pepper/pepper_tcp_server_socket_message_filter.h b/content/browser/renderer_host/pepper/pepper_tcp_server_socket_message_filter.h |
| index ad8cf19f2875c55951b4e46200c214da01ef8d32..c23c6186eaaccbb7ffc89150c2bac50574d6a306 100644 |
| --- a/content/browser/renderer_host/pepper/pepper_tcp_server_socket_message_filter.h |
| +++ b/content/browser/renderer_host/pepper/pepper_tcp_server_socket_message_filter.h |
| @@ -9,7 +9,6 @@ |
| #include "base/compiler_specific.h" |
| #include "base/memory/ref_counted.h" |
| #include "base/memory/scoped_ptr.h" |
| -#include "content/browser/renderer_host/pepper/pepper_message_filter.h" |
| #include "content/common/content_export.h" |
| #include "ppapi/c/pp_instance.h" |
| #include "ppapi/host/resource_message_filter.h" |
| @@ -24,15 +23,16 @@ class StreamSocket; |
| namespace content { |
| class BrowserPpapiHostImpl; |
| +class ContentBrowserPepperHostFactory; |
| class CONTENT_EXPORT PepperTCPServerSocketMessageFilter |
| : public ppapi::host::ResourceMessageFilter { |
| public: |
| PepperTCPServerSocketMessageFilter( |
| + ContentBrowserPepperHostFactory* factory, |
| BrowserPpapiHostImpl* host, |
| PP_Instance instance, |
| - bool private_api, |
| - const scoped_refptr<PepperMessageFilter>& pepper_message_filter); |
| + bool private_api); |
| static size_t GetNumInstances(); |
| @@ -58,8 +58,7 @@ class CONTENT_EXPORT PepperTCPServerSocketMessageFilter |
| int32_t OnMsgListen(const ppapi::host::HostMessageContext* context, |
| const PP_NetAddress_Private& addr, |
| int32_t backlog); |
| - int32_t OnMsgAccept(const ppapi::host::HostMessageContext* context, |
| - uint32 plugin_dispatcher_id); |
| + int32_t OnMsgAccept(const ppapi::host::HostMessageContext* context); |
| int32_t OnMsgStopListening(const ppapi::host::HostMessageContext* context); |
| void DoListen(const ppapi::host::ReplyMessageContext& context, |
| @@ -69,7 +68,6 @@ class CONTENT_EXPORT PepperTCPServerSocketMessageFilter |
| void OnListenCompleted(const ppapi::host::ReplyMessageContext& context, |
| int net_result); |
| void OnAcceptCompleted(const ppapi::host::ReplyMessageContext& context, |
| - uint32 plugin_dispatcher_id, |
| int net_result); |
| void SendListenReply(const ppapi::host::ReplyMessageContext& context, |
| @@ -79,17 +77,19 @@ class CONTENT_EXPORT PepperTCPServerSocketMessageFilter |
| int32_t pp_result); |
| void SendAcceptReply(const ppapi::host::ReplyMessageContext& context, |
| int32_t pp_result, |
| - uint32 accepted_socket_id, |
| + int pending_resource_id, |
| const PP_NetAddress_Private& local_addr, |
| const PP_NetAddress_Private& remote_addr); |
| void SendAcceptError(const ppapi::host::ReplyMessageContext& context, |
| int32_t pp_result); |
| // Following fields are initialized and used only on the IO thread. |
| + ContentBrowserPepperHostFactory* factory_; |
|
yzshen1
2013/08/16 20:40:42
Please mentioned that it is not owned by this clas
ygorshenin1
2013/08/19 14:33:35
Done.
|
| + PP_Instance instance_; |
| + |
| State state_; |
| scoped_ptr<net::ServerSocket> socket_; |
| scoped_ptr<net::StreamSocket> socket_buffer_; |
| - scoped_refptr<PepperMessageFilter> pepper_message_filter_; |
| // Following fields are initialized on the IO thread but used only |
| // on the UI thread. |