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

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

Issue 19005006: Switched proxy for TCPServerSocketPrivate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync, fix. Created 7 years, 4 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 bool private_api,
24 const SocketPermissionRequest& params, 24 const SocketPermissionRequest& params,
25 int render_process_id,
26 int render_view_id);
27
28 // TODO (ygorshenin@): remove this method.
29 bool CanUseSocketAPIs(bool external_plugin,
30 bool private_api,
31 const SocketPermissionRequest& params,
25 RenderViewHost* render_view_host); 32 RenderViewHost* render_view_host);
26 33
27 } // namespace pepper_socket_utils 34 } // namespace pepper_socket_utils
28 35
29 } // namespace content 36 } // namespace content
30 37
31 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_SOCKET_UTILS_H_ 38 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_SOCKET_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698