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

Side by Side Diff: content/renderer/pepper/ppb_tcp_socket_private_impl.h

Issue 21192002: Remove more methods from PluginDelegate. Some I moved the implementationto the callers. For others,… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_PEPPER_PPB_TCP_SOCKET_PRIVATE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PPB_TCP_SOCKET_PRIVATE_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PPB_TCP_SOCKET_PRIVATE_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PPB_TCP_SOCKET_PRIVATE_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "ppapi/shared_impl/private/tcp_socket_private_impl.h" 11 #include "ppapi/shared_impl/private/tcp_socket_private_impl.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 class PluginDelegate; 15 class PepperPluginDelegateImpl;
16 16
17 class PPB_TCPSocket_Private_Impl : public ::ppapi::TCPSocketPrivateImpl { 17 class PPB_TCPSocket_Private_Impl : public ::ppapi::TCPSocketPrivateImpl {
18 public: 18 public:
19 static PP_Resource CreateResource(PP_Instance instance); 19 static PP_Resource CreateResource(PP_Instance instance);
20 static PP_Resource CreateConnectedSocket( 20 static PP_Resource CreateConnectedSocket(
21 PP_Instance instance, 21 PP_Instance instance,
22 uint32 socket_id, 22 uint32 socket_id,
23 const PP_NetAddress_Private& local_addr, 23 const PP_NetAddress_Private& local_addr,
24 const PP_NetAddress_Private& remote_addr); 24 const PP_NetAddress_Private& remote_addr);
25 25
26 virtual void SendConnect(const std::string& host, uint16_t port) OVERRIDE; 26 virtual void SendConnect(const std::string& host, uint16_t port) OVERRIDE;
27 virtual void SendConnectWithNetAddress( 27 virtual void SendConnectWithNetAddress(
28 const PP_NetAddress_Private& addr) OVERRIDE; 28 const PP_NetAddress_Private& addr) OVERRIDE;
29 virtual void SendSSLHandshake( 29 virtual void SendSSLHandshake(
30 const std::string& server_name, 30 const std::string& server_name,
31 uint16_t server_port, 31 uint16_t server_port,
32 const std::vector<std::vector<char> >& trusted_certs, 32 const std::vector<std::vector<char> >& trusted_certs,
33 const std::vector<std::vector<char> >& untrusted_certs) OVERRIDE; 33 const std::vector<std::vector<char> >& untrusted_certs) OVERRIDE;
34 virtual void SendRead(int32_t bytes_to_read) OVERRIDE; 34 virtual void SendRead(int32_t bytes_to_read) OVERRIDE;
35 virtual void SendWrite(const std::string& buffer) OVERRIDE; 35 virtual void SendWrite(const std::string& buffer) OVERRIDE;
36 virtual void SendDisconnect() OVERRIDE; 36 virtual void SendDisconnect() OVERRIDE;
37 virtual void SendSetOption(PP_TCPSocket_Option name, 37 virtual void SendSetOption(PP_TCPSocket_Option name,
38 const ::ppapi::SocketOptionData& value) OVERRIDE; 38 const ::ppapi::SocketOptionData& value) OVERRIDE;
39 39
40 private: 40 private:
41 PPB_TCPSocket_Private_Impl(PP_Instance instance, uint32 socket_id); 41 PPB_TCPSocket_Private_Impl(PP_Instance instance, uint32 socket_id);
42 virtual ~PPB_TCPSocket_Private_Impl(); 42 virtual ~PPB_TCPSocket_Private_Impl();
43 43
44 static PluginDelegate* GetPluginDelegate(PP_Instance instance); 44 static PepperPluginDelegateImpl* GetPluginDelegate(PP_Instance instance);
45 45
46 DISALLOW_COPY_AND_ASSIGN(PPB_TCPSocket_Private_Impl); 46 DISALLOW_COPY_AND_ASSIGN(PPB_TCPSocket_Private_Impl);
47 }; 47 };
48 48
49 } // namespace content 49 } // namespace content
50 50
51 #endif // CONTENT_RENDERER_PEPPER_PPB_TCP_SOCKET_PRIVATE_IMPL_H_ 51 #endif // CONTENT_RENDERER_PEPPER_PPB_TCP_SOCKET_PRIVATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698