OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_AFFILIATED_MATCH_HELPER_H_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATED_MATCH_HELPER_H_ |
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATED_MATCH_HELPER_H_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATED_MATCH_HELPER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/callback_forward.h" | 14 #include "base/callback_forward.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
17 #include "components/password_manager/core/browser/affiliation_utils.h" | 17 #include "components/password_manager/core/browser/affiliation_utils.h" |
18 #include "components/password_manager/core/browser/password_store.h" | 18 #include "components/password_manager/core/browser/password_store.h" |
19 #include "components/password_manager/core/browser/password_store_consumer.h" | 19 #include "components/password_manager/core/browser/password_store_consumer.h" |
20 | 20 |
21 namespace autofill { | 21 namespace autofill { |
22 struct PasswordForm; | 22 struct PasswordForm; |
23 } // namespace autofill | 23 } // namespace autofill |
24 | 24 |
25 namespace base { | |
26 struct SingleThreadedTaskRunner; | |
27 } // namespace base | |
28 | |
29 namespace password_manager { | 25 namespace password_manager { |
30 | 26 |
31 class AffiliationService; | 27 class AffiliationService; |
32 | 28 |
33 // Interacts with the AffiliationService on behalf of the PasswordStore. | 29 // Interacts with the AffiliationService on behalf of the PasswordStore. |
34 // For each GetLogins() request, it provides the PasswordStore with a list of | 30 // For each GetLogins() request, it provides the PasswordStore with a list of |
35 // additional realms that are affiliation-based matches to the observed realm. | 31 // additional realms that are affiliation-based matches to the observed realm. |
36 // | 32 // |
37 // Currently, the only supported use-case is obtaining Android applications | 33 // Currently, the only supported use-case is obtaining Android applications |
38 // affiliated with the web site containing the observed form. This is achieved | 34 // affiliated with the web site containing the observed form. This is achieved |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 std::unique_ptr<AffiliationService> affiliation_service_; | 156 std::unique_ptr<AffiliationService> affiliation_service_; |
161 | 157 |
162 base::WeakPtrFactory<AffiliatedMatchHelper> weak_ptr_factory_; | 158 base::WeakPtrFactory<AffiliatedMatchHelper> weak_ptr_factory_; |
163 | 159 |
164 DISALLOW_COPY_AND_ASSIGN(AffiliatedMatchHelper); | 160 DISALLOW_COPY_AND_ASSIGN(AffiliatedMatchHelper); |
165 }; | 161 }; |
166 | 162 |
167 } // namespace password_manager | 163 } // namespace password_manager |
168 | 164 |
169 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATED_MATCH_HELPER_H_ | 165 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATED_MATCH_HELPER_H_ |
OLD | NEW |