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

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

Issue 2588263003: Reland: Remove Finch support for PasswordBranding (Closed)
Patch Set: Rebased only Created 4 years 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 // Called from the model when the user chooses to update a password. 75 // Called from the model when the user chooses to update a password.
76 virtual void UpdatePassword(const autofill::PasswordForm& password_form) = 0; 76 virtual void UpdatePassword(const autofill::PasswordForm& password_form) = 0;
77 77
78 // Called from the dialog controller when the user chooses a credential. 78 // Called from the dialog controller when the user chooses a credential.
79 // Controller can be destroyed inside the method. 79 // Controller can be destroyed inside the method.
80 virtual void ChooseCredential( 80 virtual void ChooseCredential(
81 const autofill::PasswordForm& form, 81 const autofill::PasswordForm& form,
82 password_manager::CredentialType credential_type) = 0; 82 password_manager::CredentialType credential_type) = 0;
83 83
84 // Open a new tab pointing to passwords.google.com.
85 virtual void NavigateToExternalPasswordManager() = 0;
86 // Open a new tab, pointing to the Smart Lock help article. 84 // Open a new tab, pointing to the Smart Lock help article.
87 virtual void NavigateToSmartLockHelpPage() = 0; 85 virtual void NavigateToSmartLockHelpPage() = 0;
88 // Open a new tab, pointing to the password manager settings page. 86 // Open a new tab, pointing to the password manager settings page.
89 virtual void NavigateToPasswordManagerSettingsPage() = 0; 87 virtual void NavigateToPasswordManagerSettingsPage() = 0;
90 // Starts the Chrome Sign in flow. 88 // Starts the Chrome Sign in flow.
91 virtual void NavigateToChromeSignIn() = 0; 89 virtual void NavigateToChromeSignIn() = 0;
92 90
93 // Called from the dialog controller when the dialog is hidden. 91 // Called from the dialog controller when the dialog is hidden.
94 virtual void OnDialogHidden() = 0; 92 virtual void OnDialogHidden() = 0;
95 93
96 protected: 94 protected:
97 virtual ~PasswordsModelDelegate() = default; 95 virtual ~PasswordsModelDelegate() = default;
98 }; 96 };
99 97
100 base::WeakPtr<PasswordsModelDelegate> 98 base::WeakPtr<PasswordsModelDelegate>
101 PasswordsModelDelegateFromWebContents(content::WebContents* web_contents); 99 PasswordsModelDelegateFromWebContents(content::WebContents* web_contents);
102 100
103 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_ 101 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698