OLD | NEW |
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 WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
7 | 7 |
8 #include "webkit/plugins/ppapi/plugin_delegate.h" | 8 #include "webkit/plugins/ppapi/plugin_delegate.h" |
9 | 9 |
10 struct PP_NetAddress_Private; | 10 struct PP_NetAddress_Private; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 virtual void TCPSocketSSLHandshake( | 126 virtual void TCPSocketSSLHandshake( |
127 uint32 socket_id, | 127 uint32 socket_id, |
128 const std::string& server_name, | 128 const std::string& server_name, |
129 uint16_t server_port, | 129 uint16_t server_port, |
130 const std::vector<std::vector<char> >& trusted_certs, | 130 const std::vector<std::vector<char> >& trusted_certs, |
131 const std::vector<std::vector<char> >& untrusted_certs); | 131 const std::vector<std::vector<char> >& untrusted_certs); |
132 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read); | 132 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read); |
133 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer); | 133 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer); |
134 virtual void TCPSocketDisconnect(uint32 socket_id); | 134 virtual void TCPSocketDisconnect(uint32 socket_id); |
135 virtual void TCPSocketSetOption(uint32 socket_id, | 135 virtual void TCPSocketSetOption(uint32 socket_id, |
136 PP_TCPSocket_Option_Dev name, | 136 PP_TCPSocket_Option name, |
137 const ::ppapi::SocketOptionData& value); | 137 const ::ppapi::SocketOptionData& value); |
138 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket, | 138 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket, |
139 uint32 socket_id); | 139 uint32 socket_id); |
140 virtual void TCPServerSocketListen(PP_Resource socket_resource, | 140 virtual void TCPServerSocketListen(PP_Resource socket_resource, |
141 const PP_NetAddress_Private& addr, | 141 const PP_NetAddress_Private& addr, |
142 int32_t backlog); | 142 int32_t backlog); |
143 virtual void TCPServerSocketAccept(uint32 server_socket_id); | 143 virtual void TCPServerSocketAccept(uint32 server_socket_id); |
144 virtual void TCPServerSocketStopListening(PP_Resource socket_resource, | 144 virtual void TCPServerSocketStopListening(PP_Resource socket_resource, |
145 uint32 socket_id); | 145 uint32 socket_id); |
146 // Add/remove a network list observer. | 146 // Add/remove a network list observer. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 bool should_close_source) const; | 181 bool should_close_source) const; |
182 virtual bool IsRunningInProcess(PP_Instance instance) const; | 182 virtual bool IsRunningInProcess(PP_Instance instance) const; |
183 virtual void HandleDocumentLoad(PluginInstance* instance, | 183 virtual void HandleDocumentLoad(PluginInstance* instance, |
184 const WebKit::WebURLResponse& response); | 184 const WebKit::WebURLResponse& response); |
185 }; | 185 }; |
186 | 186 |
187 } // namespace ppapi | 187 } // namespace ppapi |
188 } // namespace webkit | 188 } // namespace webkit |
189 | 189 |
190 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 190 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
OLD | NEW |