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

Unified Diff: chrome/browser/autocomplete/autocomplete.h

Issue 62094: Emaphasize "https" instead of "view-source" when user accesses secure/insecur... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 8 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 | chrome/browser/autocomplete/autocomplete.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete.h
===================================================================
--- chrome/browser/autocomplete/autocomplete.h (revision 13588)
+++ chrome/browser/autocomplete/autocomplete.h (working copy)
@@ -172,6 +172,15 @@
url_parse::Parsed* parts,
std::wstring* scheme);
+ // Parses |text| and fill |scheme| and |host| by the positions of them.
+ // The results are almost as same as the result of Parse(), but if the scheme
+ // is view-source, this function returns the positions of scheme and host
+ // in the URL qualified by "view-source:" prefix.
+ static void ParseForEmphasizeComponents(const std::wstring& text,
+ const std::wstring& desired_tld,
+ url_parse::Component* scheme,
+ url_parse::Component* host);
+
// User-provided text to be completed.
const std::wstring& text() const { return text_; }
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698