| Index: content/browser/renderer_host/pepper_message_filter.h
|
| diff --git a/content/browser/renderer_host/pepper_message_filter.h b/content/browser/renderer_host/pepper_message_filter.h
|
| index 8da6c92a6e478d45aaa347d39b4e50408a780156..2e8c90dee994cd96d593ddf0a66f634f74c49c23 100644
|
| --- a/content/browser/renderer_host/pepper_message_filter.h
|
| +++ b/content/browser/renderer_host/pepper_message_filter.h
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -18,10 +18,11 @@
|
| #include "content/public/browser/browser_message_filter.h"
|
| #include "net/base/ssl_config_service.h"
|
| #include "ppapi/c/pp_stdint.h"
|
| +#include "ppapi/c/private/ppb_net_address_private.h"
|
|
|
| +class PepperTCPServerSocket;
|
| class PepperTCPSocket;
|
| class PepperUDPSocket;
|
| -struct PP_NetAddress_Private;
|
|
|
| namespace content {
|
| class ResourceContext;
|
| @@ -31,6 +32,7 @@ namespace net {
|
| class AddressList;
|
| class CertVerifier;
|
| class HostResolver;
|
| +class StreamSocket;
|
| }
|
|
|
| // This class is used in two contexts, both supporting PPAPI plugins. The first
|
| @@ -116,6 +118,19 @@ class PepperMessageFilter : public content::BrowserMessageFilter {
|
| const PP_NetAddress_Private& addr);
|
| void OnUDPClose(uint32 socket_id);
|
|
|
| + void OnTCPServerInitialize(int32 routing_id, uint32 plugin_dispatcher_id);
|
| + void OnTCPServerListen(uint32 socket_id,
|
| + const PP_NetAddress_Private& addr,
|
| + int32_t backlog);
|
| + void OnTCPServerAccept(uint32 socket_id);
|
| + void OnTCPServerSocketAcceptComplete(int32 routing_id,
|
| + uint32 plugin_dispatcher_id,
|
| + uint32 tcp_server_socket_id,
|
| + net::StreamSocket* socket,
|
| + PP_NetAddress_Private local_addr,
|
| + PP_NetAddress_Private remote_addr);
|
| + void OnTCPServerStopListening(uint32 socket_id);
|
| +
|
| // Callback when the font list has been retrieved on a background thread.
|
| void GetFontFamiliesComplete(IPC::Message* reply_msg,
|
| scoped_refptr<content::FontListResult> result);
|
| @@ -143,6 +158,10 @@ class PepperMessageFilter : public content::BrowserMessageFilter {
|
| typedef std::map<uint32, linked_ptr<PepperUDPSocket> > UDPSocketMap;
|
| UDPSocketMap udp_sockets_;
|
|
|
| + typedef std::map<uint32,
|
| + linked_ptr<PepperTCPServerSocket> > TCPServerSocketMap;
|
| + TCPServerSocketMap tcp_server_sockets_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(PepperMessageFilter);
|
| };
|
|
|
|
|