Home
last modified time | relevance | path

Searched refs:HttpAlternateProtocols (Results 1 – 12 of 12) sorted by relevance

/external/chromium/net/http/
Dhttp_alternate_protocols.cc13 const char HttpAlternateProtocols::kHeader[] = "Alternate-Protocol";
14 const char* const HttpAlternateProtocols::kProtocolStrings[] = {
19 const char* HttpAlternateProtocols::ProtocolToString( in ProtocolToString()
20 HttpAlternateProtocols::Protocol protocol) { in ProtocolToString()
22 case HttpAlternateProtocols::NPN_SPDY_1: in ProtocolToString()
23 case HttpAlternateProtocols::NPN_SPDY_2: in ProtocolToString()
24 return HttpAlternateProtocols::kProtocolStrings[protocol]; in ProtocolToString()
25 case HttpAlternateProtocols::BROKEN: in ProtocolToString()
27 case HttpAlternateProtocols::UNINITIALIZED: in ProtocolToString()
36 std::string HttpAlternateProtocols::PortProtocolPair::ToString() const { in ToString()
[all …]
Dhttp_alternate_protocols_unittest.cc15 TEST(HttpAlternateProtocols, Basic) { in TEST() argument
16 HttpAlternateProtocols alternate_protocols; in TEST()
21 test_host_port_pair, 443, HttpAlternateProtocols::NPN_SPDY_1); in TEST()
23 const HttpAlternateProtocols::PortProtocolPair alternate = in TEST()
26 EXPECT_EQ(HttpAlternateProtocols::NPN_SPDY_1, alternate.protocol); in TEST()
29 TEST(HttpAlternateProtocols, SetBroken) { in TEST() argument
30 HttpAlternateProtocols alternate_protocols; in TEST()
34 HttpAlternateProtocols::PortProtocolPair alternate = in TEST()
36 EXPECT_EQ(HttpAlternateProtocols::BROKEN, alternate.protocol); in TEST()
41 HttpAlternateProtocols::NPN_SPDY_1); in TEST()
[all …]
Dhttp_stream_factory.cc37 HttpAlternateProtocols* alternate_protocols, in ProcessAlternateProtocol()
43 DLOG(WARNING) << HttpAlternateProtocols::kHeader in ProcessAlternateProtocol()
52 DLOG(WARNING) << HttpAlternateProtocols::kHeader in ProcessAlternateProtocol()
58 HttpAlternateProtocols::Protocol protocol = HttpAlternateProtocols::BROKEN; in ProcessAlternateProtocol()
60 for (int i = HttpAlternateProtocols::NPN_SPDY_2; in ProcessAlternateProtocol()
61 i < HttpAlternateProtocols::NUM_ALTERNATE_PROTOCOLS; ++i) { in ProcessAlternateProtocol()
62 if (port_protocol_vector[1] == HttpAlternateProtocols::kProtocolStrings[i]) in ProcessAlternateProtocol()
63 protocol = static_cast<HttpAlternateProtocols::Protocol>(i); in ProcessAlternateProtocol()
66 if (protocol == HttpAlternateProtocols::BROKEN) { in ProcessAlternateProtocol()
68 DLOG(WARNING) << HttpAlternateProtocols::kHeader in ProcessAlternateProtocol()
[all …]
Dhttp_alternate_protocols.h22 class HttpAlternateProtocols {
48 HttpAlternateProtocols();
49 ~HttpAlternateProtocols();
88 DISALLOW_COPY_AND_ASSIGN(HttpAlternateProtocols);
Dhttp_stream_factory_impl.cc130 const HttpAlternateProtocols& alternate_protocols = in GetAlternateProtocolRequestFor()
135 HttpAlternateProtocols::PortProtocolPair alternate = in GetAlternateProtocolRequestFor()
137 if (alternate.protocol == HttpAlternateProtocols::BROKEN) in GetAlternateProtocolRequestFor()
140 DCHECK_LE(HttpAlternateProtocols::NPN_SPDY_1, alternate.protocol); in GetAlternateProtocolRequestFor()
141 DCHECK_GT(HttpAlternateProtocols::NUM_ALTERNATE_PROTOCOLS, in GetAlternateProtocolRequestFor()
144 if (alternate.protocol != HttpAlternateProtocols::NPN_SPDY_2) in GetAlternateProtocolRequestFor()
Dhttp_network_layer.cc125 HttpAlternateProtocols::PortProtocolPair pair; in EnableSpdy()
127 pair.protocol = HttpAlternateProtocols::NPN_SPDY_2; in EnableSpdy()
128 HttpAlternateProtocols::ForceAlternateProtocol(pair); in EnableSpdy()
Dhttp_network_session.h83 const HttpAlternateProtocols& alternate_protocols() const { in alternate_protocols()
86 HttpAlternateProtocols* mutable_alternate_protocols() { in mutable_alternate_protocols()
170 HttpAlternateProtocols alternate_protocols_;
Dhttp_stream_factory.h23 class HttpAlternateProtocols; variable
151 HttpAlternateProtocols* alternate_protocols,
Dhttp_network_transaction.cc65 HttpAlternateProtocols* alternate_protocols, in ProcessAlternateProtocol()
70 if (!headers.EnumerateHeader(NULL, HttpAlternateProtocols::kHeader, in ProcessAlternateProtocol()
Dhttp_network_transaction_unittest.cc5470 HttpAlternateProtocols* alternate_protocols = in SetupSessionForGroupNameTests()
5474 HttpAlternateProtocols::NPN_SPDY_2); in SetupSessionForGroupNameTests()
6458 const HttpAlternateProtocols& alternate_protocols = in TEST_F()
6477 const HttpAlternateProtocols::PortProtocolPair alternate = in TEST_F()
6479 HttpAlternateProtocols::PortProtocolPair expected_alternate; in TEST_F()
6481 expected_alternate.protocol = HttpAlternateProtocols::NPN_SPDY_2; in TEST_F()
6516 HttpAlternateProtocols* alternate_protocols = in TEST_F()
6520 HttpAlternateProtocols::NPN_SPDY_2); in TEST_F()
6539 const HttpAlternateProtocols::PortProtocolPair alternate = in TEST_F()
6541 EXPECT_EQ(HttpAlternateProtocols::BROKEN, alternate.protocol); in TEST_F()
/external/chromium/chrome/browser/ui/webui/
Dnet_internals_ui.cc1264 const net::HttpAlternateProtocols& http_alternate_protocols = in OnGetSpdyAlternateProtocolMappings()
1266 const net::HttpAlternateProtocols::ProtocolMap& map = in OnGetSpdyAlternateProtocolMappings()
1269 for (net::HttpAlternateProtocols::ProtocolMap::const_iterator it = in OnGetSpdyAlternateProtocolMappings()
/external/chromium/net/spdy/
Dspdy_network_transaction_unittest.cc129 HttpAlternateProtocols::NPN_SPDY_2); in RunPreTestSetup()