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 CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 public: | 43 public: |
44 ~ManagePasswordsUIController() override; | 44 ~ManagePasswordsUIController() override; |
45 | 45 |
46 // PasswordsClientUIDelegate: | 46 // PasswordsClientUIDelegate: |
47 void OnPasswordSubmitted( | 47 void OnPasswordSubmitted( |
48 std::unique_ptr<password_manager::PasswordFormManager> form_manager) | 48 std::unique_ptr<password_manager::PasswordFormManager> form_manager) |
49 override; | 49 override; |
50 void OnUpdatePasswordSubmitted( | 50 void OnUpdatePasswordSubmitted( |
51 std::unique_ptr<password_manager::PasswordFormManager> form_manager) | 51 std::unique_ptr<password_manager::PasswordFormManager> form_manager) |
52 override; | 52 override; |
| 53 void OnShowManualFallback( |
| 54 std::unique_ptr<password_manager::PasswordFormManager> form_manager, |
| 55 bool is_update) override; |
| 56 void OnHideManualFallback() override; |
53 bool OnChooseCredentials( | 57 bool OnChooseCredentials( |
54 std::vector<std::unique_ptr<autofill::PasswordForm>> local_credentials, | 58 std::vector<std::unique_ptr<autofill::PasswordForm>> local_credentials, |
55 const GURL& origin, | 59 const GURL& origin, |
56 const ManagePasswordsState::CredentialsCallback& callback) override; | 60 const ManagePasswordsState::CredentialsCallback& callback) override; |
57 void OnAutoSignin( | 61 void OnAutoSignin( |
58 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, | 62 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, |
59 const GURL& origin) override; | 63 const GURL& origin) override; |
60 void OnPromptEnableAutoSignin() override; | 64 void OnPromptEnableAutoSignin() override; |
61 void OnAutomaticPasswordSave( | 65 void OnAutomaticPasswordSave( |
62 std::unique_ptr<password_manager::PasswordFormManager> form_manager) | 66 std::unique_ptr<password_manager::PasswordFormManager> form_manager) |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 // Thus, OnBubbleHidden() can be called after the new one is shown. By that | 192 // Thus, OnBubbleHidden() can be called after the new one is shown. By that |
189 // time the internal state of ManagePasswordsUIController has nothing to do | 193 // time the internal state of ManagePasswordsUIController has nothing to do |
190 // with the old bubble. | 194 // with the old bubble. |
191 // Invalidating all the weak pointers will detach the current bubble. | 195 // Invalidating all the weak pointers will detach the current bubble. |
192 base::WeakPtrFactory<ManagePasswordsUIController> weak_ptr_factory_; | 196 base::WeakPtrFactory<ManagePasswordsUIController> weak_ptr_factory_; |
193 | 197 |
194 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); | 198 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); |
195 }; | 199 }; |
196 | 200 |
197 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ | 201 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ |
OLD | NEW |