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

Unified Diff: content/browser/renderer_host/pepper/pepper_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: Sync. 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_utils.h
diff --git a/content/browser/renderer_host/pepper/pepper_utils.h b/content/browser/renderer_host/pepper/pepper_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..f203d24cf154c66211347d1a406f930f8b933c19
--- /dev/null
+++ b/content/browser/renderer_host/pepper/pepper_utils.h
@@ -0,0 +1,30 @@
+// 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_UTILS_H_
+#define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_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;
+
+class PepperUtils {
dmichael (off chromium) 2012/12/12 23:23:38 This is a pretty generic class name for something
ygorshenin1 2012/12/18 12:07:16 Done.
+ public:
+ static SocketPermissionRequest CreateSocketPermissionRequest(
+ SocketPermissionRequest::OperationType type,
+ const PP_NetAddress_Private& net_addr);
+
+ static bool CanUseSocketAPIs(ProcessType plugin_process_type,
+ const SocketPermissionRequest& params,
+ RenderViewHost* render_view_host);
+};
dmichael (off chromium) 2012/12/12 23:23:38 If you do need this class, make sure to declare (b
ygorshenin1 2012/12/18 12:07:16 Done.
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698