// Returns all SPDY persistent settings.
virtual const SpdySettingsMap& spdy_settings_map() const OVERRIDE;
+ // Methods for SupportsQuic.
+ virtual SupportsQuic GetSupportsQuic(
+ const HostPortPair& host_port_pair) const OVERRIDE;
+
+ virtual void SetSupportsQuic(const HostPortPair& host_port_pair,
+ bool used_quic,
+ const std::string& address) OVERRIDE;
+
+ virtual const SupportsQuicMap& supports_quic_map() const OVERRIDE;
+
virtual void SetServerNetworkStats(const HostPortPair& host_port_pair,
NetworkStats stats) OVERRIDE;
SpdySettingsMap* spdy_settings_map,
AlternateProtocolMap* alternate_protocol_map,
AlternateProtocolExperiment alternate_protocol_experiment,
+ SupportsQuicMap* supports_quic_map,
bool detected_corrupted_prefs);
// These are used to delay updating the preferences when cached data in
void UpdatePrefsOnPrefThread(base::ListValue* spdy_server_list,
SpdySettingsMap* spdy_settings_map,
AlternateProtocolMap* alternate_protocol_map,
+ SupportsQuicMap* supports_quic_map,
const base::Closure& completion);
private:
const scoped_refptr<base::SequencedTaskRunner> pref_task_runner_;
- // Used to get |weak_ptr_| to self on the pref thread.
- scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> >
- pref_weak_ptr_factory_;
-
base::WeakPtr<HttpServerPropertiesManager> pref_weak_ptr_;
// Used to post cache update tasks.
const scoped_refptr<base::SequencedTaskRunner> network_task_runner_;
- // Used to get |weak_ptr_| to self on the network thread.
- scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> >
- network_weak_ptr_factory_;
-
// Used to post |prefs::kHttpServerProperties| pref update tasks.
scoped_ptr<base::OneShotTimer<HttpServerPropertiesManager> >
network_prefs_update_timer_;
scoped_ptr<HttpServerPropertiesImpl> http_server_properties_impl_;
+ // Used to get |weak_ptr_| to self on the pref thread.
+ scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> >
+ pref_weak_ptr_factory_;
+
+ // Used to get |weak_ptr_| to self on the network thread.
+ scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> >
+ network_weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager);
};