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

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

Issue 3012042: Revert 54560 - ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_cc_infobar_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 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_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "chrome/browser/tab_contents/infobar_delegate.h" 11 #include "chrome/browser/tab_contents/infobar_delegate.h"
12 12
13 class AutoFillManager; 13 class AutoFillManager;
14 class Browser;
14 class SkBitmap; 15 class SkBitmap;
15 class TabContents; 16 class TabContents;
16 17
17 // An InfoBar delegate that enables the user to allow or deny storing credit 18 // An InfoBar delegate that enables the user to allow or deny storing credit
18 // card information gathered from a form submission. 19 // card information gathered from a form submission.
19 class AutoFillCCInfoBarDelegate : public ConfirmInfoBarDelegate { 20 class AutoFillCCInfoBarDelegate : public ConfirmInfoBarDelegate {
20 public: 21 public:
21 AutoFillCCInfoBarDelegate(TabContents* tab_contents, AutoFillManager* host); 22 AutoFillCCInfoBarDelegate(TabContents* tab_contents, AutoFillManager* host);
22 virtual ~AutoFillCCInfoBarDelegate(); 23 virtual ~AutoFillCCInfoBarDelegate();
23 24
(...skipping 14 matching lines...) Expand all
38 #if defined(OS_WIN) 39 #if defined(OS_WIN)
39 // Overridden from InfoBarDelegate: 40 // Overridden from InfoBarDelegate:
40 virtual InfoBar* CreateInfoBar(); 41 virtual InfoBar* CreateInfoBar();
41 #endif // defined(OS_WIN) 42 #endif // defined(OS_WIN)
42 43
43 virtual Type GetInfoBarType() { 44 virtual Type GetInfoBarType() {
44 return PAGE_ACTION_TYPE; 45 return PAGE_ACTION_TYPE;
45 } 46 }
46 47
47 private: 48 private:
49 // The browser.
50 Browser* browser_;
51
48 // The AutoFillManager that initiated this InfoBar. 52 // The AutoFillManager that initiated this InfoBar.
49 AutoFillManager* host_; 53 AutoFillManager* host_;
50 54
51 DISALLOW_COPY_AND_ASSIGN(AutoFillCCInfoBarDelegate); 55 DISALLOW_COPY_AND_ASSIGN(AutoFillCCInfoBarDelegate);
52 }; 56 };
53 57
54 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ 58 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_cc_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698