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

Side by Side Diff: chrome/browser/autofill/autofill_cc_infobar_delegate.h

Issue 2949002: Add "save credit card info?" infobar for Autofill.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_
7
8 #include <string>
9
10 #include "chrome/browser/tab_contents/infobar_delegate.h"
11
12 class AutoFillManager;
13 class Browser;
14 class SkBitmap;
15 class TabContents;
16
17 // An InfoBar delegate that enables the user to allow or deny storing credit
18 // card information gathered from a form submission.
19 class AutoFillCCInfoBarDelegate : public ConfirmInfoBarDelegate {
20 public:
21 AutoFillCCInfoBarDelegate(TabContents* tab_contents, AutoFillManager* host);
22 virtual ~AutoFillCCInfoBarDelegate();
23
24 // ConfirmInfoBarDelegate implementation.
25 virtual bool ShouldExpire(
26 const NavigationController::LoadCommittedDetails& details) const;
27 virtual void InfoBarClosed();
28 virtual std::wstring GetMessageText() const;
29 virtual SkBitmap* GetIcon() const;
30 virtual int GetButtons() const;
31 virtual std::wstring GetButtonLabel(
32 ConfirmInfoBarDelegate::InfoBarButton button) const;
33 virtual bool Accept();
34 virtual bool Cancel();
35 virtual std::wstring GetLinkText();
36 virtual bool LinkClicked(WindowOpenDisposition disposition);
37
38 private:
39 // The browser.
James Hawkins 2010/07/08 22:03:40 Add another space before this comment.
40 Browser* browser_;
41
42 // The AutoFillManager that initiated this InfoBar.
43 AutoFillManager* host_;
44
45 DISALLOW_COPY_AND_ASSIGN(AutoFillCCInfoBarDelegate);
46 };
47
48 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/autofill/autofill_cc_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698