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

Side by Side Diff: webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h

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 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_TCP_SOCKET_PRIVATE_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_TCP_SOCKET_PRIVATE_IMPL_H_
7
8 #include "ppapi/shared_impl/tcp_socket_impl.h"
9
10 namespace webkit {
11 namespace ppapi {
12
13 class PPB_TCPSocket_Private_Impl : public ::ppapi::TCPSocketImpl {
14 public:
15 static PP_Resource CreateResource(PP_Instance instance);
16
17 virtual void SendConnect(const std::string& host, uint16_t port);
yzshen1 2011/11/28 20:59:16 Please use OVERRIDE.
ygorshenin 2011/11/29 18:30:09 Done.
18 virtual void SendConnectWithNetAddress(const PP_NetAddress_Private& addr);
19 virtual void SendSSLHandshake(const std::string& server_name,
20 uint16_t server_port);
21 virtual void SendRead(int32_t bytes_to_read);
22 virtual void SendWrite(const std::string& buffer);
23 virtual void SendDisconnect();
24 virtual void PostAbort(PP_CompletionCallback callback);
25
26 private:
27 PPB_TCPSocket_Private_Impl(PP_Instance instance, uint32 socket_id);
28 virtual ~PPB_TCPSocket_Private_Impl();
yzshen1 2011/11/28 20:59:16 Is there any reason that we want to keep the destr
ygorshenin 2011/11/29 18:30:09 On 2011/11/28 20:59:16, yzshen1 wrote:> Why it nee
29
30 DISALLOW_COPY_AND_ASSIGN(PPB_TCPSocket_Private_Impl);
31 };
32
33 } // namespace ppapi
34 } // namespace webkit
35
36 #endif // WEBKIT_PLUGINS_PPAPI_PPB_TCP_SOCKET_PRIVATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698