Home
last modified time | relevance | path

Searched refs:SocketPermissionRequest (Results 1 – 25 of 34) sorted by relevance

12

/external/chromium_org/chrome/common/extensions/permissions/
Dsocket_permission_data.cc22 using content::SocketPermissionRequest;
36 SocketPermissionRequest::OperationType StringToType(const std::string& s) { in StringToType()
38 return SocketPermissionRequest::TCP_CONNECT; in StringToType()
40 return SocketPermissionRequest::TCP_LISTEN; in StringToType()
42 return SocketPermissionRequest::UDP_BIND; in StringToType()
44 return SocketPermissionRequest::UDP_SEND_TO; in StringToType()
46 return SocketPermissionRequest::UDP_MULTICAST_MEMBERSHIP; in StringToType()
48 return SocketPermissionRequest::RESOLVE_HOST; in StringToType()
50 return SocketPermissionRequest::RESOLVE_PROXY; in StringToType()
52 return SocketPermissionRequest::NETWORK_STATE; in StringToType()
[all …]
Dsocket_permission_unittest.cc19 using content::SocketPermissionRequest;
132 SocketPermissionRequest::TCP_CONNECT, "www.example.com", 80)); in TEST()
135 SocketPermissionRequest::UDP_SEND_TO, "www.example.com", 80)); in TEST()
140 SocketPermissionRequest::UDP_SEND_TO, "www.example.com", 8800)); in TEST()
143 SocketPermissionRequest::UDP_SEND_TO, "smtp.example.com", 8800)); in TEST()
146 SocketPermissionRequest::TCP_CONNECT, "www.example.com", 80)); in TEST()
151 SocketPermissionRequest::UDP_SEND_TO, "www.example.com", 8800)); in TEST()
154 SocketPermissionRequest::UDP_SEND_TO, "smtp.example.com", 8800)); in TEST()
157 SocketPermissionRequest::UDP_SEND_TO, "SMTP.example.com", 8800)); in TEST()
160 SocketPermissionRequest::TCP_CONNECT, "www.example.com", 80)); in TEST()
[all …]
Dsocket_permission_entry.cc22 using content::SocketPermissionRequest;
43 : pattern_(SocketPermissionRequest::NONE, std::string(), kInvalidPort), in SocketPermissionEntry()
78 const content::SocketPermissionRequest& request) const { in Check()
123 return pattern_.type == SocketPermissionRequest::TCP_CONNECT || in IsAddressBoundType()
124 pattern_.type == SocketPermissionRequest::TCP_LISTEN || in IsAddressBoundType()
125 pattern_.type == SocketPermissionRequest::UDP_BIND || in IsAddressBoundType()
126 pattern_.type == SocketPermissionRequest::UDP_SEND_TO; in IsAddressBoundType()
131 SocketPermissionRequest::OperationType type, in ParseHostPattern()
141 SocketPermissionRequest::OperationType type, in ParseHostPattern()
147 if (type == SocketPermissionRequest::NONE) in ParseHostPattern()
Dsocket_permission_entry.h35 bool Check(const content::SocketPermissionRequest& request) const;
50 content::SocketPermissionRequest::OperationType type,
55 content::SocketPermissionRequest::OperationType type,
65 const content::SocketPermissionRequest& pattern() const { return pattern_; } in pattern()
74 content::SocketPermissionRequest pattern_;
Dsocket_permission.h20 CheckParam(content::SocketPermissionRequest::OperationType type, in CheckParam()
24 content::SocketPermissionRequest request;
Dsocket_permission.cc101 content::SocketPermissionRequest::NETWORK_STATE) { in AddNetworkListMessage()
/external/chromium_org/chrome/common/extensions/api/sockets/
Dsockets_manifest_permission_unittest.cc16 using content::SocketPermissionRequest;
65 CheckFormatEntry(SocketPermissionRequest::OperationType operation_type, in CheckFormatEntry()
85 SocketPermissionRequest::OperationType operation_type;
214 CheckFormatEntry(SocketPermissionRequest::UDP_SEND_TO, "*:*"))); in TEST()
217 CheckFormatEntry(SocketPermissionRequest::UDP_SEND_TO, "*:*"))); in TEST()
219 CheckFormatEntry(SocketPermissionRequest::UDP_SEND_TO, "a:80"), in TEST()
220 CheckFormatEntry(SocketPermissionRequest::UDP_SEND_TO, "b:10"))); in TEST()
223 CheckFormatEntry(SocketPermissionRequest::UDP_BIND, "*:*"))); in TEST()
226 CheckFormatEntry(SocketPermissionRequest::UDP_BIND, "*:*"))); in TEST()
228 CheckFormatEntry(SocketPermissionRequest::UDP_BIND, "a:80"), in TEST()
[all …]
Dsockets_manifest_permission.cc28 using content::SocketPermissionRequest;
34 content::SocketPermissionRequest::OperationType operation_type, in ParseHostPattern()
50 content::SocketPermissionRequest::OperationType operation_type, in ParseHostPatterns()
75 content::SocketPermissionRequest::OperationType operation_type) { in SetHostPatterns()
103 SocketPermissionRequest::UDP_BIND, in FromValue()
109 SocketPermissionRequest::UDP_SEND_TO, in FromValue()
115 SocketPermissionRequest::UDP_MULTICAST_MEMBERSHIP, in FromValue()
123 SocketPermissionRequest::TCP_CONNECT, in FromValue()
131 SocketPermissionRequest::TCP_LISTEN, in FromValue()
142 const SocketPermissionRequest& request) const { in CheckRequest()
[all …]
Dsockets_manifest_data.h15 struct SocketPermissionRequest;
36 const content::SocketPermissionRequest& request);
Dsockets_manifest_permission.h16 struct SocketPermissionRequest;
38 const content::SocketPermissionRequest& request) const;
Dsockets_manifest_data.cc30 const content::SocketPermissionRequest& request) { in CheckRequest()
/external/chromium_org/content/browser/renderer_host/pepper/
Dpepper_socket_utils.h27 SocketPermissionRequest CreateSocketPermissionRequest(
28 SocketPermissionRequest::OperationType type,
36 const SocketPermissionRequest* params,
43 const SocketPermissionRequest* params,
Dpepper_socket_utils.cc25 SocketPermissionRequest CreateSocketPermissionRequest( in CreateSocketPermissionRequest()
26 SocketPermissionRequest::OperationType type, in CreateSocketPermissionRequest()
35 return SocketPermissionRequest(type, host, port); in CreateSocketPermissionRequest()
40 const SocketPermissionRequest* params, in CanUseSocketAPIs()
54 const SocketPermissionRequest* params, in CanUseSocketAPIs()
Dpepper_network_monitor_host.cc26 SocketPermissionRequest request = SocketPermissionRequest( in CanUseNetworkMonitor()
27 SocketPermissionRequest::NETWORK_STATE, std::string(), 0); in CanUseNetworkMonitor()
Dpepper_udp_socket_message_filter.cc172 SocketPermissionRequest request = in OnMsgBind()
174 SocketPermissionRequest::UDP_BIND, addr); in OnMsgBind()
235 SocketPermissionRequest request = in OnMsgSendTo()
237 SocketPermissionRequest::UDP_SEND_TO, addr); in OnMsgSendTo()
Dpepper_network_proxy_host.cc82 SocketPermissionRequest request( in GetUIThreadDataOnUIThread()
83 content::SocketPermissionRequest::RESOLVE_PROXY, std::string(), 0); in GetUIThreadDataOnUIThread()
Dpepper_host_resolver_message_filter.cc128 SocketPermissionRequest request( in OnMsgResolve()
129 SocketPermissionRequest::RESOLVE_HOST, host_port.host, host_port.port); in OnMsgResolve()
Dpepper_tcp_socket_message_filter.cc209 SocketPermissionRequest request(SocketPermissionRequest::TCP_CONNECT, in OnMsgConnect()
239 content::SocketPermissionRequest request = in OnMsgConnectWithNetAddress()
241 content::SocketPermissionRequest::TCP_CONNECT, net_addr); in OnMsgConnectWithNetAddress()
379 content::SocketPermissionRequest request = in OnMsgListen()
381 content::SocketPermissionRequest::TCP_LISTEN, bind_input_addr_); in OnMsgListen()
Dpepper_tcp_server_socket_message_filter.cc106 SocketPermissionRequest request = in OnMsgListen()
108 content::SocketPermissionRequest::TCP_LISTEN, addr); in OnMsgListen()
/external/chromium_org/chrome/browser/extensions/api/sockets_udp/
Dsockets_udp_api.cc16 using content::SocketPermissionRequest;
194 content::SocketPermissionRequest param( in Work()
195 SocketPermissionRequest::UDP_BIND, in Work()
236 content::SocketPermissionRequest param( in AsyncWorkStart()
237 SocketPermissionRequest::UDP_SEND_TO, in AsyncWorkStart()
377 content::SocketPermissionRequest param( in Work()
378 SocketPermissionRequest::UDP_MULTICAST_MEMBERSHIP, in Work()
409 content::SocketPermissionRequest param( in Work()
410 SocketPermissionRequest::UDP_MULTICAST_MEMBERSHIP, in Work()
491 content::SocketPermissionRequest param( in Work()
[all …]
/external/chromium_org/content/public/common/
Dsocket_permission_request.h14 struct SocketPermissionRequest { struct
27 SocketPermissionRequest(OperationType type, in SocketPermissionRequest() argument
/external/chromium_org/chrome/browser/extensions/api/socket/
Dsocket_api.cc30 using content::SocketPermissionRequest;
206 SocketPermissionRequest::OperationType operation_type; in AsyncWorkStart()
209 operation_type = SocketPermissionRequest::TCP_CONNECT; in AsyncWorkStart()
212 operation_type = SocketPermissionRequest::UDP_SEND_TO; in AsyncWorkStart()
216 operation_type = SocketPermissionRequest::NONE; in AsyncWorkStart()
284 SocketPermissionRequest::UDP_BIND, address_, port_); in Work()
319 SocketPermissionRequest::TCP_LISTEN, params_->address, params_->port); in Work()
525 SocketPermission::CheckParam param(SocketPermissionRequest::UDP_SEND_TO, in AsyncWorkStart()
728 SocketPermissionRequest::UDP_MULTICAST_MEMBERSHIP, in Work()
773 SocketPermissionRequest::UDP_MULTICAST_MEMBERSHIP, in Work()
[all …]
/external/chromium_org/extensions/common/permissions/
Dpermissions_data_unittest.cc27 using content::SocketPermissionRequest;
38 SocketPermissionRequest::OperationType type, in CheckSocketPermission()
126 SocketPermissionRequest::TCP_CONNECT, "www.example.com", 80)); in TEST()
139 SocketPermissionRequest::TCP_CONNECT, "www.example.com", 80)); in TEST()
141 extension, SocketPermissionRequest::UDP_BIND, "", 80)); in TEST()
143 extension, SocketPermissionRequest::UDP_BIND, "", 8888)); in TEST()
146 extension, SocketPermissionRequest::UDP_SEND_TO, "example.com", 1900)); in TEST()
149 SocketPermissionRequest::UDP_SEND_TO, in TEST()
/external/chromium_org/chrome/browser/extensions/api/sockets_tcp_server/
Dsockets_tcp_server_api.cc15 using content::SocketPermissionRequest;
182 SocketPermissionRequest param( in Work()
183 SocketPermissionRequest::TCP_LISTEN, in Work()
/external/chromium_org/chrome/browser/extensions/api/sockets_tcp/
Dsockets_tcp_api.cc80 using content::SocketPermissionRequest;
262 content::SocketPermissionRequest param( in AsyncWorkStart()
263 SocketPermissionRequest::TCP_CONNECT, in AsyncWorkStart()

12