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

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: Rebase. 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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 const PP_NetAddress_Private& addr) = 0; 536 const PP_NetAddress_Private& addr) = 0;
536 virtual void TCPSocketSSLHandshake( 537 virtual void TCPSocketSSLHandshake(
537 uint32 socket_id, 538 uint32 socket_id,
538 const std::string& server_name, 539 const std::string& server_name,
539 uint16_t server_port, 540 uint16_t server_port,
540 const std::vector<std::vector<char> >& trusted_certs, 541 const std::vector<std::vector<char> >& trusted_certs,
541 const std::vector<std::vector<char> >& untrusted_certs) = 0; 542 const std::vector<std::vector<char> >& untrusted_certs) = 0;
542 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) = 0; 543 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) = 0;
543 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer) = 0; 544 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer) = 0;
544 virtual void TCPSocketDisconnect(uint32 socket_id) = 0; 545 virtual void TCPSocketDisconnect(uint32 socket_id) = 0;
546 virtual void TCPSocketSetBoolOption(uint32 socket_id,
547 PP_TCPSocketOption_Private name,
548 bool value) = 0;
545 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket, 549 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket,
546 uint32 socket_id) = 0; 550 uint32 socket_id) = 0;
547 551
548 // For PPB_TCPServerSocket_Private. 552 // For PPB_TCPServerSocket_Private.
549 virtual void TCPServerSocketListen(PP_Resource socket_resource, 553 virtual void TCPServerSocketListen(PP_Resource socket_resource,
550 const PP_NetAddress_Private& addr, 554 const PP_NetAddress_Private& addr,
551 int32_t backlog) = 0; 555 int32_t backlog) = 0;
552 virtual void TCPServerSocketAccept(uint32 server_socket_id) = 0; 556 virtual void TCPServerSocketAccept(uint32 server_socket_id) = 0;
553 virtual void TCPServerSocketStopListening( 557 virtual void TCPServerSocketStopListening(
554 PP_Resource socket_resource, 558 PP_Resource socket_resource,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 const EnumerateDevicesCallback& callback) = 0; 649 const EnumerateDevicesCallback& callback) = 0;
646 // Stop enumerating devices of the specified |request_id|. The |request_id| 650 // Stop enumerating devices of the specified |request_id|. The |request_id|
647 // is the return value of EnumerateDevicesCallback. 651 // is the return value of EnumerateDevicesCallback.
648 virtual void StopEnumerateDevices(int request_id) = 0; 652 virtual void StopEnumerateDevices(int request_id) = 0;
649 }; 653 };
650 654
651 } // namespace ppapi 655 } // namespace ppapi
652 } // namespace webkit 656 } // namespace webkit
653 657
654 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 658 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.cc ('k') | webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698