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

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: Moved check to Protector, work with search engines via TemplateURLService 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 valid.
sky 2011/10/21 17:20:30 Use name that I suggested in keyword_table.
whywhat 2011/10/21 20:31:53 Done.
110 bool is_default_search_provider_verified;
107 }; 111 };
108 112
109 // 113 //
110 // The top level class for a result. 114 // The top level class for a result.
111 // 115 //
112 class WDTypedResult { 116 class WDTypedResult {
113 public: 117 public:
114 virtual ~WDTypedResult() {} 118 virtual ~WDTypedResult() {}
115 119
116 // Return the result type. 120 // 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 730 // 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. 731 // not be opened. The result object is destroyed after this call.
728 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, 732 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h,
729 const WDTypedResult* result) = 0; 733 const WDTypedResult* result) = 0;
730 734
731 protected: 735 protected:
732 virtual ~WebDataServiceConsumer() {} 736 virtual ~WebDataServiceConsumer() {}
733 }; 737 };
734 738
735 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ 739 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698