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_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 <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "chrome/browser/password_manager/login_database.h" | 13 #include "chrome/browser/password_manager/login_database.h" |
14 #include "chrome/browser/password_manager/password_store.h" | 14 #include "chrome/browser/password_manager/password_store.h" |
15 #include "chrome/browser/webdata/web_data_service.h" | |
Ilya Sherman
2012/03/27 01:01:17
nit: Why does this now need to be a #include rathe
GeorgeY
2012/03/30 19:20:12
Line 52. Otherwise it needs to be included every t
Ilya Sherman
2012/03/30 20:50:05
Huh, a scoped_refptr<Foo> needs more than a forwar
Peter Kasting
2012/03/30 20:53:53
No, we shouldn't need a #include to do scoped_ptr<
GeorgeY
2012/04/02 21:57:43
There is a some non obvious usage in one of the he
Peter Kasting
2012/04/02 22:09:05
That doesn't justify making this change. It just
GeorgeY
2012/04/02 22:49:02
found and fixed
| |
15 | 16 |
16 class Profile; | 17 class Profile; |
17 class WebDataService; | |
18 | 18 |
19 // Simple password store implementation that delegates everything to | 19 // Simple password store implementation that delegates everything to |
20 // the LoginDatabase. | 20 // the LoginDatabase. |
21 class PasswordStoreDefault : public PasswordStore { | 21 class PasswordStoreDefault : public PasswordStore { |
22 public: | 22 public: |
23 // Takes ownership of |login_db|. | 23 // Takes ownership of |login_db|. |
24 PasswordStoreDefault(LoginDatabase* login_db, | 24 PasswordStoreDefault(LoginDatabase* login_db, |
25 Profile* profile, | 25 Profile* profile, |
26 WebDataService* web_data_service); | 26 WebDataService* web_data_service); |
27 | 27 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
64 | 64 |
65 scoped_ptr<LoginDatabase> login_db_; | 65 scoped_ptr<LoginDatabase> login_db_; |
66 Profile* profile_; | 66 Profile* profile_; |
67 | 67 |
68 scoped_ptr<MigrateHelper> migrate_helper_; | 68 scoped_ptr<MigrateHelper> migrate_helper_; |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(PasswordStoreDefault); | 70 DISALLOW_COPY_AND_ASSIGN(PasswordStoreDefault); |
71 }; | 71 }; |
72 | 72 |
73 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_ | 73 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_ |
OLD | NEW |