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

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

Issue 20165002: Move webkit/plugins/ppapi to content/renderer/pepper. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: more more clang fun Created 7 years, 4 months 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 <vector>
9
10 #include "base/compiler_specific.h"
11 #include "ppapi/shared_impl/private/tcp_socket_private_impl.h"
12
13 namespace webkit {
14 namespace ppapi {
15
16 class PluginDelegate;
17
18 class PPB_TCPSocket_Private_Impl : public ::ppapi::TCPSocketPrivateImpl {
19 public:
20 static PP_Resource CreateResource(PP_Instance instance);
21 static PP_Resource CreateConnectedSocket(
22 PP_Instance instance,
23 uint32 socket_id,
24 const PP_NetAddress_Private& local_addr,
25 const PP_NetAddress_Private& remote_addr);
26
27 virtual void SendConnect(const std::string& host, uint16_t port) OVERRIDE;
28 virtual void SendConnectWithNetAddress(
29 const PP_NetAddress_Private& addr) OVERRIDE;
30 virtual void SendSSLHandshake(
31 const std::string& server_name,
32 uint16_t server_port,
33 const std::vector<std::vector<char> >& trusted_certs,
34 const std::vector<std::vector<char> >& untrusted_certs) OVERRIDE;
35 virtual void SendRead(int32_t bytes_to_read) OVERRIDE;
36 virtual void SendWrite(const std::string& buffer) OVERRIDE;
37 virtual void SendDisconnect() OVERRIDE;
38 virtual void SendSetOption(PP_TCPSocket_Option name,
39 const ::ppapi::SocketOptionData& value) OVERRIDE;
40
41 private:
42 PPB_TCPSocket_Private_Impl(PP_Instance instance, uint32 socket_id);
43 virtual ~PPB_TCPSocket_Private_Impl();
44
45 static PluginDelegate* GetPluginDelegate(PP_Instance instance);
46
47 DISALLOW_COPY_AND_ASSIGN(PPB_TCPSocket_Private_Impl);
48 };
49
50 } // namespace ppapi
51 } // namespace webkit
52
53 #endif // WEBKIT_PLUGINS_PPAPI_PPB_TCP_SOCKET_PRIVATE_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.cc ('k') | webkit/plugins/ppapi/ppb_tcp_socket_private_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698