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

Unified Diff: net/http/http_server_properties_impl.h

Issue 2949513005: Update param types of HttpServerPropertiesImpl setters and getters. Fix MRU order when loading (Closed)
Patch Set: Fixed minor typos 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/http/http_server_properties_impl.cc » ('j') | net/http/http_server_properties_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties_impl.h
diff --git a/net/http/http_server_properties_impl.h b/net/http/http_server_properties_impl.h
index f5eb4bad191afe9b7dcd1e2f94afab8a640ce0a0..432c97e1225c6e0b0baebeb34519fe8ee326b8dd 100644
--- a/net/http/http_server_properties_impl.h
+++ b/net/http/http_server_properties_impl.h
@@ -26,10 +26,6 @@
#include "net/http/broken_alternative_services.h"
#include "net/http/http_server_properties.h"
-namespace base {
-class ListValue;
-}
-
namespace net {
// The implementation for setting/retrieving the HTTP server properties.
@@ -44,22 +40,24 @@ class NET_EXPORT HttpServerPropertiesImpl
// Sets |spdy_servers_map_| with the servers (host/port) from
// |spdy_servers| that either support SPDY or not.
- void SetSpdyServers(std::vector<std::string>* spdy_servers,
+ void SetSpdyServers(const std::vector<std::string>* spdy_servers,
Ryan Hamilton 2017/06/20 18:25:56 Can this be a const&?
wangyix1 2017/06/21 18:45:33 The unit-test SpdyServerPropertiesTest.Set tests t
Ryan Hamilton 2017/06/22 02:45:52 This is now a unique_ptr not a const&. Is that to
wangyix1 2017/06/22 17:45:09 Yes, it's now a unique_ptr<SpdyServersMap> instead
bool support_spdy);
void SetAlternativeServiceServers(
- AlternativeServiceMap* alternate_protocol_servers);
+ std::unique_ptr<AlternativeServiceMap> alternate_protocol_servers);
- void SetSupportsQuic(IPAddress* last_address);
+ void SetSupportsQuic(const IPAddress* last_address);
Ryan Hamilton 2017/06/20 18:25:56 ditto
wangyix1 2017/06/21 18:45:33 Done.
- void SetServerNetworkStats(ServerNetworkStatsMap* server_network_stats_map);
+ void SetServerNetworkStats(
+ std::unique_ptr<ServerNetworkStatsMap> server_network_stats_map);
- void SetQuicServerInfoMap(QuicServerInfoMap* quic_server_info_map);
+ void SetQuicServerInfoMap(
+ std::unique_ptr<QuicServerInfoMap> quic_server_info_map);
// Get the list of servers (host/port) that support SPDY. The max_size is the
// number of MRU servers that support SPDY that are to be returned.
- void GetSpdyServerList(base::ListValue* spdy_server_list,
- size_t max_size) const;
+ void GetSpdyServers(std::vector<std::string>* spdy_servers,
+ size_t max_size) const;
// Returns flattened string representation of the |host_port_pair|. Used by
// unittests.
« no previous file with comments | « no previous file | net/http/http_server_properties_impl.cc » ('j') | net/http/http_server_properties_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698