Chromium Code Reviews| 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_ |