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

Unified Diff: ppapi/c/private/ppb_flash.h

Issue 6578007: PPB_Flash cleanup part 1: move the net connector stuff to its own files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/ppapi/proxy
Patch Set: merged ToT Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/pepper_message_filter.cc ('k') | ppapi/c/private/ppb_flash_net_connector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/private/ppb_flash.h
diff --git a/ppapi/c/private/ppb_flash.h b/ppapi/c/private/ppb_flash.h
index 4825fe4d6f82f1de7c588523135b990aa9892f0c..c602278a9e5f2afeb36fa13b9ea192787b0fb7ec 100644
--- a/ppapi/c/private/ppb_flash.h
+++ b/ppapi/c/private/ppb_flash.h
@@ -10,15 +10,12 @@
#endif
#include "ppapi/c/pp_bool.h"
-#include "ppapi/c/pp_errors.h"
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_point.h"
#include "ppapi/c/pp_rect.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_var.h"
-// PPB_Flash -------------------------------------------------------------------
-
#define PPB_FLASH_INTERFACE "PPB_Flash;6"
#ifdef _WIN32
@@ -129,39 +126,4 @@ struct PPB_Flash {
void (*QuitMessageLoop)(PP_Instance instance);
};
-// PPB_Flash_NetConnector ------------------------------------------------------
-
-#define PPB_FLASH_NETCONNECTOR_INTERFACE "PPB_Flash_NetConnector;1"
-
-// This is an opaque type holding a network address.
-struct PP_Flash_NetAddress {
- size_t size;
- char data[128];
-};
-
-struct PPB_Flash_NetConnector {
- PP_Resource (*Create)(PP_Instance instance_id);
- PP_Bool (*IsFlashNetConnector)(PP_Resource resource_id);
-
- // Connect to a TCP port given as a host-port pair. The local and remote
- // addresses of the connection (if successful) are returned in
- // |local_addr_out| and |remote_addr_out|, respectively, if non-null.
- int32_t (*ConnectTcp)(PP_Resource connector_id,
- const char* host,
- uint16_t port,
- PP_FileHandle* socket_out,
- struct PP_Flash_NetAddress* local_addr_out,
- struct PP_Flash_NetAddress* remote_addr_out,
- struct PP_CompletionCallback callback);
-
- // Same as |ConnectTcp()|, but connecting to the address given by |addr|. A
- // typical use-case would be for reconnections.
- int32_t (*ConnectTcpAddress)(PP_Resource connector_id,
- const struct PP_Flash_NetAddress* addr,
- PP_FileHandle* socket_out,
- struct PP_Flash_NetAddress* local_addr_out,
- struct PP_Flash_NetAddress* remote_addr_out,
- struct PP_CompletionCallback callback);
-};
-
#endif // PPAPI_C_PRIVATE_PPB_FLASH_H_
« no previous file with comments | « content/browser/renderer_host/pepper_message_filter.cc ('k') | ppapi/c/private/ppb_flash_net_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698