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

Unified Diff: net/http/http_response_info.cc

Issue 2347163002: s/NPN/ALPN/ (Closed)
Patch Set: Re: #12. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_response_info.h ('k') | net/http/http_stream_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_response_info.cc
diff --git a/net/http/http_response_info.cc b/net/http/http_response_info.cc
index e4bb70f94d136d287c7ab647db6a90b0fc42d601..27478dfa85257c580383f17c5bf114ea0fb8e355 100644
--- a/net/http/http_response_info.cc
+++ b/net/http/http_response_info.cc
@@ -69,8 +69,8 @@ enum {
// This bit is set if the response was received via SPDY.
RESPONSE_INFO_WAS_SPDY = 1 << 13,
- // This bit is set if the request has NPN negotiated.
- RESPONSE_INFO_WAS_NPN = 1 << 14,
+ // This bit is set if the request has ALPN negotiated.
+ RESPONSE_INFO_WAS_ALPN = 1 << 14,
// This bit is set if the request was fetched via an explicit proxy.
RESPONSE_INFO_WAS_PROXY = 1 << 15,
@@ -81,7 +81,7 @@ enum {
RESPONSE_INFO_HAS_SSL_CONNECTION_STATUS = 1 << 16,
// This bit is set if the response info has protocol version.
- RESPONSE_INFO_HAS_NPN_NEGOTIATED_PROTOCOL = 1 << 17,
+ RESPONSE_INFO_HAS_ALPN_NEGOTIATED_PROTOCOL = 1 << 17,
// This bit is set if the response info has connection info.
RESPONSE_INFO_HAS_CONNECTION_INFO = 1 << 18,
@@ -111,7 +111,7 @@ HttpResponseInfo::HttpResponseInfo()
server_data_unavailable(false),
network_accessed(false),
was_fetched_via_spdy(false),
- was_npn_negotiated(false),
+ was_alpn_negotiated(false),
was_fetched_via_proxy(false),
did_use_http_auth(false),
unused_since_prefetch(false),
@@ -124,14 +124,14 @@ HttpResponseInfo::HttpResponseInfo(const HttpResponseInfo& rhs)
server_data_unavailable(rhs.server_data_unavailable),
network_accessed(rhs.network_accessed),
was_fetched_via_spdy(rhs.was_fetched_via_spdy),
- was_npn_negotiated(rhs.was_npn_negotiated),
+ was_alpn_negotiated(rhs.was_alpn_negotiated),
was_fetched_via_proxy(rhs.was_fetched_via_proxy),
proxy_server(rhs.proxy_server),
did_use_http_auth(rhs.did_use_http_auth),
unused_since_prefetch(rhs.unused_since_prefetch),
async_revalidation_required(rhs.async_revalidation_required),
socket_address(rhs.socket_address),
- npn_negotiated_protocol(rhs.npn_negotiated_protocol),
+ alpn_negotiated_protocol(rhs.alpn_negotiated_protocol),
connection_info(rhs.connection_info),
request_time(rhs.request_time),
response_time(rhs.response_time),
@@ -152,13 +152,13 @@ HttpResponseInfo& HttpResponseInfo::operator=(const HttpResponseInfo& rhs) {
network_accessed = rhs.network_accessed;
was_fetched_via_spdy = rhs.was_fetched_via_spdy;
proxy_server = rhs.proxy_server;
- was_npn_negotiated = rhs.was_npn_negotiated;
+ was_alpn_negotiated = rhs.was_alpn_negotiated;
was_fetched_via_proxy = rhs.was_fetched_via_proxy;
did_use_http_auth = rhs.did_use_http_auth;
unused_since_prefetch = rhs.unused_since_prefetch;
async_revalidation_required = rhs.async_revalidation_required;
socket_address = rhs.socket_address;
- npn_negotiated_protocol = rhs.npn_negotiated_protocol;
+ alpn_negotiated_protocol = rhs.alpn_negotiated_protocol;
connection_info = rhs.connection_info;
request_time = rhs.request_time;
response_time = rhs.response_time;
@@ -269,8 +269,8 @@ bool HttpResponseInfo::InitFromPickle(const base::Pickle& pickle,
}
// Read protocol-version.
- if (flags & RESPONSE_INFO_HAS_NPN_NEGOTIATED_PROTOCOL) {
- if (!iter.ReadString(&npn_negotiated_protocol))
+ if (flags & RESPONSE_INFO_HAS_ALPN_NEGOTIATED_PROTOCOL) {
+ if (!iter.ReadString(&alpn_negotiated_protocol))
return false;
}
@@ -296,7 +296,7 @@ bool HttpResponseInfo::InitFromPickle(const base::Pickle& pickle,
was_fetched_via_spdy = (flags & RESPONSE_INFO_WAS_SPDY) != 0;
- was_npn_negotiated = (flags & RESPONSE_INFO_WAS_NPN) != 0;
+ was_alpn_negotiated = (flags & RESPONSE_INFO_WAS_ALPN) != 0;
was_fetched_via_proxy = (flags & RESPONSE_INFO_WAS_PROXY) != 0;
@@ -331,9 +331,9 @@ void HttpResponseInfo::Persist(base::Pickle* pickle,
flags |= RESPONSE_INFO_TRUNCATED;
if (was_fetched_via_spdy)
flags |= RESPONSE_INFO_WAS_SPDY;
- if (was_npn_negotiated) {
- flags |= RESPONSE_INFO_WAS_NPN;
- flags |= RESPONSE_INFO_HAS_NPN_NEGOTIATED_PROTOCOL;
+ if (was_alpn_negotiated) {
+ flags |= RESPONSE_INFO_WAS_ALPN;
+ flags |= RESPONSE_INFO_HAS_ALPN_NEGOTIATED_PROTOCOL;
}
if (was_fetched_via_proxy)
flags |= RESPONSE_INFO_WAS_PROXY;
@@ -390,8 +390,8 @@ void HttpResponseInfo::Persist(base::Pickle* pickle,
pickle->WriteString(socket_address.host());
pickle->WriteUInt16(socket_address.port());
- if (was_npn_negotiated)
- pickle->WriteString(npn_negotiated_protocol);
+ if (was_alpn_negotiated)
+ pickle->WriteString(alpn_negotiated_protocol);
if (connection_info != CONNECTION_INFO_UNKNOWN)
pickle->WriteInt(static_cast<int>(connection_info));
« no previous file with comments | « net/http/http_response_info.h ('k') | net/http/http_stream_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698