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

Side by Side Diff: content/public/common/socket_permission_request.h

Issue 23819033: Simplify PPB_NetworkMonitor proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compilation after r169825 Created 7 years, 3 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
« no previous file with comments | « content/ppapi_plugin/ppapi_thread.cc ('k') | ppapi/ppapi_proxy.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_COMMON_SOCKET_PERMISSION_REQUEST_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_SOCKET_PERMISSION_REQUEST_H_
6 #define CONTENT_PUBLIC_COMMON_SOCKET_PERMISSION_REQUEST_H_ 6 #define CONTENT_PUBLIC_COMMON_SOCKET_PERMISSION_REQUEST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace content { 10 namespace content {
11 11
12 // This module provides helper types for checking socket permission. 12 // This module provides helper types for checking socket permission.
13 13
14 struct SocketPermissionRequest { 14 struct SocketPermissionRequest {
15 enum OperationType { 15 enum OperationType {
16 NONE = 0, 16 NONE = 0,
17 TCP_CONNECT, 17 TCP_CONNECT,
18 TCP_LISTEN, 18 TCP_LISTEN,
19 UDP_BIND, 19 UDP_BIND,
20 UDP_SEND_TO, 20 UDP_SEND_TO,
21 UDP_MULTICAST_MEMBERSHIP, 21 UDP_MULTICAST_MEMBERSHIP,
22 RESOLVE_HOST, 22 RESOLVE_HOST,
23 RESOLVE_PROXY 23 RESOLVE_PROXY,
24 NETWORK_STATE
24 }; 25 };
25 26
26 SocketPermissionRequest(OperationType type, 27 SocketPermissionRequest(OperationType type,
27 const std::string& host, 28 const std::string& host,
28 int port) 29 int port)
29 : type(type), 30 : type(type),
30 host(host), 31 host(host),
31 port(port) { 32 port(port) {
32 } 33 }
33 34
34 OperationType type; 35 OperationType type;
35 std::string host; 36 std::string host;
36 int port; 37 int port;
37 }; 38 };
38 39
39 } // namespace content 40 } // namespace content
40 41
41 #endif // CONTENT_PUBLIC_COMMON_SOCKET_PERMISSION_REQUEST_H_ 42 #endif // CONTENT_PUBLIC_COMMON_SOCKET_PERMISSION_REQUEST_H_
OLDNEW
« no previous file with comments | « content/ppapi_plugin/ppapi_thread.cc ('k') | ppapi/ppapi_proxy.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698