| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser/content_settings/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/string_util.h" |
| 8 #include "chrome/common/url_constants.h" | 8 #include "chrome/common/url_constants.h" |
| 9 #include "net/base/net_util.h" | 9 #include "net/base/net_util.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 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 const char* kUrlPathSeparator = "/"; | 15 const char* kUrlPathSeparator = "/"; |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 } | 217 } |
| 218 | 218 |
| 219 if (!parts.is_port_wildcard) { | 219 if (!parts.is_port_wildcard) { |
| 220 str += std::string(kUrlPortSeparator) + parts.port; | 220 str += std::string(kUrlPortSeparator) + parts.port; |
| 221 } | 221 } |
| 222 | 222 |
| 223 return str; | 223 return str; |
| 224 } | 224 } |
| 225 | 225 |
| 226 } // namespace content_settings | 226 } // namespace content_settings |
| OLD | NEW |