Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / net / http / http_server_properties_impl.h
index 68b6ca9..bb91f3d 100644 (file)
@@ -151,6 +151,11 @@ class NET_EXPORT HttpServerPropertiesImpl
   // pair) that either support or not support SPDY protocol.
   typedef base::hash_map<std::string, bool> SpdyServerHostPortTable;
   typedef std::map<HostPortPair, NetworkStats> ServerNetworkStatsMap;
+  typedef std::map<HostPortPair, HostPortPair> CanonicalHostMap;
+  typedef std::vector<std::string> CanonicalSufficList;
+
+  // Return the canonical host for |server|, or end if none exists.
+  CanonicalHostMap::const_iterator GetCanonicalHost(HostPortPair server) const;
 
   SpdyServerHostPortTable spdy_servers_table_;
 
@@ -158,6 +163,13 @@ class NET_EXPORT HttpServerPropertiesImpl
   SpdySettingsMap spdy_settings_map_;
   ServerNetworkStatsMap server_network_stats_map_;
   scoped_ptr<CachedPipelineCapabilityMap> pipeline_capability_map_;
+  // Contains a map of servers which could share the same alternate protocol.
+  // Map from a Canonical host/port (host is some postfix of host names) to an
+  // actual origin, which has a plausible alternate protocol mapping.
+  CanonicalHostMap canonical_host_to_origin_map_;
+  // Contains list of suffixes (for exmaple ".c.youtube.com",
+  // ".googlevideo.com") of canoncial hostnames.
+  CanonicalSufficList canoncial_suffixes_;
 
   base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_;