OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DATABASE_H_ | 5 #ifndef CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_ |
6 #define CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_ | 6 #define CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, Autofill_AddChanges); | 301 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, Autofill_AddChanges); |
302 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, Autofill_RemoveBetweenChanges); | 302 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, Autofill_RemoveBetweenChanges); |
303 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, | 303 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, |
304 Autofill_GetAllAutofillEntries_OneResult); | 304 Autofill_GetAllAutofillEntries_OneResult); |
305 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, | 305 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, |
306 Autofill_GetAllAutofillEntries_TwoDistinct); | 306 Autofill_GetAllAutofillEntries_TwoDistinct); |
307 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, | 307 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, |
308 Autofill_GetAllAutofillEntries_TwoSame); | 308 Autofill_GetAllAutofillEntries_TwoSame); |
309 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, Autofill_UpdateDontReplace); | 309 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, Autofill_UpdateDontReplace); |
310 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, Autofill_AddFormFieldValues); | 310 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, Autofill_AddFormFieldValues); |
| 311 |
311 // Methods for adding autofill entries at a specified time. For | 312 // Methods for adding autofill entries at a specified time. For |
312 // testing only. | 313 // testing only. |
313 bool AddFormFieldValuesTime( | 314 bool AddFormFieldValuesTime( |
314 const std::vector<webkit_glue::FormField>& elements, | 315 const std::vector<webkit_glue::FormField>& elements, |
315 std::vector<AutofillChange>* changes, | 316 std::vector<AutofillChange>* changes, |
316 base::Time time); | 317 base::Time time); |
317 bool AddFormFieldValueTime(const webkit_glue::FormField& element, | 318 bool AddFormFieldValueTime(const webkit_glue::FormField& element, |
318 std::vector<AutofillChange>* changes, | 319 std::vector<AutofillChange>* changes, |
319 base::Time time); | 320 base::Time time); |
320 | 321 |
(...skipping 20 matching lines...) Expand all Loading... |
341 | 342 |
342 sql::Connection db_; | 343 sql::Connection db_; |
343 sql::MetaTable meta_table_; | 344 sql::MetaTable meta_table_; |
344 | 345 |
345 scoped_ptr<NotificationService> notification_service_; | 346 scoped_ptr<NotificationService> notification_service_; |
346 | 347 |
347 DISALLOW_COPY_AND_ASSIGN(WebDatabase); | 348 DISALLOW_COPY_AND_ASSIGN(WebDatabase); |
348 }; | 349 }; |
349 | 350 |
350 #endif // CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_ | 351 #endif // CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_ |
OLD | NEW |