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

Side by Side Diff: chrome/browser/ui/autofill/tab_autofill_manager_delegate.h

Issue 10919066: Use BrowserContext as key in API. Switch Autofill to use BC in place of Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to parent Created 8 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/autofill/autofill_manager_delegate.h" 9 #include "chrome/browser/autofill/autofill_manager_delegate.h"
10 10
11 class TabContents; 11 class TabContents;
12 12
13 // Chrome implementation of AutofillManagerDelegate. 13 // Chrome implementation of AutofillManagerDelegate.
14 class TabAutofillManagerDelegate : public autofill::AutofillManagerDelegate { 14 class TabAutofillManagerDelegate : public autofill::AutofillManagerDelegate {
15 public: 15 public:
16 // Lifetime of |tab| must exceed lifetime of TabAutofillManagerDelegate. 16 // Lifetime of |tab| must exceed lifetime of TabAutofillManagerDelegate.
17 explicit TabAutofillManagerDelegate(TabContents* tab); 17 explicit TabAutofillManagerDelegate(TabContents* tab);
18 virtual ~TabAutofillManagerDelegate() {} 18 virtual ~TabAutofillManagerDelegate() {}
19 19
20 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE;
21 virtual content::BrowserContext* GetOriginalBrowserContext() const OVERRIDE;
20 virtual InfoBarService* GetInfoBarService() OVERRIDE; 22 virtual InfoBarService* GetInfoBarService() OVERRIDE;
21 virtual PrefServiceBase* GetPrefs() OVERRIDE; 23 virtual PrefServiceBase* GetPrefs() OVERRIDE;
22 virtual bool IsSavingPasswordsEnabled() const OVERRIDE; 24 virtual bool IsSavingPasswordsEnabled() const OVERRIDE;
23 virtual void ShowAutofillSettings() OVERRIDE; 25 virtual void ShowAutofillSettings() OVERRIDE;
24 virtual void ShowPasswordGenerationBubble( 26 virtual void ShowPasswordGenerationBubble(
25 const gfx::Rect& bounds, 27 const gfx::Rect& bounds,
26 const webkit::forms::PasswordForm& form, 28 const webkit::forms::PasswordForm& form,
27 autofill::PasswordGenerator* generator) OVERRIDE; 29 autofill::PasswordGenerator* generator) OVERRIDE;
28 30
29 private: 31 private:
30 TabContents* const tab_; 32 TabContents* const tab_;
31 }; 33 };
32 34
33 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ 35 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/pref_service.cc ('k') | chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698