Home
last modified time | relevance | path

Searched refs:HostPortPair (Results 1 – 25 of 113) sorted by relevance

12345

/external/chromium/net/base/
Dhost_port_pair.cc15 HostPortPair::HostPortPair() : port_(0) {} in HostPortPair() function in net::HostPortPair
16 HostPortPair::HostPortPair(const std::string& in_host, uint16 in_port) in HostPortPair() function in net::HostPortPair
20 HostPortPair HostPortPair::FromURL(const GURL& url) { in FromURL()
21 return HostPortPair(url.HostNoBrackets(), url.EffectiveIntPort()); in FromURL()
25 HostPortPair HostPortPair::FromAddrInfo(const struct addrinfo* ai) { in FromAddrInfo()
26 return HostPortPair(NetAddressToString(ai), in FromAddrInfo()
30 std::string HostPortPair::ToString() const { in ToString()
34 std::string HostPortPair::HostForURL() const { in HostForURL()
Dhost_port_pair.h17 class HostPortPair {
19 HostPortPair();
21 HostPortPair(const std::string& in_host, uint16 in_port);
24 static HostPortPair FromURL(const GURL& url);
27 static HostPortPair FromAddrInfo(const struct addrinfo* ai);
31 bool operator<(const HostPortPair& other) const {
38 bool Equals(const HostPortPair& other) const { in Equals()
Dhost_mapping_rules_unittest.cc19 HostPortPair host_port("test", 1234); in TEST()
24 host_port = HostPortPair("chrome.net", 80); in TEST()
29 host_port = HostPortPair("crack.com", 80); in TEST()
34 host_port = HostPortPair("wtf.foo.com", 666); in TEST()
46 HostPortPair host_port("test.com", 1234); in TEST()
52 host_port = HostPortPair("crack.com", 80); in TEST()
58 host_port = HostPortPair("wtf.com", 443); in TEST()
64 host_port = HostPortPair("wtf.foo.com", 443); in TEST()
Dmapped_host_resolver_unittest.cc35 HostPortPair("www.google.com", 80)), in TEST()
44 HostPortPair("www.google.com", 80)), in TEST()
52 rv = resolver->Resolve(HostResolver::RequestInfo(HostPortPair("foo.com", 77)), in TEST()
63 (HostPortPair("chromium.org", 61)), in TEST()
92 HostPortPair("www.google.com", 80)), in TEST()
100 HostPortPair("chrome.com", 80)), in TEST()
125 HostPortPair("www.google.com", 80)), in TEST()
133 HostPortPair("chrome.net", 80)), in TEST()
Dhost_resolver.h42 explicit RequestInfo(const HostPortPair& host_port_pair);
44 const HostPortPair& host_port_pair() const { return host_port_pair_; } in host_port_pair()
45 void set_host_port_pair(const HostPortPair& host_port_pair) { in set_host_port_pair()
81 HostPortPair host_port_pair_;
Dhost_mapping_rules.h15 class HostPortPair; variable
24 bool RewriteHost(HostPortPair* host_port) const;
Dhost_resolver_impl_unittest.cc50 HostResolver::RequestInfo info(HostPortPair(hostname, 80)); in CreateResolverRequest()
60 HostResolver::RequestInfo info(HostPortPair(hostname, 80)); in CreateResolverRequestForAddressFamily()
168 : info_(HostPortPair(hostname, port)), in ResolveRequest()
269 HostResolver::RequestInfo info(HostPortPair("just.testing", kPortnum)); in TEST_F()
304 HostResolver::RequestInfo info(HostPortPair("just.testing", kPortnum)); in TEST_F()
353 HostResolver::RequestInfo info(HostPortPair("just.testing", kPortnum)); in TEST_F()
415 HostResolver::RequestInfo info(HostPortPair("127.1.2.3", kPortnum)); in TEST_F()
440 HostResolver::RequestInfo info(HostPortPair("2001:db8::1", kPortnum)); in TEST_F()
470 HostResolver::RequestInfo info(HostPortPair("", kPortnum)); in TEST_F()
485 HostResolver::RequestInfo info(HostPortPair(hostname, kPortnum)); in TEST_F()
[all …]
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
DInetSocketAddressTest.java44 HostPortPair[] legalHostPortPairs = { new HostPortPair("127.0.0.1", 1234), in test_createUnresolvedLjava_lang_StringI()
45 new HostPortPair("192.168.0.1", 10000), new HostPortPair("127.0.0", 0), in test_createUnresolvedLjava_lang_StringI()
46 new HostPortPair("127.0.0", 65535), in test_createUnresolvedLjava_lang_StringI()
47 new HostPortPair("strange host", 65535) }; in test_createUnresolvedLjava_lang_StringI()
62 HostPortPair[] illegalHostPortPairs = { new HostPortPair(null, 1), in test_createUnresolvedLjava_lang_StringI_IllegalArgumentException()
63 new HostPortPair("host", -1), new HostPortPair("host", 65536) }; in test_createUnresolvedLjava_lang_StringI_IllegalArgumentException()
81 class HostPortPair { class in InetSocketAddressTest
86 public HostPortPair(String host, int port) { in HostPortPair() method in InetSocketAddressTest.HostPortPair
/external/chromium/net/http/
Dhttp_stream_factory.cc30 std::list<HostPortPair>* HttpStreamFactory::forced_spdy_exclusions_ = NULL;
39 const HostPortPair& http_host_port_pair) { in ProcessAlternateProtocol()
74 HostPortPair host_port(http_host_port_pair); in ProcessAlternateProtocol()
89 HostPortPair* endpoint) { in ApplyHostMappingRules()
104 HostPortPair pair = HostPortPair::FromURL(GURL(value)); in add_forced_spdy_exclusion()
106 forced_spdy_exclusions_ = new std::list<HostPortPair>(); in add_forced_spdy_exclusion()
111 bool HttpStreamFactory::HasSpdyExclusion(const HostPortPair& endpoint) { in HasSpdyExclusion()
112 std::list<HostPortPair>* exclusions = forced_spdy_exclusions_; in HasSpdyExclusion()
116 std::list<HostPortPair>::const_iterator it; in HasSpdyExclusion()
Dhttp_alternate_protocols.h43 typedef std::map<HostPortPair, PortProtocolPair> ProtocolMap;
53 bool HasAlternateProtocolFor(const HostPortPair& http_host_port_pair) const;
57 const HostPortPair& http_host_port_pair) const;
63 void SetAlternateProtocolFor(const HostPortPair& http_host_port_pair,
69 void MarkBrokenAlternateProtocolFor(const HostPortPair& http_host_port_pair);
Dhttp_stream_factory.h22 class HostPortPair; variable
153 const HostPortPair& http_host_port_pair);
171 virtual void AddTLSIntolerantServer(const HostPortPair& server) = 0;
172 virtual bool IsTLSIntolerantServer(const HostPortPair& server) const = 0;
175 static GURL ApplyHostMappingRules(const GURL& url, HostPortPair* endpoint);
208 static bool HasSpdyExclusion(const HostPortPair& endpoint);
240 static std::list<HostPortPair>* forced_spdy_exclusions_;
Dhttp_alternate_protocols.cc49 const HostPortPair& http_host_port_pair) const { in HasAlternateProtocolFor()
56 HostPortPair http_host_port_pair(host, port); in HasAlternateProtocolFor()
62 const HostPortPair& http_host_port_pair) const { in GetAlternateProtocolFor()
78 HostPortPair http_host_port_pair(host, port); in GetAlternateProtocolFor()
83 const HostPortPair& http_host_port_pair, in SetAlternateProtocolFor()
118 const HostPortPair& http_host_port_pair) { in MarkBrokenAlternateProtocolFor()
Dhttp_network_session_peer.h13 class HostPortPair; variable
31 const HostPortPair& socks_proxy,
35 const HostPortPair& http_proxy,
41 const HostPortPair& proxy_host,
Dhttp_stream_factory_impl.h38 virtual void AddTLSIntolerantServer(const HostPortPair& server);
39 virtual bool IsTLSIntolerantServer(const HostPortPair& server) const;
68 void OnBrokenAlternateProtocol(const Job*, const HostPortPair& origin);
81 std::set<HostPortPair> tls_intolerant_servers_;
Dhttp_alternate_protocols_unittest.cc17 HostPortPair test_host_port_pair("foo", 80); in TEST()
31 HostPortPair test_host_port_pair("foo", 80); in TEST()
58 HostPortPair test_host_port_pair("foo", 80); in TEST()
79 HostPortPair test_host_port_pair2("bar", 80); in TEST()
Dhttp_network_session_peer.cc28 const HostPortPair& socks_proxy, in SetSocketPoolForSOCKSProxy()
40 const HostPortPair& http_proxy, in SetSocketPoolForHTTPProxy()
56 const HostPortPair& proxy_host, in SetSocketPoolForSSLWithProxy()
Dhttp_proxy_utils.h15 class HostPortPair; variable
22 const HostPortPair& endpoint,
/external/chromium/net/socket/
Dclient_socket_pool_manager.h36 class HostPortPair; variable
93 const HostPortPair& socks_proxy);
96 const HostPortPair& http_proxy);
99 const HostPortPair& proxy_server);
126 const HostPortPair& host_port_pair,
159 typedef internal::OwnedPoolMap<HostPortPair, TransportClientSocketPool*>
161 typedef internal::OwnedPoolMap<HostPortPair, SOCKSClientSocketPool*>
163 typedef internal::OwnedPoolMap<HostPortPair, HttpProxyClientSocketPool*>
165 typedef internal::OwnedPoolMap<HostPortPair, SSLClientSocketPool*>
Dclient_socket_factory.h21 class HostPortPair; variable
41 const HostPortPair& host_and_port,
50 const HostPortPair& host_and_port,
/external/chromium/net/proxy/
Dproxy_server.h41 ProxyServer(Scheme scheme, const HostPortPair& host_port_pair);
62 const HostPortPair& host_port_pair() const;
109 return ProxyServer(SCHEME_DIRECT, HostPortPair()); in Direct()
158 HostPortPair host_port_pair_;
161 typedef std::pair<HostPortPair, ProxyServer> HostPortProxyPair;
Dproxy_server.cc74 ProxyServer::ProxyServer(Scheme scheme, const HostPortPair& host_port_pair) in ProxyServer()
80 DCHECK(host_port_pair.Equals(HostPortPair())); in ProxyServer()
81 host_port_pair_ = HostPortPair(); in ProxyServer()
85 const HostPortPair& ProxyServer::host_port_pair() const { in host_port_pair()
224 HostPortPair host_port_pair; in FromSchemeHostAndPort()
238 host_port_pair = HostPortPair(HostNoBrackets(host), port); in FromSchemeHostAndPort()
/external/chromium/net/spdy/
Dspdy_settings_storage.h25 const spdy::SpdySettings& Get(const HostPortPair& host_port_pair) const;
28 void Set(const HostPortPair& host_port_pair,
32 typedef std::map<HostPortPair, spdy::SpdySettings> SettingsMap;
/external/chromium/chrome/browser/sync/notifier/
Dsync_notifier_factory.cc25 net::HostPortPair StringToHostPortPair(const std::string& host_port_str, in StringToHostPortPair()
29 return net::HostPortPair(host_port_str, default_port); in StringToHostPortPair()
39 return net::HostPortPair(host, default_port); in StringToHostPortPair()
42 return net::HostPortPair(host, port); in StringToHostPortPair()
/external/chromium/chrome/browser/automation/
Durl_request_automation_job.h21 class HostPortPair; variable
50 virtual net::HostPortPair GetSocketAddress() const;
129 net::HostPortPair socket_address_;
/external/chromium/chrome/common/
Dcommon_param_traits_unittest.cc175 TEST(IPCMessageTest, HostPortPair) { in TEST() argument
176 net::HostPortPair input("host.com", 12345); in TEST()
179 IPC::ParamTraits<net::HostPortPair>::Write(&msg, input); in TEST()
181 net::HostPortPair output; in TEST()
183 EXPECT_TRUE(IPC::ParamTraits<net::HostPortPair>::Read(&msg, &iter, &output)); in TEST()

12345