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

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

Issue 2818033: AutoFill: Aggregate profile data. Remove the AutoFill InfoBar. (Closed)
Patch Set: Comment. 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
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_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_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 personal
18 // information gathered from a form submission.
19 class AutoFillInfoBarDelegate : public ConfirmInfoBarDelegate {
20 public:
21 AutoFillInfoBarDelegate(TabContents* tab_contents, AutoFillManager* host);
22 virtual ~AutoFillInfoBarDelegate();
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.
40 Browser* browser_;
41
42 // The AutoFillManager that initiated this InfoBar.
43 AutoFillManager* host_;
44
45 DISALLOW_COPY_AND_ASSIGN(AutoFillInfoBarDelegate);
46 };
47
48 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_dialog_mac.mm ('k') | chrome/browser/autofill/autofill_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698