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

Side by Side Diff: chrome/browser/search_engines/util.h

Issue 8342049: Added Protector, hooked up DSE verification with error bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Always persist default search provider in db Created 9 years, 1 month 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_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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698