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

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

Issue 190063006: Infobar Componentization Proof of Concept (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor fixes Created 6 years, 9 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/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 }; 53 };
54 54
55 SavePasswordInfoBarDelegate(PasswordFormManager* form_to_save, 55 SavePasswordInfoBarDelegate(PasswordFormManager* form_to_save,
56 const std::string& uma_histogram_suffix); 56 const std::string& uma_histogram_suffix);
57 57
58 // Returns a save password infobar that owns |delegate|. 58 // Returns a save password infobar that owns |delegate|.
59 static scoped_ptr<InfoBar> CreateInfoBar( 59 static scoped_ptr<InfoBar> CreateInfoBar(
60 scoped_ptr<SavePasswordInfoBarDelegate> delegate); 60 scoped_ptr<SavePasswordInfoBarDelegate> delegate);
61 61
62 // InfoBarDelegate 62 // InfoBarDelegate
63 virtual bool ShouldExpire(const content::LoadCommittedDetails& details) 63 virtual bool ShouldExpire(const NavigationDetails& details) const OVERRIDE;
64 const OVERRIDE;
65 64
66 // ConfirmInfoBarDelegate 65 // ConfirmInfoBarDelegate
67 virtual int GetIconID() const OVERRIDE; 66 virtual int GetIconID() const OVERRIDE;
68 virtual Type GetInfoBarType() const OVERRIDE; 67 virtual Type GetInfoBarType() const OVERRIDE;
69 virtual base::string16 GetMessageText() const OVERRIDE; 68 virtual base::string16 GetMessageText() const OVERRIDE;
70 virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; 69 virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
71 virtual bool Accept() OVERRIDE; 70 virtual bool Accept() OVERRIDE;
72 virtual bool Cancel() OVERRIDE; 71 virtual bool Cancel() OVERRIDE;
73 virtual void InfoBarDismissed() OVERRIDE; 72 virtual void InfoBarDismissed() OVERRIDE;
74 73
(...skipping 11 matching lines...) Expand all
86 base::ElapsedTimer timer_; 85 base::ElapsedTimer timer_;
87 86
88 // The group name corresponding to the domain name of |form_to_save_| if the 87 // The group name corresponding to the domain name of |form_to_save_| if the
89 // form is on a monitored domain. Otherwise, an empty string. 88 // form is on a monitored domain. Otherwise, an empty string.
90 const std::string uma_histogram_suffix_; 89 const std::string uma_histogram_suffix_;
91 90
92 DISALLOW_COPY_AND_ASSIGN(SavePasswordInfoBarDelegate); 91 DISALLOW_COPY_AND_ASSIGN(SavePasswordInfoBarDelegate);
93 }; 92 };
94 93
95 #endif // CHROME_BROWSER_PASSWORD_MANAGER_SAVE_PASSWORD_INFOBAR_DELEGATE_H_ 94 #endif // CHROME_BROWSER_PASSWORD_MANAGER_SAVE_PASSWORD_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698