| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_SEARCH_ENGINES_KEYWORD_WEB_DATA_SERVICE_H__ | 5 #ifndef COMPONENTS_SEARCH_ENGINES_KEYWORD_WEB_DATA_SERVICE_H__ |
| 6 #define COMPONENTS_SEARCH_ENGINES_KEYWORD_WEB_DATA_SERVICE_H__ | 6 #define COMPONENTS_SEARCH_ENGINES_KEYWORD_WEB_DATA_SERVICE_H__ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "components/search_engines/keyword_table.h" | 13 #include "components/search_engines/keyword_table.h" |
| 14 #include "components/search_engines/template_url_id.h" | 14 #include "components/search_engines/template_url_id.h" |
| 15 #include "components/webdata/common/web_data_service_base.h" | 15 #include "components/webdata/common/web_data_service_base.h" |
| 16 #include "components/webdata/common/web_database.h" | 16 #include "components/webdata/common/web_database.h" |
| 17 | 17 |
| 18 namespace base { | 18 namespace base { |
| 19 class SingleThreadTaskRunner; | 19 class SingleThreadTaskRunner; |
| 20 } | 20 } |
| 21 | 21 |
| 22 class WDTypedResult; | 22 class WDTypedResult; |
| 23 class WebDatabaseService; | 23 class WebDatabaseService; |
| 24 struct TemplateURLData; | 24 struct TemplateURLData; |
| 25 | 25 |
| 26 struct WDKeywordsResult { | 26 struct WDKeywordsResult { |
| 27 WDKeywordsResult(); | 27 WDKeywordsResult(); |
| 28 WDKeywordsResult(const WDKeywordsResult& other); |
| 28 ~WDKeywordsResult(); | 29 ~WDKeywordsResult(); |
| 29 | 30 |
| 30 KeywordTable::Keywords keywords; | 31 KeywordTable::Keywords keywords; |
| 31 // Identifies the ID of the TemplateURL that is the default search. A value of | 32 // Identifies the ID of the TemplateURL that is the default search. A value of |
| 32 // 0 indicates there is no default search provider. | 33 // 0 indicates there is no default search provider. |
| 33 int64_t default_search_provider_id; | 34 int64_t default_search_provider_id; |
| 34 // Version of the built-in keywords. A value of 0 indicates a first run. | 35 // Version of the built-in keywords. A value of 0 indicates a first run. |
| 35 int builtin_keyword_version; | 36 int builtin_keyword_version; |
| 36 }; | 37 }; |
| 37 | 38 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 WebDatabase* db); | 106 WebDatabase* db); |
| 106 WebDatabase::State SetBuiltinKeywordVersionImpl(int version, WebDatabase* db); | 107 WebDatabase::State SetBuiltinKeywordVersionImpl(int version, WebDatabase* db); |
| 107 | 108 |
| 108 size_t batch_mode_level_; | 109 size_t batch_mode_level_; |
| 109 KeywordTable::Operations queued_keyword_operations_; | 110 KeywordTable::Operations queued_keyword_operations_; |
| 110 | 111 |
| 111 DISALLOW_COPY_AND_ASSIGN(KeywordWebDataService); | 112 DISALLOW_COPY_AND_ASSIGN(KeywordWebDataService); |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 #endif // COMPONENTS_SEARCH_ENGINES_KEYWORD_WEB_DATA_SERVICE_H__ | 115 #endif // COMPONENTS_SEARCH_ENGINES_KEYWORD_WEB_DATA_SERVICE_H__ |
| OLD | NEW |