OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/base/port_util.h" | 5 #include "net/base/port_util.h" |
6 | 6 |
7 #include <limits> | |
8 #include <set> | 7 #include <set> |
9 | 8 |
10 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
11 #include "base/logging.h" | 10 #include "base/logging.h" |
12 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
13 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
14 #include "url/url_constants.h" | 13 #include "url/url_constants.h" |
15 | 14 |
16 namespace net { | 15 namespace net { |
17 | 16 |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 ScopedPortException::~ScopedPortException() { | 177 ScopedPortException::~ScopedPortException() { |
179 std::multiset<int>::iterator it = | 178 std::multiset<int>::iterator it = |
180 g_explicitly_allowed_ports.Get().find(port_); | 179 g_explicitly_allowed_ports.Get().find(port_); |
181 if (it != g_explicitly_allowed_ports.Get().end()) | 180 if (it != g_explicitly_allowed_ports.Get().end()) |
182 g_explicitly_allowed_ports.Get().erase(it); | 181 g_explicitly_allowed_ports.Get().erase(it); |
183 else | 182 else |
184 NOTREACHED(); | 183 NOTREACHED(); |
185 } | 184 } |
186 | 185 |
187 } // namespace net | 186 } // namespace net |
OLD | NEW |