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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/browser_globals.cc

Issue 8555002: Added NaCl proxy for TCP/UDP (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added PPAPI NaCl tests. Created 9 years, 1 month 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
Index: ppapi/native_client/src/shared/ppapi_proxy/browser_globals.cc
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/browser_globals.cc b/ppapi/native_client/src/shared/ppapi_proxy/browser_globals.cc
index a0f62059602d4612062f2835538563b87970f94b..5b8ebfaa38c932fcc8cdd2b5f6688398d6e4219f 100644
--- a/ppapi/native_client/src/shared/ppapi_proxy/browser_globals.cc
+++ b/ppapi/native_client/src/shared/ppapi_proxy/browser_globals.cc
@@ -416,4 +416,18 @@ const PPB_PDF* PPBPDFInterface() {
return ppb;
}
+const PPB_TCPSocket_Private* PPBTCPSocketPrivateInterface() {
+ static const PPB_TCPSocket_Private* ppb =
+ static_cast<const PPB_TCPSocket_Private*>(
+ GetBrowserInterfaceSafe(PPB_TCPSOCKET_PRIVATE_INTERFACE));
+ return ppb;
+}
+
+const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() {
+ static const PPB_UDPSocket_Private* ppb =
+ static_cast<const PPB_UDPSocket_Private*>(
+ GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE));
+ return ppb;
+}
+
} // namespace ppapi_proxy

Powered by Google App Engine
This is Rietveld 408576698