| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Chromium settings and storage represent user-selected preferences and | 5 // Chromium settings and storage represent user-selected preferences and |
| 6 // information and MUST not be extracted, overwritten or modified except | 6 // information and MUST not be extracted, overwritten or modified except |
| 7 // through Chromium defined APIs. | 7 // through Chromium defined APIs. |
| 8 | 8 |
| 9 #ifndef CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ | 9 #ifndef CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ |
| 10 #define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ | 10 #define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 struct WDKeywordsResult { | 83 struct WDKeywordsResult { |
| 84 WDKeywordsResult(); | 84 WDKeywordsResult(); |
| 85 ~WDKeywordsResult(); | 85 ~WDKeywordsResult(); |
| 86 | 86 |
| 87 KeywordTable::Keywords keywords; | 87 KeywordTable::Keywords keywords; |
| 88 // Identifies the ID of the TemplateURL that is the default search. A value of | 88 // Identifies the ID of the TemplateURL that is the default search. A value of |
| 89 // 0 indicates there is no default search provider. | 89 // 0 indicates there is no default search provider. |
| 90 int64 default_search_provider_id; | 90 int64 default_search_provider_id; |
| 91 // Version of the built-in keywords. A value of 0 indicates a first run. | 91 // Version of the built-in keywords. A value of 0 indicates a first run. |
| 92 int builtin_keyword_version; | 92 int builtin_keyword_version; |
| 93 // Backup of the default search provider, and whether the backup is valid. | |
| 94 bool backup_valid; | |
| 95 TemplateURLData default_search_provider_backup; | |
| 96 // Indicates if default search provider has been changed by something | |
| 97 // other than user's action in the browser. | |
| 98 bool did_default_search_provider_change; | |
| 99 }; | 93 }; |
| 100 | 94 |
| 101 class WebDataServiceConsumer; | 95 class WebDataServiceConsumer; |
| 102 | 96 |
| 103 class WebDataService | 97 class WebDataService |
| 104 : public WebDataServiceBase, | 98 : public WebDataServiceBase, |
| 105 public AutofillWebData, | 99 public AutofillWebData, |
| 106 public RefcountedProfileKeyedService { | 100 public RefcountedProfileKeyedService { |
| 107 public: | 101 public: |
| 108 ////////////////////////////////////////////////////////////////////////////// | 102 ////////////////////////////////////////////////////////////////////////////// |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 typedef std::map<Handle, WebDataRequest*> RequestMap; | 598 typedef std::map<Handle, WebDataRequest*> RequestMap; |
| 605 RequestMap pending_requests_; | 599 RequestMap pending_requests_; |
| 606 | 600 |
| 607 // MessageLoop the WebDataService is created on. | 601 // MessageLoop the WebDataService is created on. |
| 608 MessageLoop* main_loop_; | 602 MessageLoop* main_loop_; |
| 609 | 603 |
| 610 DISALLOW_COPY_AND_ASSIGN(WebDataService); | 604 DISALLOW_COPY_AND_ASSIGN(WebDataService); |
| 611 }; | 605 }; |
| 612 | 606 |
| 613 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ | 607 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ |
| OLD | NEW |