OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "url/scheme_host_port.h" | 5 #include "url/scheme_host_port.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <string.h> | |
9 | |
10 #include <tuple> | 8 #include <tuple> |
11 | 9 |
12 #include "base/logging.h" | 10 #include "base/logging.h" |
13 #include "base/numerics/safe_conversions.h" | 11 #include "base/numerics/safe_conversions.h" |
14 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
15 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 14 #include "url/third_party/mozilla/url_parse.h" |
16 #include "url/url_canon.h" | 15 #include "url/url_canon.h" |
17 #include "url/url_canon_stdstring.h" | 16 #include "url/url_canon_stdstring.h" |
18 #include "url/url_constants.h" | 17 #include "url/url_constants.h" |
19 #include "url/url_util.h" | 18 #include "url/url_util.h" |
20 | 19 |
21 namespace url { | 20 namespace url { |
22 | 21 |
23 namespace { | 22 namespace { |
24 | 23 |
25 bool IsCanonicalHost(const base::StringPiece& host) { | 24 bool IsCanonicalHost(const base::StringPiece& host) { |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 return port_ == other.port() && scheme_ == other.scheme() && | 170 return port_ == other.port() && scheme_ == other.scheme() && |
172 host_ == other.host(); | 171 host_ == other.host(); |
173 } | 172 } |
174 | 173 |
175 bool SchemeHostPort::operator<(const SchemeHostPort& other) const { | 174 bool SchemeHostPort::operator<(const SchemeHostPort& other) const { |
176 return std::tie(port_, scheme_, host_) < | 175 return std::tie(port_, scheme_, host_) < |
177 std::tie(other.port_, other.scheme_, other.host_); | 176 std::tie(other.port_, other.scheme_, other.host_); |
178 } | 177 } |
179 | 178 |
180 } // namespace url | 179 } // namespace url |
OLD | NEW |