Index: net/spdy/spdy_settings_storage.h |
=================================================================== |
--- net/spdy/spdy_settings_storage.h (revision 85710) |
+++ net/spdy/spdy_settings_storage.h (working copy) |
@@ -22,12 +22,17 @@ |
// Get a copy of the SpdySettings stored for a host. |
// If no settings are stored, returns an empty set of settings. |
+ // NOTE: Since settings_map_ may be cleared, don't store the address of the |
+ // return value. |
const spdy::SpdySettings& Get(const HostPortPair& host_port_pair) const; |
rkn1
2011/05/20 16:57:37
I'm not sure what the function "SpdySession::SendS
willchan no longer on Chromium
2011/05/20 21:29:47
It looks like a minor bug. It's copying rather tha
wtc
2011/05/20 23:04:28
There is a comment that says the copying is intent
willchan no longer on Chromium
2011/05/21 08:45:28
Good catch. OK, if it's for a field trial, that ma
|
// Save settings for a host. |
void Set(const HostPortPair& host_port_pair, |
const spdy::SpdySettings& settings); |
+ // This clears out the settings_map_ object. |
+ void Clear(); |
+ |
private: |
typedef std::map<HostPortPair, spdy::SpdySettings> SettingsMap; |