Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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__ |
| OLD | NEW |