Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Unified Diff: components/url_formatter/elide_url.h

Issue 1959933002: Add FormatOriginForSecurityDisplay which takes a const url::Origin& origin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added FormatUrlForSecurityDisplay which takes a const url::Origin Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/url_formatter/elide_url.cc » ('j') | components/url_formatter/elide_url.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/url_formatter/elide_url.h
diff --git a/components/url_formatter/elide_url.h b/components/url_formatter/elide_url.h
index 5f929cab3e9b9098d6bf231efee7a015c74f6506..160441fbfc9ee28841c32730eb68d5078f496423 100644
--- a/components/url_formatter/elide_url.h
+++ b/components/url_formatter/elide_url.h
@@ -18,6 +18,10 @@ namespace gfx {
class FontList;
}
+namespace url {
+class Origin;
+}
+
namespace url_formatter {
// ElideUrl and Elide host require
@@ -78,6 +82,10 @@ base::string16 FormatUrlForSecurityDisplay(
const GURL& origin,
const SchemeDisplay scheme_display = SchemeDisplay::SHOW);
+base::string16 FormatUrlForSecurityDisplay(
palmer 2016/05/09 19:40:48 Naming it |FormatOriginForSecurityDisplay| might b
juncai 2016/05/10 02:16:58 Done.
+ const url::Origin& origin,
+ const SchemeDisplay scheme_display = SchemeDisplay::SHOW);
+
} // namespace url_formatter
#endif // COMPONENTS_URL_FORMATTER_ELIDE_URL_H_
« no previous file with comments | « no previous file | components/url_formatter/elide_url.cc » ('j') | components/url_formatter/elide_url.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698