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

Side by Side Diff: chrome/browser/webdata/web_data_service.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, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_WEBDATA_WEB_DATA_SERVICE_H__ 5 #ifndef CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__
6 #define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ 6 #define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 struct WDKeywordsResult { 97 struct WDKeywordsResult {
98 WDKeywordsResult(); 98 WDKeywordsResult();
99 ~WDKeywordsResult(); 99 ~WDKeywordsResult();
100 100
101 std::vector<TemplateURL*> keywords; 101 std::vector<TemplateURL*> keywords;
102 // Identifies the ID of the TemplateURL that is the default search. A value of 102 // Identifies the ID of the TemplateURL that is the default search. A value of
103 // 0 indicates there is no default search provider. 103 // 0 indicates there is no default search provider.
104 int64 default_search_provider_id; 104 int64 default_search_provider_id;
105 // Version of the built-in keywords. A value of 0 indicates a first run. 105 // Version of the built-in keywords. A value of 0 indicates a first run.
106 int builtin_keyword_version; 106 int builtin_keyword_version;
107 // Backup of the default search provider ID.
108 int64 default_search_provider_id_backup;
109 // Indicates if default search provider has been changed by something else
sky 2011/10/24 17:04:13 else -> other
whywhat 2011/10/25 10:30:41 Done.
110 // than user's action in the browser.
111 bool did_default_search_provider_change;
107 }; 112 };
108 113
109 // 114 //
110 // The top level class for a result. 115 // The top level class for a result.
111 // 116 //
112 class WDTypedResult { 117 class WDTypedResult {
113 public: 118 public:
114 virtual ~WDTypedResult() {} 119 virtual ~WDTypedResult() {}
115 120
116 // Return the result type. 121 // Return the result type.
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 // result can be NULL, if no result is expected or if the database could 731 // result can be NULL, if no result is expected or if the database could
727 // not be opened. The result object is destroyed after this call. 732 // not be opened. The result object is destroyed after this call.
728 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, 733 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h,
729 const WDTypedResult* result) = 0; 734 const WDTypedResult* result) = 0;
730 735
731 protected: 736 protected:
732 virtual ~WebDataServiceConsumer() {} 737 virtual ~WebDataServiceConsumer() {}
733 }; 738 };
734 739
735 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ 740 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698