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

Side by Side Diff: chrome/browser/autocomplete/history_provider.h

Issue 6306011: Remove wstring from autocomplete. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/autocomplete/autocomplete.h" 10 #include "chrome/browser/autocomplete/autocomplete.h"
(...skipping 26 matching lines...) Expand all
37 // Fixes up user URL input to make it more possible to match against. Among 37 // Fixes up user URL input to make it more possible to match against. Among
38 // many other things, this takes care of the following: 38 // many other things, this takes care of the following:
39 // * Prepending file:// to file URLs 39 // * Prepending file:// to file URLs
40 // * Converting drive letters in file URLs to uppercase 40 // * Converting drive letters in file URLs to uppercase
41 // * Converting case-insensitive parts of URLs (like the scheme and domain) 41 // * Converting case-insensitive parts of URLs (like the scheme and domain)
42 // to lowercase 42 // to lowercase
43 // * Convert spaces to %20s 43 // * Convert spaces to %20s
44 // Note that we don't do this in AutocompleteInput's constructor, because if 44 // Note that we don't do this in AutocompleteInput's constructor, because if
45 // e.g. we convert a Unicode hostname to punycode, other providers will show 45 // e.g. we convert a Unicode hostname to punycode, other providers will show
46 // output that surprises the user ("Search Google for xn--6ca.com"). 46 // output that surprises the user ("Search Google for xn--6ca.com").
47 static std::wstring FixupUserInput(const AutocompleteInput& input); 47 static string16 FixupUserInput(const AutocompleteInput& input);
48 48
49 // Trims "http:" and up to two subsequent slashes from |url|. Returns the 49 // Trims "http:" and up to two subsequent slashes from |url|. Returns the
50 // number of characters that were trimmed. 50 // number of characters that were trimmed.
51 // NOTE: For a view-source: URL, this will trim from after "view-source:" and 51 // NOTE: For a view-source: URL, this will trim from after "view-source:" and
52 // return 0. 52 // return 0.
53 static size_t TrimHttpPrefix(std::wstring* url); 53 static size_t TrimHttpPrefix(string16* url);
54 }; 54 };
55 55
56 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_ 56 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698