| 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_PASSWORD_MANAGER_CORE_BROWSER_WEBDATA_LOGINS_TABLE_H_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_WEBDATA_LOGINS_TABLE_H_ |
| 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_WEBDATA_LOGINS_TABLE_H_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_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 10 matching lines...) Expand all Loading... |
| 21 // passwords, so this class is now mostly responsible for deleting the table if | 21 // passwords, so this class is now mostly responsible for deleting the table if |
| 22 // it is found to exist. (The data was migrated out long ago.) | 22 // it is found to exist. (The data was migrated out long ago.) |
| 23 class LoginsTable : public WebDatabaseTable { | 23 class LoginsTable : public WebDatabaseTable { |
| 24 public: | 24 public: |
| 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 CreateTablesIfNecessary() override; | 32 virtual bool CreateTablesIfNecessary() OVERRIDE; |
| 33 virtual bool IsSyncable() override; | 33 virtual bool IsSyncable() OVERRIDE; |
| 34 virtual bool MigrateToVersion(int version, | 34 virtual bool MigrateToVersion(int version, |
| 35 bool* update_compatible_version) override; | 35 bool* update_compatible_version) OVERRIDE; |
| 36 | 36 |
| 37 #if defined(OS_WIN) | 37 #if defined(OS_WIN) |
| 38 // Adds |info| to the list of imported passwords from ie7/ie8. | 38 // Adds |info| to the list of imported passwords from ie7/ie8. |
| 39 bool AddIE7Login(const IE7PasswordInfo& info); | 39 bool AddIE7Login(const IE7PasswordInfo& info); |
| 40 | 40 |
| 41 // Removes |info| from the list of imported passwords from ie7/ie8. | 41 // Removes |info| from the list of imported passwords from ie7/ie8. |
| 42 bool RemoveIE7Login(const IE7PasswordInfo& info); | 42 bool RemoveIE7Login(const IE7PasswordInfo& info); |
| 43 | 43 |
| 44 // Return the ie7/ie8 login matching |info|. | 44 // Return the ie7/ie8 login matching |info|. |
| 45 bool GetIE7Login(const IE7PasswordInfo& info, IE7PasswordInfo* result); | 45 bool GetIE7Login(const IE7PasswordInfo& info, IE7PasswordInfo* result); |
| 46 #endif | 46 #endif |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 DISALLOW_COPY_AND_ASSIGN(LoginsTable); | 49 DISALLOW_COPY_AND_ASSIGN(LoginsTable); |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_WEBDATA_LOGINS_TABLE_H_ | 52 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_WEBDATA_LOGINS_TABLE_H_ |
| OLD | NEW |