OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_SOCKET_UTILS_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_SOCKET_UTILS_H_ |
| 7 |
| 8 #include "content/public/common/process_type.h" |
| 9 #include "content/public/common/socket_permission_request.h" |
| 10 |
| 11 struct PP_NetAddress_Private; |
| 12 |
| 13 namespace content { |
| 14 |
| 15 class RenderViewHost; |
| 16 |
| 17 namespace pepper_socket_utils { |
| 18 |
| 19 SocketPermissionRequest CreateSocketPermissionRequest( |
| 20 SocketPermissionRequest::OperationType type, |
| 21 const PP_NetAddress_Private& net_addr); |
| 22 |
| 23 bool CanUseSocketAPIs(ProcessType plugin_process_type, |
| 24 const SocketPermissionRequest& params, |
| 25 RenderViewHost* render_view_host); |
| 26 |
| 27 } // namespace pepper_socket_utils |
| 28 |
| 29 } // namespace content |
| 30 |
| 31 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_SOCKET_UTILS_H_ |
OLD | NEW |