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

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

Issue 11441012: PPB_UDPSocket_Private is switched to the new Pepper proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: PPB_UDPSocket_Shared is merged to UDPSocketPrivateResource. PepperUDPSocketPrivateShared is merged … Created 8 years 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: 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
new file mode 100644
index 0000000000000000000000000000000000000000..4e1b0fc05a5dfbab6fd68346e07acd4d06a6365e
--- /dev/null
+++ b/content/browser/renderer_host/pepper/pepper_socket_utils.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_SOCKET_UTILS_H_
+#define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_SOCKET_UTILS_H_
+
+#include "content/public/common/process_type.h"
+#include "content/public/common/socket_permission_request.h"
+
+struct PP_NetAddress_Private;
+
+namespace content {
+
+class RenderViewHost;
+
+namespace pepper_socket_utils {
+
+SocketPermissionRequest CreateSocketPermissionRequest(
+ SocketPermissionRequest::OperationType type,
+ const PP_NetAddress_Private& net_addr);
+
+bool CanUseSocketAPIs(ProcessType plugin_process_type,
+ const SocketPermissionRequest& params,
+ RenderViewHost* render_view_host);
+
+} // namespace pepper_socket_utils
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_SOCKET_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698