OLD | NEW |
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_LOCATION_BAR_UTIL_H_ | 5 #ifndef CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_UTIL_H_ |
6 #define CHROME_BROWSER_LOCATION_BAR_UTIL_H_ | 6 #define CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_UTIL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 class Profile; | 11 class Profile; |
12 | 12 |
13 namespace location_bar_util { | 13 namespace location_bar_util { |
14 | 14 |
15 // Returns the short name for a keyword. | 15 // Returns the short name for a keyword. |
16 std::wstring GetKeywordName(Profile* profile, const std::wstring& keyword); | 16 std::wstring GetKeywordName(Profile* profile, const std::wstring& keyword); |
17 | 17 |
18 // Build a short string to use in keyword-search when the field isn't | 18 // Build a short string to use in keyword-search when the field isn't |
19 // very big. | 19 // very big. |
20 std::wstring CalculateMinString(const std::wstring& description); | 20 std::wstring CalculateMinString(const std::wstring& description); |
21 | 21 |
22 } // namespace location_bar_util | 22 } // namespace location_bar_util |
23 | 23 |
24 #endif // CHROME_BROWSER_LOCATION_BAR_UTIL_H_ | 24 #endif // CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_UTIL_H_ |
OLD | NEW |