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

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

Issue 9699100: Add functionality to pppapi TCPSocket to support secure sockets in flash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 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_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 virtual uint32 TCPSocketCreate() OVERRIDE; 263 virtual uint32 TCPSocketCreate() OVERRIDE;
264 virtual void TCPSocketConnect( 264 virtual void TCPSocketConnect(
265 webkit::ppapi::PPB_TCPSocket_Private_Impl* socket, 265 webkit::ppapi::PPB_TCPSocket_Private_Impl* socket,
266 uint32 socket_id, 266 uint32 socket_id,
267 const std::string& host, 267 const std::string& host,
268 uint16_t port) OVERRIDE; 268 uint16_t port) OVERRIDE;
269 virtual void TCPSocketConnectWithNetAddress( 269 virtual void TCPSocketConnectWithNetAddress(
270 webkit::ppapi::PPB_TCPSocket_Private_Impl* socket, 270 webkit::ppapi::PPB_TCPSocket_Private_Impl* socket,
271 uint32 socket_id, 271 uint32 socket_id,
272 const PP_NetAddress_Private& addr) OVERRIDE; 272 const PP_NetAddress_Private& addr) OVERRIDE;
273 virtual void TCPSocketSSLHandshake(uint32 socket_id, 273 virtual void TCPSocketSSLHandshake(
274 const std::string& server_name, 274 uint32 socket_id,
275 uint16_t server_port) OVERRIDE; 275 const std::string& server_name,
276 uint16_t server_port,
277 const std::vector<std::vector<char> >& trusted_certs,
278 const std::vector<std::vector<char> >& untrusted_certs) OVERRIDE;
276 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) OVERRIDE; 279 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) OVERRIDE;
277 virtual void TCPSocketWrite(uint32 socket_id, 280 virtual void TCPSocketWrite(uint32 socket_id,
278 const std::string& buffer) OVERRIDE; 281 const std::string& buffer) OVERRIDE;
279 virtual void TCPSocketDisconnect(uint32 socket_id) OVERRIDE; 282 virtual void TCPSocketDisconnect(uint32 socket_id) OVERRIDE;
280 virtual void RegisterTCPSocket( 283 virtual void RegisterTCPSocket(
281 webkit::ppapi::PPB_TCPSocket_Private_Impl* socket, 284 webkit::ppapi::PPB_TCPSocket_Private_Impl* socket,
282 uint32 socket_id) OVERRIDE; 285 uint32 socket_id) OVERRIDE;
283 286
284 virtual uint32 UDPSocketCreate() OVERRIDE; 287 virtual uint32 UDPSocketCreate() OVERRIDE;
285 virtual void UDPSocketBind( 288 virtual void UDPSocketBind(
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 369
367 // RenderViewObserver implementation. 370 // RenderViewObserver implementation.
368 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 371 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
369 virtual void OnDestruct() OVERRIDE; 372 virtual void OnDestruct() OVERRIDE;
370 373
371 void OnTCPSocketConnectACK(uint32 plugin_dispatcher_id, 374 void OnTCPSocketConnectACK(uint32 plugin_dispatcher_id,
372 uint32 socket_id, 375 uint32 socket_id,
373 bool succeeded, 376 bool succeeded,
374 const PP_NetAddress_Private& local_addr, 377 const PP_NetAddress_Private& local_addr,
375 const PP_NetAddress_Private& remote_addr); 378 const PP_NetAddress_Private& remote_addr);
376 void OnTCPSocketSSLHandshakeACK(uint32 plugin_dispatcher_id, 379 void OnTCPSocketSSLHandshakeACK(
377 uint32 socket_id, 380 uint32 plugin_dispatcher_id,
378 bool succeeded); 381 uint32 socket_id,
382 bool succeeded,
383 const ppapi::PPB_X509Certificate_Fields& certificate_fields);
379 void OnTCPSocketReadACK(uint32 plugin_dispatcher_id, 384 void OnTCPSocketReadACK(uint32 plugin_dispatcher_id,
380 uint32 socket_id, 385 uint32 socket_id,
381 bool succeeded, 386 bool succeeded,
382 const std::string& data); 387 const std::string& data);
383 void OnTCPSocketWriteACK(uint32 plugin_dispatcher_id, 388 void OnTCPSocketWriteACK(uint32 plugin_dispatcher_id,
384 uint32 socket_id, 389 uint32 socket_id,
385 bool succeeded, 390 bool succeeded,
386 int32_t bytes_written); 391 int32_t bytes_written);
387 void OnUDPSocketBindACK(uint32 plugin_dispatcher_id, 392 void OnUDPSocketBindACK(uint32 plugin_dispatcher_id,
388 uint32 socket_id, 393 uint32 socket_id,
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 493
489 scoped_ptr<PepperDeviceEnumerationEventHandler> 494 scoped_ptr<PepperDeviceEnumerationEventHandler>
490 device_enumeration_event_handler_; 495 device_enumeration_event_handler_;
491 496
492 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); 497 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl);
493 }; 498 };
494 499
495 } // namespace content 500 } // namespace content
496 501
497 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 502 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698