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

Side by Side Diff: net/http/http_server_properties_impl.h

Issue 868753007: Change GetCanonicalSuffix() interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | net/http/http_server_properties_impl.cc » ('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 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ 5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_
6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // Returns flattened string representation of the |host_port_pair|. Used by 56 // Returns flattened string representation of the |host_port_pair|. Used by
57 // unittests. 57 // unittests.
58 static std::string GetFlattenedSpdyServer(const HostPortPair& host_port_pair); 58 static std::string GetFlattenedSpdyServer(const HostPortPair& host_port_pair);
59 59
60 // Debugging to simulate presence of an AlternateProtocol. 60 // Debugging to simulate presence of an AlternateProtocol.
61 // If we don't have an alternate protocol in the map for any given host/port 61 // If we don't have an alternate protocol in the map for any given host/port
62 // pair, force this ProtocolPortPair. 62 // pair, force this ProtocolPortPair.
63 static void ForceAlternateProtocol(const AlternateProtocolInfo& pair); 63 static void ForceAlternateProtocol(const AlternateProtocolInfo& pair);
64 static void DisableForcedAlternateProtocol(); 64 static void DisableForcedAlternateProtocol();
65 65
66 // Returns the canonical host suffix for |server|, or std::string() if none 66 // Returns the canonical host suffix for |host|, or std::string() if none
67 // exists. 67 // exists.
68 std::string GetCanonicalSuffix(const HostPortPair& server); 68 std::string GetCanonicalSuffix(const std::string& host);
69 69
70 // ----------------------------- 70 // -----------------------------
71 // HttpServerProperties methods: 71 // HttpServerProperties methods:
72 // ----------------------------- 72 // -----------------------------
73 73
74 // Gets a weak pointer for this object. 74 // Gets a weak pointer for this object.
75 base::WeakPtr<HttpServerProperties> GetWeakPtr() override; 75 base::WeakPtr<HttpServerProperties> GetWeakPtr() override;
76 76
77 // Deletes all data. 77 // Deletes all data.
78 void Clear() override; 78 void Clear() override;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 double alternate_protocol_probability_threshold_; 214 double alternate_protocol_probability_threshold_;
215 215
216 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; 216 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_;
217 217
218 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); 218 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl);
219 }; 219 };
220 220
221 } // namespace net 221 } // namespace net
222 222
223 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ 223 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_server_properties_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698