OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/spdy/spdy_settings_storage.h" | 5 #include "net/spdy/spdy_settings_storage.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 namespace net { | 9 namespace net { |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 } | 39 } |
40 } | 40 } |
41 | 41 |
42 // If we didn't persist anything, then we are done. | 42 // If we didn't persist anything, then we are done. |
43 if (persistent_settings.empty()) | 43 if (persistent_settings.empty()) |
44 return; | 44 return; |
45 | 45 |
46 settings_map_[host_port_pair] = persistent_settings; | 46 settings_map_[host_port_pair] = persistent_settings; |
47 } | 47 } |
48 | 48 |
| 49 void SpdySettingsStorage::Clear() { |
| 50 settings_map_.clear(); |
| 51 } |
| 52 |
49 } // namespace net | 53 } // namespace net |
50 | 54 |
OLD | NEW |