summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/autocomplete_edit.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-10 23:52:43 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-10 23:52:43 +0000
commite7a5b787751ed3c1c31f66ae919f11911393b974 (patch)
tree7627eb287c3e079a240f6cc8f98cf94c36a568b4 /chrome/browser/autocomplete/autocomplete_edit.h
parent01b9961c2ee639c10b07624d40a73702a9f3d0ec (diff)
downloadchromium_src-e7a5b787751ed3c1c31f66ae919f11911393b974.zip
chromium_src-e7a5b787751ed3c1c31f66ae919f11911393b974.tar.gz
chromium_src-e7a5b787751ed3c1c31f66ae919f11911393b974.tar.bz2
Make the autocomplete system and various other connected bits of code use GURL instead of wstring where appropriate. Original patch by phajdan.jr@gmail.com, r=me,sky. See http://codereview.chromium.org/13205 .
BUG=715234 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6758 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_edit.h')
-rw-r--r--chrome/browser/autocomplete/autocomplete_edit.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit.h b/chrome/browser/autocomplete/autocomplete_edit.h
index fc6398d..dc7d0a5 100644
--- a/chrome/browser/autocomplete/autocomplete_edit.h
+++ b/chrome/browser/autocomplete/autocomplete_edit.h
@@ -46,10 +46,10 @@ class AutocompleteEditController {
// |alternate_nav_url|, if non-empty, contains the alternate navigation URL
// for |url|, which the controller can check for existence. See comments on
// AutocompleteResult::GetAlternateNavURL().
- virtual void OnAutocompleteAccept(const std::wstring& url,
+ virtual void OnAutocompleteAccept(const GURL& url,
WindowOpenDisposition disposition,
PageTransition::Type transition,
- const std::wstring& alternate_nav_url) = 0;
+ const GURL& alternate_nav_url) = 0;
// Called when anything has changed that might affect the layout or contents
// of the views around the edit, including the text of the edit and the
@@ -325,9 +325,9 @@ class AutocompleteEditModel {
//
// See AutocompleteEdit for a description of the args (they may be null if
// not needed).
- std::wstring GetURLForCurrentText(PageTransition::Type* transition,
- bool* is_history_what_you_typed_match,
- std::wstring* alternate_nav_url);
+ GURL GetURLForCurrentText(PageTransition::Type* transition,
+ bool* is_history_what_you_typed_match,
+ GURL* alternate_nav_url);
AutocompleteEditView* view_;
@@ -394,7 +394,7 @@ class AutocompleteEditModel {
// arrows to a different item with the same text, we can still distinguish
// them and not revert all the way to the permanent_text_.
bool has_temporary_text_;
- std::wstring original_url_;
+ GURL original_url_;
KeywordUIState original_keyword_ui_state_;
// When the user's last action was to paste and replace all the text, we
@@ -427,9 +427,9 @@ class AutocompleteEditModel {
bool show_search_hint_;
// Paste And Go-related state. See CanPasteAndGo().
- mutable std::wstring paste_and_go_url_;
+ mutable GURL paste_and_go_url_;
mutable PageTransition::Type paste_and_go_transition_;
- mutable std::wstring paste_and_go_alternate_nav_url_;
+ mutable GURL paste_and_go_alternate_nav_url_;
Profile* profile_;
@@ -494,10 +494,10 @@ class AutocompleteEditView
// If the URL was expanded from a keyword, |keyword| is that keyword.
//
// This may close the popup.
- void OpenURL(const std::wstring& url,
+ void OpenURL(const GURL& url,
WindowOpenDisposition disposition,
PageTransition::Type transition,
- const std::wstring& alternate_nav_url,
+ const GURL& alternate_nav_url,
size_t selected_line,
const std::wstring& keyword);