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

Side by Side Diff: chrome/browser/password_manager/save_password_infobar_delegate.h

Issue 1181623004: [Password Manager] Replace "this site" in save password prompt with password's origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for Windows bot. Created 5 years, 5 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 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_PASSWORD_MANAGER_SAVE_PASSWORD_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_SAVE_PASSWORD_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_SAVE_PASSWORD_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_SAVE_PASSWORD_INFOBAR_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/timer/elapsed_timer.h" 10 #include "base/timer/elapsed_timer.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 void InfoBarDismissed() override; 57 void InfoBarDismissed() override;
58 base::string16 GetMessageText() const override; 58 base::string16 GetMessageText() const override;
59 base::string16 GetButtonLabel(InfoBarButton button) const override; 59 base::string16 GetButtonLabel(InfoBarButton button) const override;
60 bool LinkClicked(WindowOpenDisposition disposition) override; 60 bool LinkClicked(WindowOpenDisposition disposition) override;
61 bool Accept() override; 61 bool Accept() override;
62 bool Cancel() override; 62 bool Cancel() override;
63 63
64 protected: 64 protected:
65 // Makes a ctor available in tests. 65 // Makes a ctor available in tests.
66 SavePasswordInfoBarDelegate( 66 SavePasswordInfoBarDelegate(
67 content::WebContents* web_contents,
67 scoped_ptr<password_manager::PasswordFormManager> form_to_save, 68 scoped_ptr<password_manager::PasswordFormManager> form_to_save,
68 const std::string& uma_histogram_suffix, 69 const std::string& uma_histogram_suffix,
69 password_manager::CredentialSourceType source_type, 70 password_manager::CredentialSourceType source_type,
70 bool is_smartlock_branding_enabled); 71 bool is_smartlock_branding_enabled);
71 72
72 private: 73 private:
73 // The PasswordFormManager managing the form we're asking the user about, 74 // The PasswordFormManager managing the form we're asking the user about,
74 // and should update as per her decision. 75 // and should update as per her decision.
75 scoped_ptr<password_manager::PasswordFormManager> form_to_save_; 76 scoped_ptr<password_manager::PasswordFormManager> form_to_save_;
76 77
(...skipping 22 matching lines...) Expand all
99 100
100 DISALLOW_COPY_AND_ASSIGN(SavePasswordInfoBarDelegate); 101 DISALLOW_COPY_AND_ASSIGN(SavePasswordInfoBarDelegate);
101 }; 102 };
102 103
103 // Creates the platform-specific SavePassword InfoBar. This function is defined 104 // Creates the platform-specific SavePassword InfoBar. This function is defined
104 // in platform-specific .cc (or .mm) files. 105 // in platform-specific .cc (or .mm) files.
105 scoped_ptr<infobars::InfoBar> CreateSavePasswordInfoBar( 106 scoped_ptr<infobars::InfoBar> CreateSavePasswordInfoBar(
106 scoped_ptr<SavePasswordInfoBarDelegate> delegate); 107 scoped_ptr<SavePasswordInfoBarDelegate> delegate);
107 108
108 #endif // CHROME_BROWSER_PASSWORD_MANAGER_SAVE_PASSWORD_INFOBAR_DELEGATE_H_ 109 #endif // CHROME_BROWSER_PASSWORD_MANAGER_SAVE_PASSWORD_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698