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

Side by Side Diff: content/renderer/pepper/ppb_tcp_server_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_SERVER_SOCKET_PRIVATE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PPB_TCP_SERVER_SOCKET_PRIVATE_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PPB_TCP_SERVER_SOCKET_PRIVATE_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PPB_TCP_SERVER_SOCKET_PRIVATE_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ppapi/shared_impl/private/ppb_tcp_server_socket_shared.h" 9 #include "ppapi/shared_impl/private/ppb_tcp_server_socket_shared.h"
10 10
11 namespace content { 11 namespace content {
12 class PepperPluginDelegateImpl;
12 13
13 class PPB_TCPServerSocket_Private_Impl 14 class PPB_TCPServerSocket_Private_Impl
14 : public ::ppapi::PPB_TCPServerSocket_Shared { 15 : public ::ppapi::PPB_TCPServerSocket_Shared {
15 public: 16 public:
16 static PP_Resource CreateResource(PP_Instance instance); 17 static PP_Resource CreateResource(PP_Instance instance);
17 18
18 virtual void OnAcceptCompleted( 19 virtual void OnAcceptCompleted(
19 bool succeeded, 20 bool succeeded,
20 uint32 accepted_socket_id, 21 uint32 accepted_socket_id,
21 const PP_NetAddress_Private& local_addr, 22 const PP_NetAddress_Private& local_addr,
22 const PP_NetAddress_Private& remote_addr) OVERRIDE; 23 const PP_NetAddress_Private& remote_addr) OVERRIDE;
23 24
24 virtual void SendListen(const PP_NetAddress_Private& addr, 25 virtual void SendListen(const PP_NetAddress_Private& addr,
25 int32_t backlog) OVERRIDE; 26 int32_t backlog) OVERRIDE;
26 virtual void SendAccept() OVERRIDE; 27 virtual void SendAccept() OVERRIDE;
27 virtual void SendStopListening() OVERRIDE; 28 virtual void SendStopListening() OVERRIDE;
28 29
29 private: 30 private:
30 PPB_TCPServerSocket_Private_Impl(PP_Instance instance); 31 PPB_TCPServerSocket_Private_Impl(PP_Instance instance);
31 virtual ~PPB_TCPServerSocket_Private_Impl(); 32 virtual ~PPB_TCPServerSocket_Private_Impl();
32 33
34 PepperPluginDelegateImpl* GetPluginDelegate();
35
33 DISALLOW_COPY_AND_ASSIGN(PPB_TCPServerSocket_Private_Impl); 36 DISALLOW_COPY_AND_ASSIGN(PPB_TCPServerSocket_Private_Impl);
34 }; 37 };
35 38
36 } // namespace content 39 } // namespace content
37 40
38 #endif // CONTENT_RENDERER_PEPPER_PPB_TCP_SERVER_SOCKET_PRIVATE_IMPL_H_ 41 #endif // CONTENT_RENDERER_PEPPER_PPB_TCP_SERVER_SOCKET_PRIVATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698