OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PASSWORD_MANAGER_LOGIN_DATABASE_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_LOGIN_DATABASE_H_ |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_LOGIN_DATABASE_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_LOGIN_DATABASE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "app/sql/connection.h" | |
13 #include "app/sql/meta_table.h" | |
14 #include "base/file_path.h" | 12 #include "base/file_path.h" |
15 #include "base/string16.h" | 13 #include "base/string16.h" |
| 14 #include "sql/connection.h" |
| 15 #include "sql/meta_table.h" |
16 #include "webkit/glue/password_form.h" | 16 #include "webkit/glue/password_form.h" |
17 | 17 |
18 // Interface to the database storage of login information, intended as a helper | 18 // Interface to the database storage of login information, intended as a helper |
19 // for PasswordStore on platforms that need internal storage of some or all of | 19 // for PasswordStore on platforms that need internal storage of some or all of |
20 // the login information. | 20 // the login information. |
21 class LoginDatabase { | 21 class LoginDatabase { |
22 public: | 22 public: |
23 LoginDatabase(); | 23 LoginDatabase(); |
24 virtual ~LoginDatabase(); | 24 virtual ~LoginDatabase(); |
25 | 25 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 bool blacklisted, std::vector<webkit_glue::PasswordForm*>* forms) const; | 96 bool blacklisted, std::vector<webkit_glue::PasswordForm*>* forms) const; |
97 | 97 |
98 FilePath db_path_; | 98 FilePath db_path_; |
99 mutable sql::Connection db_; | 99 mutable sql::Connection db_; |
100 sql::MetaTable meta_table_; | 100 sql::MetaTable meta_table_; |
101 | 101 |
102 DISALLOW_COPY_AND_ASSIGN(LoginDatabase); | 102 DISALLOW_COPY_AND_ASSIGN(LoginDatabase); |
103 }; | 103 }; |
104 | 104 |
105 #endif // CHROME_BROWSER_PASSWORD_MANAGER_LOGIN_DATABASE_H_ | 105 #endif // CHROME_BROWSER_PASSWORD_MANAGER_LOGIN_DATABASE_H_ |
OLD | NEW |