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

Side by Side Diff: content/browser/renderer_host/pepper/pepper_socket_utils.h

Issue 17029002: Change the permission check for Pepper socket API to support both the public and private APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698