OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SEARCH_ENGINES_UTIL_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_UTIL_H_ |
6 #define CHROME_BROWSER_SEARCH_ENGINES_UTIL_H_ | 6 #define CHROME_BROWSER_SEARCH_ENGINES_UTIL_H_ |
7 | 7 |
8 // This file contains utility functions for search engine functionality. | 8 // This file contains utility functions for search engine functionality. |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/string16.h" | 14 #include "base/strings/string16.h" |
15 #include "chrome/browser/search_engines/template_url_service.h" | 15 #include "chrome/browser/search_engines/template_url_service.h" |
16 | 16 |
17 class Profile; | 17 class Profile; |
18 class TemplateURL; | 18 class TemplateURL; |
19 class WDTypedResult; | 19 class WDTypedResult; |
20 class WebDataService; | 20 class WebDataService; |
21 | 21 |
22 // Returns the short name of the default search engine, or the empty string if | 22 // Returns the short name of the default search engine, or the empty string if |
23 // none is set. |profile| may be NULL. | 23 // none is set. |profile| may be NULL. |
24 string16 GetDefaultSearchEngineName(Profile* profile); | 24 string16 GetDefaultSearchEngineName(Profile* profile); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 // helper used by GetSearchProvidersUsingKeywordResult(), but is declared here | 76 // helper used by GetSearchProvidersUsingKeywordResult(), but is declared here |
77 // so it's accessible by unittests. | 77 // so it's accessible by unittests. |
78 void RemoveDuplicatePrepopulateIDs( | 78 void RemoveDuplicatePrepopulateIDs( |
79 WebDataService* service, | 79 WebDataService* service, |
80 const ScopedVector<TemplateURL>& prepopulated_urls, | 80 const ScopedVector<TemplateURL>& prepopulated_urls, |
81 TemplateURL* default_search_provider, | 81 TemplateURL* default_search_provider, |
82 TemplateURLService::TemplateURLVector* template_urls, | 82 TemplateURLService::TemplateURLVector* template_urls, |
83 std::set<std::string>* removed_keyword_guids); | 83 std::set<std::string>* removed_keyword_guids); |
84 | 84 |
85 #endif // CHROME_BROWSER_SEARCH_ENGINES_UTIL_H_ | 85 #endif // CHROME_BROWSER_SEARCH_ENGINES_UTIL_H_ |
OLD | NEW |