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

Unified Diff: content/browser/renderer_host/pepper/pepper_socket_utils.h

Issue 1213203004: Make the Pepper TCP open the firewall on Cros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Added hole reset OnMsgStopListening. Created 5 years, 5 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 | « no previous file | content/browser/renderer_host/pepper/pepper_socket_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/pepper/pepper_socket_utils.h
diff --git a/content/browser/renderer_host/pepper/pepper_socket_utils.h b/content/browser/renderer_host/pepper/pepper_socket_utils.h
index e7bc1e3eb04102904db5ca5306c7e2f9dac14b85..6061cc349f4086df1f8bccec996b5979fe535edf 100644
--- a/content/browser/renderer_host/pepper/pepper_socket_utils.h
+++ b/content/browser/renderer_host/pepper/pepper_socket_utils.h
@@ -8,8 +8,20 @@
#include "content/public/common/socket_permission_request.h"
#include "ppapi/c/pp_stdint.h"
+#if defined(OS_CHROMEOS)
+#include "base/callback_forward.h"
+#include "base/memory/scoped_ptr.h"
+#include "net/base/ip_endpoint.h"
+#endif // defined(OS_CHROMEOS)
+
struct PP_NetAddress_Private;
+#if defined(OS_CHROMEOS)
+namespace chromeos {
+class FirewallHole;
+}
+#endif // defined(OS_CHROMEOS)
+
namespace net {
class X509Certificate;
}
@@ -46,6 +58,18 @@ bool GetCertificateFields(const char* der,
uint32_t length,
ppapi::PPB_X509Certificate_Fields* fields);
+#if defined(OS_CHROMEOS)
+typedef base::Callback<void(scoped_ptr<chromeos::FirewallHole>)>
+ FirewallHoleOpenCallback;
+
+// Returns true if the open operation is in progress.
+void OpenTCPFirewallHole(const net::IPEndPoint& address,
+ FirewallHoleOpenCallback callback);
+
+void OpenUDPFirewallHole(const net::IPEndPoint& address,
+ FirewallHoleOpenCallback callback);
+#endif // defined(OS_CHROMEOS)
+
} // namespace pepper_socket_utils
} // namespace content
« no previous file with comments | « no previous file | content/browser/renderer_host/pepper/pepper_socket_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698