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

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

Issue 12220050: Provide a way to disable Nagle's algorithm on Pepper TCP sockets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Actually export v0.5 interface, and add thunk for it. Fix unit-test and add missing IsConnected che… Created 7 years, 10 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 WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/message_loop_proxy.h" 13 #include "base/message_loop_proxy.h"
14 #include "base/platform_file.h" 14 #include "base/platform_file.h"
15 #include "base/process.h" 15 #include "base/process.h"
16 #include "base/shared_memory.h" 16 #include "base/shared_memory.h"
17 #include "base/sync_socket.h" 17 #include "base/sync_socket.h"
18 #include "base/time.h" 18 #include "base/time.h"
19 #include "googleurl/src/gurl.h" 19 #include "googleurl/src/gurl.h"
20 #include "media/video/capture/video_capture.h" 20 #include "media/video/capture/video_capture.h"
21 #include "media/video/video_decode_accelerator.h" 21 #include "media/video/video_decode_accelerator.h"
22 #include "ppapi/c/dev/pp_video_dev.h" 22 #include "ppapi/c/dev/pp_video_dev.h"
23 #include "ppapi/c/dev/ppb_device_ref_dev.h" 23 #include "ppapi/c/dev/ppb_device_ref_dev.h"
24 #include "ppapi/c/pp_completion_callback.h" 24 #include "ppapi/c/pp_completion_callback.h"
25 #include "ppapi/c/pp_errors.h" 25 #include "ppapi/c/pp_errors.h"
26 #include "ppapi/c/pp_instance.h" 26 #include "ppapi/c/pp_instance.h"
27 #include "ppapi/c/pp_resource.h" 27 #include "ppapi/c/pp_resource.h"
28 #include "ppapi/c/pp_stdint.h" 28 #include "ppapi/c/pp_stdint.h"
29 #include "ppapi/c/private/ppb_flash.h" 29 #include "ppapi/c/private/ppb_flash.h"
30 #include "ppapi/c/private/ppb_tcp_socket_private.h"
30 #include "ppapi/c/private/ppb_udp_socket_private.h" 31 #include "ppapi/c/private/ppb_udp_socket_private.h"
31 #include "ppapi/shared_impl/dir_contents.h" 32 #include "ppapi/shared_impl/dir_contents.h"
32 #include "ui/gfx/size.h" 33 #include "ui/gfx/size.h"
33 #include "webkit/fileapi/file_system_types.h" 34 #include "webkit/fileapi/file_system_types.h"
34 #include "webkit/glue/clipboard_client.h" 35 #include "webkit/glue/clipboard_client.h"
35 #include "webkit/quota/quota_types.h" 36 #include "webkit/quota/quota_types.h"
36 37
37 class GURL; 38 class GURL;
38 class SkBitmap; 39 class SkBitmap;
39 class SkCanvas; 40 class SkCanvas;
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 const PP_NetAddress_Private& addr) = 0; 538 const PP_NetAddress_Private& addr) = 0;
538 virtual void TCPSocketSSLHandshake( 539 virtual void TCPSocketSSLHandshake(
539 uint32 socket_id, 540 uint32 socket_id,
540 const std::string& server_name, 541 const std::string& server_name,
541 uint16_t server_port, 542 uint16_t server_port,
542 const std::vector<std::vector<char> >& trusted_certs, 543 const std::vector<std::vector<char> >& trusted_certs,
543 const std::vector<std::vector<char> >& untrusted_certs) = 0; 544 const std::vector<std::vector<char> >& untrusted_certs) = 0;
544 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) = 0; 545 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) = 0;
545 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer) = 0; 546 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer) = 0;
546 virtual void TCPSocketDisconnect(uint32 socket_id) = 0; 547 virtual void TCPSocketDisconnect(uint32 socket_id) = 0;
548 virtual void TCPSocketSetBoolOption(uint32 socket_id,
549 PP_TCPSocketOption_Private name,
550 bool value) = 0;
547 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket, 551 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket,
548 uint32 socket_id) = 0; 552 uint32 socket_id) = 0;
549 553
550 // For PPB_TCPServerSocket_Private. 554 // For PPB_TCPServerSocket_Private.
551 virtual void TCPServerSocketListen(PP_Resource socket_resource, 555 virtual void TCPServerSocketListen(PP_Resource socket_resource,
552 const PP_NetAddress_Private& addr, 556 const PP_NetAddress_Private& addr,
553 int32_t backlog) = 0; 557 int32_t backlog) = 0;
554 virtual void TCPServerSocketAccept(uint32 server_socket_id) = 0; 558 virtual void TCPServerSocketAccept(uint32 server_socket_id) = 0;
555 virtual void TCPServerSocketStopListening( 559 virtual void TCPServerSocketStopListening(
556 PP_Resource socket_resource, 560 PP_Resource socket_resource,
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 const EnumerateDevicesCallback& callback) = 0; 661 const EnumerateDevicesCallback& callback) = 0;
658 // Stop enumerating devices of the specified |request_id|. The |request_id| 662 // Stop enumerating devices of the specified |request_id|. The |request_id|
659 // is the return value of EnumerateDevicesCallback. 663 // is the return value of EnumerateDevicesCallback.
660 virtual void StopEnumerateDevices(int request_id) = 0; 664 virtual void StopEnumerateDevices(int request_id) = 0;
661 }; 665 };
662 666
663 } // namespace ppapi 667 } // namespace ppapi
664 } // namespace webkit 668 } // namespace webkit
665 669
666 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 670 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698