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 bool private_api, |
24 const SocketPermissionRequest& params, | 24 const SocketPermissionRequest& params, |
25 int render_process_id, | |
26 int render_view_id); | |
27 | |
28 bool CanUseSocketAPIs(bool external_plugin, | |
yzshen1
2013/07/19 23:51:58
I took a quick look at all callers, and it seems w
ygorshenin1
2013/07/29 14:03:57
I've added a TODO comment.
On 2013/07/19 23:51:58
| |
29 bool private_api, | |
30 const SocketPermissionRequest& params, | |
25 RenderViewHost* render_view_host); | 31 RenderViewHost* render_view_host); |
26 | 32 |
27 } // namespace pepper_socket_utils | 33 } // namespace pepper_socket_utils |
28 | 34 |
29 } // namespace content | 35 } // namespace content |
30 | 36 |
31 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_SOCKET_UTILS_H_ | 37 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_SOCKET_UTILS_H_ |
OLD | NEW |