| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file defines utility functions for eliding URLs. | 5 // This file defines utility functions for eliding URLs. |
| 6 | 6 |
| 7 #ifndef COMPONENTS_URL_FORMATTER_ELIDE_URL_H_ | 7 #ifndef COMPONENTS_URL_FORMATTER_ELIDE_URL_H_ |
| 8 #define COMPONENTS_URL_FORMATTER_ELIDE_URL_H_ | 8 #define COMPONENTS_URL_FORMATTER_ELIDE_URL_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "build/build_config.h" |
| 13 | 14 |
| 14 class GURL; | 15 class GURL; |
| 15 | 16 |
| 16 namespace gfx { | 17 namespace gfx { |
| 17 class FontList; | 18 class FontList; |
| 18 } | 19 } |
| 19 | 20 |
| 20 namespace url_formatter { | 21 namespace url_formatter { |
| 21 | 22 |
| 22 // ElideUrl and Elide host require | 23 // ElideUrl and Elide host require |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // Just like |FormatUrlForSecurityDisplay|, but also: | 78 // Just like |FormatUrlForSecurityDisplay|, but also: |
| 78 // | 79 // |
| 79 // - Omits the scheme if SchemeIsHTTPOrHTTPS(). | 80 // - Omits the scheme if SchemeIsHTTPOrHTTPS(). |
| 80 base::string16 FormatUrlForSecurityDisplayOmitScheme( | 81 base::string16 FormatUrlForSecurityDisplayOmitScheme( |
| 81 const GURL& origin, | 82 const GURL& origin, |
| 82 const std::string& languages); | 83 const std::string& languages); |
| 83 | 84 |
| 84 } // namespace url_formatter | 85 } // namespace url_formatter |
| 85 | 86 |
| 86 #endif // COMPONENTS_URL_FORMATTER_ELIDE_URL_H_ | 87 #endif // COMPONENTS_URL_FORMATTER_ELIDE_URL_H_ |
| OLD | NEW |