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

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

Issue 9669038: Added out-of-process support for server sockets. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed codereview issues, sync. Created 8 years, 9 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
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/message_loop_proxy.h" 12 #include "base/message_loop_proxy.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/platform_file.h" 14 #include "base/platform_file.h"
15 #include "base/shared_memory.h" 15 #include "base/shared_memory.h"
16 #include "base/sync_socket.h" 16 #include "base/sync_socket.h"
17 #include "base/time.h" 17 #include "base/time.h"
18 #include "googleurl/src/gurl.h" 18 #include "googleurl/src/gurl.h"
19 #include "media/video/capture/video_capture.h" 19 #include "media/video/capture/video_capture.h"
20 #include "media/video/video_decode_accelerator.h" 20 #include "media/video/video_decode_accelerator.h"
21 #include "ppapi/c/dev/pp_video_dev.h" 21 #include "ppapi/c/dev/pp_video_dev.h"
22 #include "ppapi/c/dev/ppb_device_ref_dev.h" 22 #include "ppapi/c/dev/ppb_device_ref_dev.h"
23 #include "ppapi/c/pp_completion_callback.h" 23 #include "ppapi/c/pp_completion_callback.h"
24 #include "ppapi/c/pp_errors.h" 24 #include "ppapi/c/pp_errors.h"
25 #include "ppapi/c/pp_instance.h" 25 #include "ppapi/c/pp_instance.h"
26 #include "ppapi/c/pp_resource.h"
26 #include "ppapi/c/pp_stdint.h" 27 #include "ppapi/c/pp_stdint.h"
27 #include "ui/gfx/size.h" 28 #include "ui/gfx/size.h"
28 #include "webkit/fileapi/file_system_types.h" 29 #include "webkit/fileapi/file_system_types.h"
29 #include "webkit/glue/clipboard_client.h" 30 #include "webkit/glue/clipboard_client.h"
30 #include "webkit/plugins/ppapi/dir_contents.h" 31 #include "webkit/plugins/ppapi/dir_contents.h"
31 #include "webkit/quota/quota_types.h" 32 #include "webkit/quota/quota_types.h"
32 33
33 class GURL; 34 class GURL;
34 struct PP_NetAddress_Private; 35 struct PP_NetAddress_Private;
35 class SkBitmap; 36 class SkBitmap;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 namespace ppapi { 79 namespace ppapi {
79 80
80 class FileIO; 81 class FileIO;
81 class FullscreenContainer; 82 class FullscreenContainer;
82 class PepperFilePath; 83 class PepperFilePath;
83 class PluginInstance; 84 class PluginInstance;
84 class PluginModule; 85 class PluginModule;
85 class PPB_Broker_Impl; 86 class PPB_Broker_Impl;
86 class PPB_Flash_Menu_Impl; 87 class PPB_Flash_Menu_Impl;
87 class PPB_Flash_NetConnector_Impl; 88 class PPB_Flash_NetConnector_Impl;
88 class PPB_TCPServerSocket_Private_Impl;
89 class PPB_TCPSocket_Private_Impl; 89 class PPB_TCPSocket_Private_Impl;
90 class PPB_UDPSocket_Private_Impl; 90 class PPB_UDPSocket_Private_Impl;
91 91
92 // Virtual interface that the browser implements to implement features for 92 // Virtual interface that the browser implements to implement features for
93 // PPAPI plugins. 93 // PPAPI plugins.
94 class PluginDelegate { 94 class PluginDelegate {
95 public: 95 public:
96 // This interface is used for the PluginModule to tell the code in charge of 96 // This interface is used for the PluginModule to tell the code in charge of
97 // re-using modules which modules currently exist. 97 // re-using modules which modules currently exist.
98 // 98 //
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 virtual void UDPSocketBind(PPB_UDPSocket_Private_Impl* socket, 468 virtual void UDPSocketBind(PPB_UDPSocket_Private_Impl* socket,
469 uint32 socket_id, 469 uint32 socket_id,
470 const PP_NetAddress_Private& addr) = 0; 470 const PP_NetAddress_Private& addr) = 0;
471 virtual void UDPSocketRecvFrom(uint32 socket_id, int32_t num_bytes) = 0; 471 virtual void UDPSocketRecvFrom(uint32 socket_id, int32_t num_bytes) = 0;
472 virtual void UDPSocketSendTo(uint32 socket_id, 472 virtual void UDPSocketSendTo(uint32 socket_id,
473 const std::string& buffer, 473 const std::string& buffer,
474 const PP_NetAddress_Private& addr) = 0; 474 const PP_NetAddress_Private& addr) = 0;
475 virtual void UDPSocketClose(uint32 socket_id) = 0; 475 virtual void UDPSocketClose(uint32 socket_id) = 0;
476 476
477 // For PPB_TCPServerSocket_Private. 477 // For PPB_TCPServerSocket_Private.
478 virtual void TCPServerSocketListen(PPB_TCPServerSocket_Private_Impl* socket, 478 virtual void TCPServerSocketListen(PP_Resource socket_resource,
479 uint32 temp_socket_id,
480 const PP_NetAddress_Private& addr, 479 const PP_NetAddress_Private& addr,
481 int32_t backlog) = 0; 480 int32_t backlog) = 0;
482 virtual void TCPServerSocketAccept(uint32 real_socket_id) = 0; 481 virtual void TCPServerSocketAccept(uint32 server_socket_id) = 0;
483 virtual void TCPServerSocketStopListening(uint32 real_socket_id, 482 virtual void TCPServerSocketStopListening(
484 uint32 temp_socket_id) = 0; 483 PP_Resource socket_resource,
484 uint32 socket_id) = 0;
485 485
486 // Add/remove a network list observer. 486 // Add/remove a network list observer.
487 virtual bool AddNetworkListObserver( 487 virtual bool AddNetworkListObserver(
488 webkit_glue::NetworkListObserver* observer) = 0; 488 webkit_glue::NetworkListObserver* observer) = 0;
489 virtual void RemoveNetworkListObserver( 489 virtual void RemoveNetworkListObserver(
490 webkit_glue::NetworkListObserver* observer) = 0; 490 webkit_glue::NetworkListObserver* observer) = 0;
491 491
492 // Show the given context menu at the given position (in the plugin's 492 // Show the given context menu at the given position (in the plugin's
493 // coordinates). 493 // coordinates).
494 virtual int32_t ShowContextMenu( 494 virtual int32_t ShowContextMenu(
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 const EnumerateDevicesCallback& callback) = 0; 589 const EnumerateDevicesCallback& callback) = 0;
590 // Create a ClipboardClient for writing to the clipboard. The caller will own 590 // Create a ClipboardClient for writing to the clipboard. The caller will own
591 // the pointer to this. 591 // the pointer to this.
592 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; 592 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0;
593 }; 593 };
594 594
595 } // namespace ppapi 595 } // namespace ppapi
596 } // namespace webkit 596 } // namespace webkit
597 597
598 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 598 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698