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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // done. | 114 // done. |
115 | 115 |
116 void AddKeyword(const TemplateURLData& data); | 116 void AddKeyword(const TemplateURLData& data); |
117 void RemoveKeyword(TemplateURLID id); | 117 void RemoveKeyword(TemplateURLID id); |
118 void UpdateKeyword(const TemplateURLData& data); | 118 void UpdateKeyword(const TemplateURLData& data); |
119 | 119 |
120 // Fetches the keywords. | 120 // Fetches the keywords. |
121 // On success, consumer is notified with WDResult<KeywordTable::Keywords>. | 121 // On success, consumer is notified with WDResult<KeywordTable::Keywords>. |
122 Handle GetKeywords(WebDataServiceConsumer* consumer); | 122 Handle GetKeywords(WebDataServiceConsumer* consumer); |
123 | 123 |
124 // Sets the keywords used for the default search provider. | 124 // Sets the ID of the default search provider. |
125 void SetDefaultSearchProvider(const TemplateURL* url); | 125 void SetDefaultSearchProviderID(TemplateURLID id); |
126 | 126 |
127 // Sets the version of the builtin keywords. | 127 // Sets the version of the builtin keywords. |
128 void SetBuiltinKeywordVersion(int version); | 128 void SetBuiltinKeywordVersion(int version); |
129 | 129 |
130 ////////////////////////////////////////////////////////////////////////////// | 130 ////////////////////////////////////////////////////////////////////////////// |
131 // | 131 // |
132 // Web Apps | 132 // Web Apps |
133 // | 133 // |
134 ////////////////////////////////////////////////////////////////////////////// | 134 ////////////////////////////////////////////////////////////////////////////// |
135 | 135 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 // | 180 // |
181 // The following methods are only invoked on the DB thread. | 181 // The following methods are only invoked on the DB thread. |
182 // | 182 // |
183 ////////////////////////////////////////////////////////////////////////////// | 183 ////////////////////////////////////////////////////////////////////////////// |
184 | 184 |
185 ////////////////////////////////////////////////////////////////////////////// | 185 ////////////////////////////////////////////////////////////////////////////// |
186 // | 186 // |
187 // Keywords. | 187 // Keywords. |
188 // | 188 // |
189 ////////////////////////////////////////////////////////////////////////////// | 189 ////////////////////////////////////////////////////////////////////////////// |
190 WebDatabase::State AddKeywordImpl( | 190 WebDatabase::State AddKeywordImpl(const TemplateURLData& data, |
191 const TemplateURLData& data, WebDatabase* db); | 191 WebDatabase* db); |
192 WebDatabase::State RemoveKeywordImpl( | 192 WebDatabase::State RemoveKeywordImpl(TemplateURLID id, |
193 TemplateURLID id, WebDatabase* db); | 193 WebDatabase* db); |
194 WebDatabase::State UpdateKeywordImpl( | 194 WebDatabase::State UpdateKeywordImpl(const TemplateURLData& data, |
195 const TemplateURLData& data, WebDatabase* db); | 195 WebDatabase* db); |
196 scoped_ptr<WDTypedResult> GetKeywordsImpl(WebDatabase* db); | 196 scoped_ptr<WDTypedResult> GetKeywordsImpl(WebDatabase* db); |
197 WebDatabase::State SetDefaultSearchProviderImpl( | 197 WebDatabase::State SetDefaultSearchProviderImpl(TemplateURLID r, |
198 TemplateURLID r, WebDatabase* db); | 198 WebDatabase* db); |
199 WebDatabase::State SetBuiltinKeywordVersionImpl(int version, WebDatabase* db); | 199 WebDatabase::State SetBuiltinKeywordVersionImpl(int version, WebDatabase* db); |
200 | 200 |
201 ////////////////////////////////////////////////////////////////////////////// | 201 ////////////////////////////////////////////////////////////////////////////// |
202 // | 202 // |
203 // Web Apps. | 203 // Web Apps. |
204 // | 204 // |
205 ////////////////////////////////////////////////////////////////////////////// | 205 ////////////////////////////////////////////////////////////////////////////// |
206 | 206 |
207 WebDatabase::State SetWebAppImageImpl(const GURL& app_url, | 207 WebDatabase::State SetWebAppImageImpl(const GURL& app_url, |
208 const SkBitmap& image, WebDatabase* db); | 208 const SkBitmap& image, WebDatabase* db); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 WebDatabase::State RemoveIE7LoginImpl( | 249 WebDatabase::State RemoveIE7LoginImpl( |
250 const IE7PasswordInfo& info, WebDatabase* db); | 250 const IE7PasswordInfo& info, WebDatabase* db); |
251 scoped_ptr<WDTypedResult> GetIE7LoginImpl( | 251 scoped_ptr<WDTypedResult> GetIE7LoginImpl( |
252 const IE7PasswordInfo& info, WebDatabase* db); | 252 const IE7PasswordInfo& info, WebDatabase* db); |
253 #endif // defined(OS_WIN) | 253 #endif // defined(OS_WIN) |
254 | 254 |
255 DISALLOW_COPY_AND_ASSIGN(WebDataService); | 255 DISALLOW_COPY_AND_ASSIGN(WebDataService); |
256 }; | 256 }; |
257 | 257 |
258 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ | 258 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ |
OLD | NEW |