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 CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // the pending username. | 53 // the pending username. |
54 virtual const password_manager::InteractionsStats* | 54 virtual const password_manager::InteractionsStats* |
55 GetCurrentInteractionStats() const = 0; | 55 GetCurrentInteractionStats() const = 0; |
56 | 56 |
57 // Called from the model when the bubble is displayed. | 57 // Called from the model when the bubble is displayed. |
58 virtual void OnBubbleShown() = 0; | 58 virtual void OnBubbleShown() = 0; |
59 | 59 |
60 // Called from the model when the bubble is hidden. | 60 // Called from the model when the bubble is hidden. |
61 virtual void OnBubbleHidden() = 0; | 61 virtual void OnBubbleHidden() = 0; |
62 | 62 |
63 // Called when the user didn't interact with the Update UI. | 63 // Called when the user didn't interact with UI. |
64 virtual void OnNoInteractionOnUpdate() = 0; | 64 virtual void OnNoInteraction() = 0; |
65 | 65 |
66 // Called when the user chose not to update password. | 66 // Called when the user chose not to update password. |
67 virtual void OnNopeUpdateClicked() = 0; | 67 virtual void OnNopeUpdateClicked() = 0; |
68 | 68 |
69 // Called from the model when the user chooses to never save passwords. | 69 // Called from the model when the user chooses to never save passwords. |
70 virtual void NeverSavePassword() = 0; | 70 virtual void NeverSavePassword() = 0; |
71 | 71 |
72 // Called from the model when the user chooses to save a password. | 72 // Called from the model when the user chooses to save a password. |
73 virtual void SavePassword() = 0; | 73 virtual void SavePassword() = 0; |
74 | 74 |
(...skipping 19 matching lines...) Expand all Loading... |
94 virtual void OnDialogHidden() = 0; | 94 virtual void OnDialogHidden() = 0; |
95 | 95 |
96 protected: | 96 protected: |
97 virtual ~PasswordsModelDelegate() = default; | 97 virtual ~PasswordsModelDelegate() = default; |
98 }; | 98 }; |
99 | 99 |
100 base::WeakPtr<PasswordsModelDelegate> | 100 base::WeakPtr<PasswordsModelDelegate> |
101 PasswordsModelDelegateFromWebContents(content::WebContents* web_contents); | 101 PasswordsModelDelegateFromWebContents(content::WebContents* web_contents); |
102 | 102 |
103 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_ | 103 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_ |
OLD | NEW |