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

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

Issue 624173002: replace OVERRIDE and FINAL with override and final in chrome/browser/[j-q]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 private: 47 private:
48 SavePasswordInfoBarDelegate( 48 SavePasswordInfoBarDelegate(
49 scoped_ptr<password_manager::PasswordFormManager> form_to_save, 49 scoped_ptr<password_manager::PasswordFormManager> form_to_save,
50 const std::string& uma_histogram_suffix); 50 const std::string& uma_histogram_suffix);
51 51
52 // Returns a save password infobar that owns |delegate|. 52 // Returns a save password infobar that owns |delegate|.
53 static scoped_ptr<infobars::InfoBar> CreateInfoBar( 53 static scoped_ptr<infobars::InfoBar> CreateInfoBar(
54 scoped_ptr<SavePasswordInfoBarDelegate> delegate); 54 scoped_ptr<SavePasswordInfoBarDelegate> delegate);
55 55
56 // InfoBarDelegate 56 // InfoBarDelegate
57 virtual bool ShouldExpire(const NavigationDetails& details) const OVERRIDE; 57 virtual bool ShouldExpire(const NavigationDetails& details) const override;
58 58
59 // ConfirmInfoBarDelegate 59 // ConfirmInfoBarDelegate
60 virtual int GetIconID() const OVERRIDE; 60 virtual int GetIconID() const override;
61 virtual Type GetInfoBarType() const OVERRIDE; 61 virtual Type GetInfoBarType() const override;
62 virtual base::string16 GetMessageText() const OVERRIDE; 62 virtual base::string16 GetMessageText() const override;
63 virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; 63 virtual base::string16 GetButtonLabel(InfoBarButton button) const override;
64 virtual bool Accept() OVERRIDE; 64 virtual bool Accept() override;
65 virtual bool Cancel() OVERRIDE; 65 virtual bool Cancel() override;
66 virtual void InfoBarDismissed() OVERRIDE; 66 virtual void InfoBarDismissed() override;
67 67
68 virtual InfoBarAutomationType GetInfoBarAutomationType() const OVERRIDE; 68 virtual InfoBarAutomationType GetInfoBarAutomationType() const override;
69 69
70 // The PasswordFormManager managing the form we're asking the user about, 70 // The PasswordFormManager managing the form we're asking the user about,
71 // and should update as per her decision. 71 // and should update as per her decision.
72 scoped_ptr<password_manager::PasswordFormManager> form_to_save_; 72 scoped_ptr<password_manager::PasswordFormManager> form_to_save_;
73 73
74 // Used to track the results we get from the info bar. 74 // Used to track the results we get from the info bar.
75 password_manager::metrics_util::ResponseType infobar_response_; 75 password_manager::metrics_util::ResponseType infobar_response_;
76 76
77 // Measures the "Save password?" prompt lifetime. Used to report an UMA 77 // Measures the "Save password?" prompt lifetime. Used to report an UMA
78 // signal. 78 // signal.
79 base::ElapsedTimer timer_; 79 base::ElapsedTimer timer_;
80 80
81 // The group name corresponding to the domain name of |form_to_save_| if the 81 // The group name corresponding to the domain name of |form_to_save_| if the
82 // form is on a monitored domain. Otherwise, an empty string. 82 // form is on a monitored domain. Otherwise, an empty string.
83 const std::string uma_histogram_suffix_; 83 const std::string uma_histogram_suffix_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(SavePasswordInfoBarDelegate); 85 DISALLOW_COPY_AND_ASSIGN(SavePasswordInfoBarDelegate);
86 }; 86 };
87 87
88 #endif // CHROME_BROWSER_PASSWORD_MANAGER_SAVE_PASSWORD_INFOBAR_DELEGATE_H_ 88 #endif // CHROME_BROWSER_PASSWORD_MANAGER_SAVE_PASSWORD_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_store_x_unittest.cc ('k') | chrome/browser/pepper_broker_infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698