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