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 "chrome/common/content_settings_pattern_parser.h" | 5 #include "chrome/common/content_settings_pattern_parser.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/strings/string_util.h" |
8 #include "chrome/common/url_constants.h" | 8 #include "chrome/common/url_constants.h" |
9 #include "extensions/common/constants.h" | 9 #include "extensions/common/constants.h" |
10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
11 #include "googleurl/src/url_canon.h" | 11 #include "googleurl/src/url_canon.h" |
12 #include "net/base/net_util.h" | 12 #include "net/base/net_util.h" |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 const char* kUrlPathSeparator = "/"; | 16 const char* kUrlPathSeparator = "/"; |
17 const char* kUrlPortSeparator = ":"; | 17 const char* kUrlPortSeparator = ":"; |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 } | 223 } |
224 | 224 |
225 if (!parts.is_port_wildcard) { | 225 if (!parts.is_port_wildcard) { |
226 str += std::string(kUrlPortSeparator) + parts.port; | 226 str += std::string(kUrlPortSeparator) + parts.port; |
227 } | 227 } |
228 | 228 |
229 return str; | 229 return str; |
230 } | 230 } |
231 | 231 |
232 } // namespace content_settings | 232 } // namespace content_settings |
OLD | NEW |