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

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

Issue 2819086: Removal of TabContentsDelegate::GetBrowser() interface method (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
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;
15 class SkBitmap; 14 class SkBitmap;
16 class TabContents; 15 class TabContents;
17 16
18 // An InfoBar delegate that enables the user to allow or deny storing credit 17 // An InfoBar delegate that enables the user to allow or deny storing credit
19 // card information gathered from a form submission. 18 // card information gathered from a form submission.
20 class AutoFillCCInfoBarDelegate : public ConfirmInfoBarDelegate { 19 class AutoFillCCInfoBarDelegate : public ConfirmInfoBarDelegate {
21 public: 20 public:
22 AutoFillCCInfoBarDelegate(TabContents* tab_contents, AutoFillManager* host); 21 AutoFillCCInfoBarDelegate(TabContents* tab_contents, AutoFillManager* host);
23 virtual ~AutoFillCCInfoBarDelegate(); 22 virtual ~AutoFillCCInfoBarDelegate();
24 23
(...skipping 14 matching lines...) Expand all
39 #if defined(OS_WIN) 38 #if defined(OS_WIN)
40 // Overridden from InfoBarDelegate: 39 // Overridden from InfoBarDelegate:
41 virtual InfoBar* CreateInfoBar(); 40 virtual InfoBar* CreateInfoBar();
42 #endif // defined(OS_WIN) 41 #endif // defined(OS_WIN)
43 42
44 virtual Type GetInfoBarType() { 43 virtual Type GetInfoBarType() {
45 return PAGE_ACTION_TYPE; 44 return PAGE_ACTION_TYPE;
46 } 45 }
47 46
48 private: 47 private:
49 // The browser.
50 Browser* browser_;
51
52 // The AutoFillManager that initiated this InfoBar. 48 // The AutoFillManager that initiated this InfoBar.
53 AutoFillManager* host_; 49 AutoFillManager* host_;
54 50
55 DISALLOW_COPY_AND_ASSIGN(AutoFillCCInfoBarDelegate); 51 DISALLOW_COPY_AND_ASSIGN(AutoFillCCInfoBarDelegate);
56 }; 52 };
57 53
58 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ 54 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_browsertest.cc ('k') | chrome/browser/autofill/autofill_cc_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698