Searched defs:protocols (Results 1 - 25 of 61) sorted by relevance

123

/external/owasp/sanitizer/src/main/org/owasp/html/
H A DFilterUrlByProtocolAttributePolicy.java40 * URLs with protocols must match the protocol set passed to the constructor.
41 * URLs without protocols but which specify an origin different from the
59 private final ImmutableSet<String> protocols; field in class:FilterUrlByProtocolAttributePolicy
62 Iterable<? extends String> protocols) {
63 this.protocols = ImmutableSet.copyOf(protocols);
74 // or the protocols by which HTML is normally served are OK.
81 if (!protocols.contains(protocol)) { return null; }
89 return protocols.contains("http") && protocols
61 FilterUrlByProtocolAttributePolicy( Iterable<? extends String> protocols) argument
[all...]
/external/chromium_org/chromeos/dbus/
H A Dnfc_adapter_client.h43 // The NFC protocols that are supported by the adapter. Possible values
45 dbus::Property<std::vector<std::string> > protocols; member in struct:chromeos::NfcAdapterClient::Properties
H A Dfake_nfc_adapter_client.cc89 std::vector<std::string> protocols; local
90 protocols.push_back(nfc_common::kProtocolFelica);
91 protocols.push_back(nfc_common::kProtocolMifare);
92 protocols.push_back(nfc_common::kProtocolJewel);
93 protocols.push_back(nfc_common::kProtocolIsoDep);
94 protocols.push_back(nfc_common::kProtocolNfcDep);
100 properties_->protocols.ReplaceValue(protocols);
106 second_properties_->protocols.ReplaceValue(protocols);
[all...]
/external/chromium_org/ppapi/cpp/
H A Dwebsocket.cc35 int32_t WebSocket::Connect(const Var& url, const Var protocols[], argument
40 // Convert protocols to C interface.
45 c_protocols[i] = protocols[i].pp_var();
/external/chromium_org/ppapi/proxy/
H A Dwebsocket_resource_unittest.cc65 PP_Var protocols[] = { MakeStringVar(protocol0), MakeStringVar(protocol1) }; local
69 int32_t result = websocket_iface->Connect(res.get(), url_var, protocols, 2,
H A Dwebsocket_resource.cc79 const PP_Var protocols[],
95 // Get the protocols.
100 scoped_refptr<StringVar> protocol(StringVar::FromPPVar(protocols[i]));
77 Connect( const PP_Var& url, const PP_Var protocols[], uint32_t protocol_count, scoped_refptr<TrackedCallback> callback) argument
/external/chromium_org/ppapi/thunk/
H A Dppb_websocket_thunk.cc36 const struct PP_Var protocols[],
44 protocols,
34 Connect(PP_Resource web_socket, struct PP_Var url, const struct PP_Var protocols[], uint32_t protocol_count, struct PP_CompletionCallback callback) argument
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
H A DBenchmark.java85 /** Which ALPN/NPN protocols are in use. Only useful with TLS. */
86 List<Protocol> protocols = Arrays.asList(Protocol.HTTP_11); field in class:Benchmark
147 modifiers.addAll(protocols);
168 server.setNpnProtocols(protocols);
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
H A DAddress.java46 final List<Protocol> protocols; field in class:Address
50 OkAuthenticator authenticator, Proxy proxy, List<Protocol> protocols)
55 if (protocols == null) throw new IllegalArgumentException("protocols == null");
63 this.protocols = Util.immutableList(protocols);
109 * Returns the protocols the client supports. This method always returns a
114 return protocols;
134 && equal(this.protocols, that.protocols);
48 Address(String uriHost, int uriPort, SocketFactory socketFactory, SSLSocketFactory sslSocketFactory, HostnameVerifier hostnameVerifier, OkAuthenticator authenticator, Proxy proxy, List<Protocol> protocols) argument
[all...]
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/
H A DSSLServerSocketTest.java123 public void setEnabledProtocols(String[] protocols) { argument
H A DSSLSocketTest.java154 public void setEnabledProtocols(String[] protocols) { argument
/external/chromium_org/mojo/services/html_viewer/
H A Dwebsockethandle_impl.cc159 const WebVector<WebString>& protocols,
172 Array<String>::From(protocols),
158 connect(const WebURL& url, const WebVector<WebString>& protocols, const WebSerializedOrigin& origin, WebSocketHandleClient* client) argument
/external/chromium_org/ppapi/utility/websocket/
H A Dwebsocket_api.cc32 int32_t Connect(const Var& url, const Var protocols[], argument
37 WebSocket::Connect(url, protocols, protocol_count, callback);
114 int32_t WebSocketAPI::Connect(const Var& url, const Var protocols[], argument
116 return impl_->Connect(url, protocols, protocol_count);
/external/conscrypt/src/main/java/org/conscrypt/
H A DOpenSSLServerSocketImpl.java66 * The names of the protocols' versions that may be used on this SSL
68 * @return an array of protocols names
76 * The names of the protocols' versions that in use on this SSL connection.
78 * @return an array of protocols names
86 * This method enables the protocols' versions listed by
89 * @param protocols names of all the protocols to enable.
95 public void setEnabledProtocols(String[] protocols) { argument
96 sslParameters.setEnabledProtocols(protocols);
/external/okhttp/android/main/java/com/squareup/okhttp/internal/
H A DPlatform.java141 * Sets client-supported protocols on a socket to send to a server. The
142 * protocols are only sent if the socket implementation supports NPN.
151 byte[] protocols = concatLengthPrefixed(npnProtocols);
154 socket, new Object[] { protocols });
158 socket, new Object[] { protocols });
187 static byte[] concatLengthPrefixed(List<Protocol> protocols) { argument
189 for (Protocol protocol : protocols) {
194 for (Protocol protocol : protocols) {
/external/okhttp/okcurl/src/main/java/com/squareup/okhttp/curl/
H A DMain.java72 private static String protocols() { method in class:Main
126 System.out.println("Protocols: " + protocols());
/external/apache-harmony/x-net/src/test/java/javax/net/ssl/
H A DMySSLContextSpi.java203 public void setEnabledProtocols(String[] protocols) { argument
/external/chromium_org/chrome/browser/ui/webui/options/
H A Dhandler_options_handler.cc135 std::vector<std::string> protocols; local
136 registry->GetRegisteredProtocols(&protocols);
139 for (std::vector<std::string>::iterator protocol = protocols.begin();
140 protocol != protocols.end(); protocol++) {
/external/chromium_org/content/child/
H A Dwebsocket_bridge.cc212 const WebVector<WebString>& protocols,
222 for (size_t i = 0; i < protocols.size(); ++i)
223 protocols_to_pass.push_back(protocols[i].utf8());
210 connect( const WebURL& url, const WebVector<WebString>& protocols, const WebSerializedOrigin& origin, WebSocketHandleClient* client) argument
/external/chromium_org/content/renderer/pepper/
H A Dpepper_websocket_host.cc206 const std::vector<std::string>& protocols) {
220 // Validate protocols.
222 for (std::vector<std::string>::const_iterator vector_it = protocols.begin();
223 vector_it != protocols.end();
246 // Join protocols with the comma separator.
247 if (vector_it != protocols.begin())
252 // Convert protocols to WebString.
203 OnHostMsgConnect( ppapi::host::HostMessageContext* context, const std::string& url, const std::vector<std::string>& protocols) argument
/external/chromium_org/mojo/services/network/
H A Dweb_socket_impl.cc192 Array<String> protocols,
204 protocols.To<std::vector<std::string> >(),
191 Connect(const String& url, Array<String> protocols, const String& origin, ScopedDataPipeConsumerHandle send_stream, WebSocketClientPtr client) argument
/external/chromium_org/ui/platform_window/x11/
H A Dx11_window.cc162 ::Atom protocols[2]; local
163 protocols[0] = atom_cache_.GetAtom("WM_DELETE_WINDOW");
164 protocols[1] = atom_cache_.GetAtom("_NET_WM_PING");
165 XSetWMProtocols(xdisplay_, xwindow_, protocols, 2);
/external/mtpd/
H A Dmtpd.c43 static struct protocol *protocols[] = {&l2tp, &pptp, NULL}; variable in typeref:struct:protocol
63 for (i = 0; protocols[i]; ++i) {
64 struct protocol *p = protocols[i];
74 for (i = 0; protocols[i]; ++i) {
75 struct protocol *p = protocols[i];
/external/okhttp/android/test/java/com/squareup/okhttp/internal/
H A DPlatformTest.java80 List<Protocol> protocols = Arrays.asList(Protocol.SPDY_3);
84 platform.setNpnProtocols(arbitrarySocketImpl, protocols);
87 platform.setNpnProtocols(npnOnlySSLSocketImpl, protocols);
91 platform.setNpnProtocols(openSslSocket, protocols);
178 public void setEnabledProtocols(String[] protocols) { argument
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
H A DPlatform.java118 * Sets client-supported protocols on a socket to send to a server. The
119 * protocols are only sent if the socket implementation supports NPN.
342 /** This peer's supported protocols. */
343 private final List<String> protocols; field in class:Platform.JettyNpnProvider
349 public JettyNpnProvider(List<String> protocols) { argument
350 this.protocols = protocols;
364 } else if (methodName.equals("protocols") && args.length == 0) {
365 return protocols; // Server advertises these protocols
393 concatLengthPrefixed(List<Protocol> protocols) argument
[all...]

Completed in 778 milliseconds

123