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_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_ |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
11 #include "chrome/browser/password_manager/login_database.h" | 11 #include "chrome/browser/password_manager/login_database.h" |
12 #include "chrome/browser/password_manager/password_store.h" | 12 #include "chrome/browser/password_manager/password_store.h" |
13 #include "chrome/browser/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/webdata/web_data_service.h" | 14 #include "chrome/browser/webdata/web_data_service.h" |
15 | 15 |
16 // Simple password store implementation that delegates everything to | 16 // Simple password store implementation that delegates everything to |
17 // the LoginDatabase. | 17 // the LoginDatabase. |
18 class PasswordStoreDefault : public PasswordStore, | 18 class PasswordStoreDefault : public PasswordStore, |
19 public WebDataServiceConsumer { | 19 public WebDataServiceConsumer { |
20 public: | 20 public: |
21 // Takes ownership of |login_db|. | 21 // Takes ownership of |login_db|. |
22 PasswordStoreDefault(LoginDatabase* login_db, | 22 PasswordStoreDefault(LoginDatabase* login_db, |
23 Profile* profile, | 23 Profile* profile, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 scoped_ptr<LoginDatabase> login_db_; | 60 scoped_ptr<LoginDatabase> login_db_; |
61 Profile* profile_; | 61 Profile* profile_; |
62 | 62 |
63 std::set<WebDataService::Handle> handles_; | 63 std::set<WebDataService::Handle> handles_; |
64 | 64 |
65 DISALLOW_COPY_AND_ASSIGN(PasswordStoreDefault); | 65 DISALLOW_COPY_AND_ASSIGN(PasswordStoreDefault); |
66 }; | 66 }; |
67 | 67 |
68 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_ | 68 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_ |
OLD | NEW |