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

Side by Side Diff: net/http/http_server_properties.cc

Issue 2901103002: Fix closing namespace comments in //net. (Closed)
Patch Set: Rebase. Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « net/http/http_security_headers_unittest.cc ('k') | net/http/md4.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/http/http_server_properties.h" 5 #include "net/http/http_server_properties.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/metrics/histogram_macros.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "net/socket/ssl_client_socket.h" 10 #include "net/socket/ssl_client_socket.h"
(...skipping 22 matching lines...) Expand all
33 case ALTERNATE_PROTOCOL_USAGE_WON_RACE: 33 case ALTERNATE_PROTOCOL_USAGE_WON_RACE:
34 return ALTERNATIVE_PROXY_USAGE_WON_RACE; 34 return ALTERNATIVE_PROXY_USAGE_WON_RACE;
35 case ALTERNATE_PROTOCOL_USAGE_LOST_RACE: 35 case ALTERNATE_PROTOCOL_USAGE_LOST_RACE:
36 return ALTERNATIVE_PROXY_USAGE_LOST_RACE; 36 return ALTERNATIVE_PROXY_USAGE_LOST_RACE;
37 default: 37 default:
38 NOTREACHED(); 38 NOTREACHED();
39 return ALTERNATIVE_PROXY_USAGE_MAX; 39 return ALTERNATIVE_PROXY_USAGE_MAX;
40 } 40 }
41 } 41 }
42 42
43 } // namespace anonymous 43 } // anonymous namespace
44 44
45 const char kAlternativeServiceHeader[] = "Alt-Svc"; 45 const char kAlternativeServiceHeader[] = "Alt-Svc";
46 46
47 void HistogramAlternateProtocolUsage(AlternateProtocolUsage usage, 47 void HistogramAlternateProtocolUsage(AlternateProtocolUsage usage,
48 bool proxy_server_used) { 48 bool proxy_server_used) {
49 if (proxy_server_used) { 49 if (proxy_server_used) {
50 DCHECK_LE(usage, ALTERNATE_PROTOCOL_USAGE_LOST_RACE); 50 DCHECK_LE(usage, ALTERNATE_PROTOCOL_USAGE_LOST_RACE);
51 UMA_HISTOGRAM_ENUMERATION("Net.QuicAlternativeProxy.Usage", 51 UMA_HISTOGRAM_ENUMERATION("Net.QuicAlternativeProxy.Usage",
52 ConvertProtocolUsageToProxyUsage(usage), 52 ConvertProtocolUsageToProxyUsage(usage),
53 ALTERNATIVE_PROXY_USAGE_MAX); 53 ALTERNATIVE_PROXY_USAGE_MAX);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 return os; 98 return os;
99 } 99 }
100 100
101 // static 101 // static
102 void HttpServerProperties::ForceHTTP11(SSLConfig* ssl_config) { 102 void HttpServerProperties::ForceHTTP11(SSLConfig* ssl_config) {
103 ssl_config->alpn_protos.clear(); 103 ssl_config->alpn_protos.clear();
104 ssl_config->alpn_protos.push_back(kProtoHTTP11); 104 ssl_config->alpn_protos.push_back(kProtoHTTP11);
105 } 105 }
106 106
107 } // namespace net 107 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_security_headers_unittest.cc ('k') | net/http/md4.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698