| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // This file contains utility functions for search engine functionality. | 9 // This file contains utility functions for search engine functionality. |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // Only pass in a non-NULL value for service if the WebDataService should be | 33 // Only pass in a non-NULL value for service if the WebDataService should be |
| 34 // updated. | 34 // updated. |
| 35 void GetSearchProvidersUsingKeywordResult( | 35 void GetSearchProvidersUsingKeywordResult( |
| 36 const WDTypedResult& result, | 36 const WDTypedResult& result, |
| 37 WebDataService* service, | 37 WebDataService* service, |
| 38 PrefService* prefs, | 38 PrefService* prefs, |
| 39 std::vector<TemplateURL*>* template_urls, | 39 std::vector<TemplateURL*>* template_urls, |
| 40 const TemplateURL** default_search_provider, | 40 const TemplateURL** default_search_provider, |
| 41 int* new_resource_keyword_version); | 41 int* new_resource_keyword_version); |
| 42 | 42 |
| 43 // Returns true if the default search provider setting has been changed or |
| 44 // corrupted. Returns the backup setting in |backup_default_search_provider|. |
| 45 // |*backup_default_search_provider| can be NULL if the original setting is |
| 46 // lost. |
| 47 bool DidDefaultSearchProviderChange( |
| 48 const WDTypedResult& result, |
| 49 const std::vector<TemplateURL*>& template_urls, |
| 50 const TemplateURL** backup_default_search_provider); |
| 51 |
| 43 #endif // CHROME_BROWSER_SEARCH_ENGINES_UTIL_H_ | 52 #endif // CHROME_BROWSER_SEARCH_ENGINES_UTIL_H_ |
| OLD | NEW |