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

Unified Diff: net/spdy/spdy_settings_storage.h

Issue 10054034: SPDY - replaced SpdySettings (list) with SettingsMap (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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_spdy3_unittest.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 132592)
+++ net/spdy/spdy_settings_storage.h (working copy)
@@ -1,48 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_SPDY_SPDY_SETTING_STORAGE_H_
-#define NET_SPDY_SPDY_SETTING_STORAGE_H_
-#pragma once
-
-#include <map>
-#include "base/basictypes.h"
-#include "net/base/host_port_pair.h"
-#include "net/base/net_export.h"
-#include "net/spdy/spdy_framer.h"
-
-namespace net {
-
-// SpdySettingsStorage stores SpdySettings which have been transmitted between
-// endpoints for the SPDY SETTINGS frame.
-class NET_EXPORT_PRIVATE SpdySettingsStorage {
- public:
- SpdySettingsStorage();
- ~SpdySettingsStorage();
-
- // Gets 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 SpdySettings& Get(const HostPortPair& host_port_pair) const;
-
- // Saves settings for a host.
- void Set(const HostPortPair& host_port_pair,
- const SpdySettings& settings);
-
- // Clears out the settings_map_ object.
- void Clear();
-
- private:
- typedef std::map<HostPortPair, SpdySettings> SettingsMap;
-
- SettingsMap settings_map_;
-
- DISALLOW_COPY_AND_ASSIGN(SpdySettingsStorage);
-};
-
-} // namespace net
-
-#endif // NET_SPDY_SPDY_SETTING_STORAGE_H_
-
« no previous file with comments | « net/spdy/spdy_session_spdy3_unittest.cc ('k') | net/spdy/spdy_settings_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698