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/spdy/spdy_settings_storage.h

Issue 7046016: I added a function "void SpdySettingsStorage::Clear()". I added a call to this function "spdy_set... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: just changed an indent Created 9 years, 7 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 | « net/spdy/spdy_session_pool.cc ('k') | net/spdy/spdy_settings_storage.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,18 @@
// Get a copy of the SpdySettings stored for a host.
// If no settings are stored, returns an empty set of settings.
+ // Since settings_map_ may be cleared, don't remember the address of the
+ // return value.
+
wtc 2011/05/19 22:54:37 Nit: don't add this blank line. willchan: since G
willchan no longer on Chromium 2011/05/19 22:59:44 Adding a comment is indeed the right solution here
const spdy::SpdySettings& Get(const HostPortPair& host_port_pair) const;
// Save settings for a host.
void Set(const HostPortPair& host_port_pair,
const spdy::SpdySettings& settings);
+ // Flush structure
wtc 2011/05/19 22:54:37 Nit: this comment should say a little more.
+ void Clear();
+
private:
typedef std::map<HostPortPair, spdy::SpdySettings> SettingsMap;
« no previous file with comments | « net/spdy/spdy_session_pool.cc ('k') | net/spdy/spdy_settings_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698