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 #ifndef CHROME_BROWSER_WEBDATA_LOGINS_TABLE_H_ | 5 #ifndef CHROME_BROWSER_WEBDATA_LOGINS_TABLE_H_ |
6 #define CHROME_BROWSER_WEBDATA_LOGINS_TABLE_H_ | 6 #define CHROME_BROWSER_WEBDATA_LOGINS_TABLE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 LoginsTable() {} | 25 LoginsTable() {} |
26 virtual ~LoginsTable() {} | 26 virtual ~LoginsTable() {} |
27 | 27 |
28 // Retrieves the LoginsTable* owned by |database|. | 28 // Retrieves the LoginsTable* owned by |database|. |
29 static LoginsTable* FromWebDatabase(WebDatabase* db); | 29 static LoginsTable* FromWebDatabase(WebDatabase* db); |
30 | 30 |
31 virtual WebDatabaseTable::TypeKey GetTypeKey() const OVERRIDE; | 31 virtual WebDatabaseTable::TypeKey GetTypeKey() const OVERRIDE; |
32 virtual bool Init(sql::Connection* db, sql::MetaTable* meta_table) OVERRIDE; | 32 virtual bool Init(sql::Connection* db, sql::MetaTable* meta_table) OVERRIDE; |
33 virtual bool IsSyncable() OVERRIDE; | 33 virtual bool IsSyncable() OVERRIDE; |
34 virtual bool MigrateToVersion(int version, | 34 virtual bool MigrateToVersion(int version, |
35 const std::string& app_locale, | |
36 bool* update_compatible_version) OVERRIDE; | 35 bool* update_compatible_version) OVERRIDE; |
37 | 36 |
38 #if defined(OS_WIN) | 37 #if defined(OS_WIN) |
39 // Adds |info| to the list of imported passwords from ie7/ie8. | 38 // Adds |info| to the list of imported passwords from ie7/ie8. |
40 bool AddIE7Login(const IE7PasswordInfo& info); | 39 bool AddIE7Login(const IE7PasswordInfo& info); |
41 | 40 |
42 // Removes |info| from the list of imported passwords from ie7/ie8. | 41 // Removes |info| from the list of imported passwords from ie7/ie8. |
43 bool RemoveIE7Login(const IE7PasswordInfo& info); | 42 bool RemoveIE7Login(const IE7PasswordInfo& info); |
44 | 43 |
45 // Return the ie7/ie8 login matching |info|. | 44 // Return the ie7/ie8 login matching |info|. |
46 bool GetIE7Login(const IE7PasswordInfo& info, IE7PasswordInfo* result); | 45 bool GetIE7Login(const IE7PasswordInfo& info, IE7PasswordInfo* result); |
47 #endif | 46 #endif |
48 | 47 |
49 private: | 48 private: |
50 DISALLOW_COPY_AND_ASSIGN(LoginsTable); | 49 DISALLOW_COPY_AND_ASSIGN(LoginsTable); |
51 }; | 50 }; |
52 | 51 |
53 #endif // CHROME_BROWSER_WEBDATA_LOGINS_TABLE_H_ | 52 #endif // CHROME_BROWSER_WEBDATA_LOGINS_TABLE_H_ |
OLD | NEW |