Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(540)

Side by Side Diff: chrome/browser/ui/passwords/passwords_model_delegate.h

Issue 2262843002: Make PasswordFormManager::best_matches_ const (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@621355_pass_creds_to_update_by_value
Patch Set: Just rebased Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // Returns current local forms for the current page. 48 // Returns current local forms for the current page.
49 virtual const std::vector<std::unique_ptr<autofill::PasswordForm>>& 49 virtual const std::vector<std::unique_ptr<autofill::PasswordForm>>&
50 GetCurrentForms() const = 0; 50 GetCurrentForms() const = 0;
51 51
52 // Returns possible identity provider's credentials for the current site. 52 // Returns possible identity provider's credentials for the current site.
53 virtual const std::vector<std::unique_ptr<autofill::PasswordForm>>& 53 virtual const std::vector<std::unique_ptr<autofill::PasswordForm>>&
54 GetFederatedForms() const = 0; 54 GetFederatedForms() const = 0;
55 55
56 // For PENDING_PASSWORD_STATE state returns the current statistics for 56 // For PENDING_PASSWORD_STATE state returns the current statistics for
57 // the pending username. 57 // the pending username.
58 virtual password_manager::InteractionsStats* GetCurrentInteractionStats() 58 virtual const password_manager::InteractionsStats*
59 const = 0; 59 GetCurrentInteractionStats() const = 0;
60 60
61 // Called from the model when the bubble is displayed. 61 // Called from the model when the bubble is displayed.
62 virtual void OnBubbleShown() = 0; 62 virtual void OnBubbleShown() = 0;
63 63
64 // Called from the model when the bubble is hidden. 64 // Called from the model when the bubble is hidden.
65 virtual void OnBubbleHidden() = 0; 65 virtual void OnBubbleHidden() = 0;
66 66
67 // Called when the user didn't interact with the Update UI. 67 // Called when the user didn't interact with the Update UI.
68 virtual void OnNoInteractionOnUpdate() = 0; 68 virtual void OnNoInteractionOnUpdate() = 0;
69 69
(...skipping 28 matching lines...) Expand all
98 virtual void OnDialogHidden() = 0; 98 virtual void OnDialogHidden() = 0;
99 99
100 protected: 100 protected:
101 virtual ~PasswordsModelDelegate() = default; 101 virtual ~PasswordsModelDelegate() = default;
102 }; 102 };
103 103
104 base::WeakPtr<PasswordsModelDelegate> 104 base::WeakPtr<PasswordsModelDelegate>
105 PasswordsModelDelegateFromWebContents(content::WebContents* web_contents); 105 PasswordsModelDelegateFromWebContents(content::WebContents* web_contents);
106 106
107 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_ 107 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698